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

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

/* ---------- "At a glance": three cells instead of four ---------- */
@media (min-width: 901px) {
  .wn402 .value-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Three steps (Food review) ---------- */
.wn402 .wn-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
}
.wn402 .wn-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.wn402 .wn-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}
.wn402 .wn-step-t { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.wn402 .wn-step-d { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }

/* ---------- Example quote (Observation) ---------- */
.wn402 .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);
}
.wn402 .wn-quote-k {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
}
.wn402 .wn-quote-t { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wn402 .wn-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 44px; }
  .wn402 .wn-step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 16px 18px;
  }
  .wn402 .wn-step-n { grid-row: span 2; }
}

@media (max-width: 500px) {
  .wn402 .wn-quote-t { font-size: 16px; }
  .wn402 .wn-final-soon { align-self: stretch; justify-content: center; text-align: center; }
}

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

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