/* ============================================================
   09 · Рынок — короткая строгая секция-передышка
   ============================================================ */

.section--market {
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(227, 164, 41, .045), transparent 70%),
    var(--bg-0);
}

/* --- Водяной знак «08»: на десктопе живёт в пустой полосе воздуха
       между сеткой покупателей и плашкой, ни одной буквы не касается --- */
.section--market .market-watermark {
  position: absolute;
  top: clamp(630px, 44vw, 672px);
  right: 3vw;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(10rem, 16vw, 16rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 164, 41, .09);
  pointer-events: none;
  user-select: none;
}

/* --- Голова: заголовок слева, лид справа --- */
.section--market .market-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}
.section--market .market-head__lead {
  margin-top: 0;
  padding-bottom: .5em; /* оптическое выравнивание по базовой линии h2 */
  font-size: 1.05rem; /* нижняя граница clamp .lead: верх лида не поднимается выше кап-высоты h2 */
  text-wrap: pretty;
}

/* --- Сетка покупателей --- */
.section--market .market-buyers {
  margin-top: clamp(16px, 3vh, 40px);
}
.section--market .market-buyers__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.section--market .market-buyers__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory-50);
  white-space: nowrap;
}
.section--market .market-buyers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 40px);
}
.section--market .market-buyer {
  position: relative;
  padding-top: clamp(24px, 3vh, 32px);
  border-top: 1px solid var(--line);
}
.section--market .market-buyer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 36px;
  height: 1px;
  background: var(--grad-gold);
}
.section--market .market-buyer__idx {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: .02em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: clamp(14px, 2.2vh, 24px);
}
.section--market .market-buyer__name {
  font-size: clamp(1.35rem, 1.65vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 11ch;
  color: var(--ivory);
}
/* Диагональный ритм: чётные колонки опущены, сетка перекликается
   с лесенкой головы. Только на десктопной 4-колоннике — на ≤1024px
   правило не существует, и reveal-анимация работает как обычно. */
@media (min-width: 1025px) {
  .section--market .market-buyer:nth-child(even) { transform: translateY(28px); }
}

/* --- Плашка о нацпроекте: фактура урожая слева, текст справа --- */
.section--market .market-note {
  margin-top: clamp(56px, 9vh, 104px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 50% 120%, rgba(227, 164, 41, .06), transparent 70%),
    linear-gradient(120deg, var(--bg-1), var(--bg-0) 85%);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
}
@media (min-width: 1025px) {
  /* Полоса воздуха под сеткой: в ней целиком живёт водяной знак «08»,
     чётные колонки спускаются в неё, не задевая плашку */
  .section--market .market-note { margin-top: clamp(210px, 16vw, 250px); }
}
.section--market .market-note__media {
  position: relative;
  margin: 0;
  min-height: clamp(220px, 22vw, 300px);
  border-right: 1px solid var(--line-gold);
}
.section--market .market-note__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(.68) contrast(1.05) brightness(.8) sepia(.14);
}
.section--market .market-note__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 8, .6), rgba(13, 11, 8, .05) 40%, rgba(13, 11, 8, .72) 100%),
    linear-gradient(0deg, rgba(13, 11, 8, .35), transparent 45%);
}
.section--market .market-note__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 24px);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 4.5vw, 64px);
}
.section--market .market-note__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ivory);
  max-width: 38ch;
  text-wrap: balance;
}
.section--market .market-note__text em { white-space: nowrap; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .section--market .market-watermark {
    top: 24px;
    right: -12px;
    font-size: clamp(10rem, 24vw, 15rem);
    -webkit-text-stroke-color: rgba(227, 164, 41, .08);
  }
  .section--market .market-head {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .section--market .market-head__lead { padding-bottom: 0; }
  .section--market .market-buyers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 40px);
  }
  .section--market .market-buyer__idx { margin-bottom: 18px; }
  .section--market .market-note {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (max-width: 768px) {
  .section--market .market-watermark {
    font-size: 26vw;
    top: 64px;
    right: 16px;
    -webkit-text-stroke-color: rgba(227, 164, 41, .08);
  }
  .section--market .market-note {
    grid-template-columns: 1fr;
  }
  .section--market .market-note__media {
    min-height: 0;
    aspect-ratio: 21 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line-gold);
  }
  .section--market .market-note__media::after {
    background:
      linear-gradient(180deg, rgba(13, 11, 8, .2), rgba(13, 11, 8, .05) 40%, rgba(13, 11, 8, .6) 100%);
  }
  .section--market .market-note__body {
    padding: 28px 24px 32px;
    gap: 16px;
  }
  .section--market .market-note__text { max-width: 31ch; }
}

@media (max-width: 480px) {
  .section--market .market-head__lead { font-size: 1rem; } /* ровный правый край: группы с nbsp помещаются в строку */
  .section--market .market-buyers__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section--market .market-buyer {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-block: 22px;
  }
  .section--market .market-buyer:last-child { border-bottom: 1px solid var(--line); }
  .section--market .market-buyer__idx { margin-bottom: 0; }
  .section--market .market-buyer__name { max-width: none; }
}
