/* ==========================================================================
   WOMP site — "What's new in 5.0" page (whats-new-5-0-0.html)
   Only what is NEW compared to whats-new-4-0-0.css (loaded before this file).
   Every selector is scoped under .wn500 (the <main> has class="wn400 wn500"),
   so nothing leaks into other pages. Based on whats-new-4-1-0.css (.wn402).
   ========================================================================== */

/* ---------- Android switch ----------
   <main class="wn400 wn500" data-android="live">  → «Android уже в Google Play» (так сейчас)
   <main class="wn400 wn500" data-android="soon">  → «Android скоро в Google Play»
   Элементы с классом wn-and-soon видны только в режиме «скоро», с wn-and-live — только в режиме «live». */
.wn500:not([data-android="live"]) .wn-and-live { display: none !important; }
.wn500[data-android="live"] .wn-and-soon { display: none !important; }

/* ---------- Подзаголовок внутри списка раздела ---------- */
.wn500 .wn-subhead { margin: 28px 0 6px; font-size: 20px; letter-spacing: -0.01em; }

/* ---------- Example quote (зачётный день) ---------- */
.wn500 .wn-quote {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--green-soft-2);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--green);
}
.wn500 .wn-quote-k {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
}
.wn500 .wn-quote-t { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text); }

/* ---------- Виджеты: шесть карточек в три колонки ---------- */
.wn500 .wn-mini-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wn500 .wn-grid-title { margin-top: 72px; }

/* ---------- «Как всё устроено»: кнопка и ссылки на разделы инструкции ---------- */
.wn500 .wn-guide-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wn500 .wn-guide-links .btn { margin-right: 6px; }
.wn500 .wn-guide-links .chip { text-decoration: none; }

/* ---------- Android pill on the green block, links to earlier pages ---------- */
.wn500 .wn-final-soon { align-self: center; }
.wn500 .wn-prev {
  margin: 32px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.wn500 .wn-prev a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Лента «Ещё экраны» на 1000+ px: в один ряд (кадры чуть уже), а не 4 + 1 ---------- */
@media (min-width: 1000px) {
  .wn500 .wn-strip-list { flex-wrap: nowrap; }
  .wn500 .wn-strip-item { flex: 0 1 204px; min-width: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wn500 .wn-mini-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wn500 .wn-grid-title { margin-top: 48px; }
}
@media (max-width: 560px) {
  .wn500 .wn-mini-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .wn500 .wn-quote-t { font-size: 16px; }
  .wn500 .wn-final-soon { align-self: stretch; justify-content: center; text-align: center; }
  .wn500 .wn-guide-links .btn { flex: 1 1 100%; justify-content: center; margin-right: 0; }
}

/* ---------- Узкие экраны: плашка «Android» может переноситься, а не вылезать из пилюли ---------- */
@media (max-width: 430px) {
  .wn500 .hero-badge { white-space: normal; text-align: center; }
}
