/* AR on the homepage and product pages (Shturko_AR_Promo). */
.homepage__ar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 2rem 2.2rem;
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 222, 170, 0.45), transparent 55%),
    linear-gradient(135deg, #eaf5fa 0%, #fdf6ec 100%);
  color: #1f4568;
  box-shadow: 0 10px 34px rgba(31, 69, 104, 0.07);
  overflow: hidden;
}
.homepage__ar-kicker {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #287b9b;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.homepage__ar-title {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
  color: #1f4568;
}
.homepage__ar-copy p {
  margin: 0 0 0.75rem;
  color: #34506a;
  line-height: 1.6;
}
.homepage__ar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.homepage__ar-chips li {
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: #fff;
  color: #1f4568;
  font-size: 0.85rem;
  font-weight: 400;
  box-shadow: 0 2px 10px rgba(31, 69, 104, 0.06);
}
.homepage__ar-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.homepage__ar-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(31, 69, 104, 0.16));
}
.homepage__ar-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.55), transparent 70%);
}
.homepage__ar-phone {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 2%;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #e4572e;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(240, 77, 35, 0.2);
  font-weight: 400;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .homepage__ar {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }
  .homepage__ar-visual { order: -1; }
}

.shturko-product-features {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.shturko-product-features li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.6rem;
  line-height: 1.5;
}
.shturko-product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fbe9b7;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 400;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}
.shturko-product-features__note {
  margin: -0.4rem 0 1rem;
  color: #6b7a89;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Bonus items (free extras, not part of the price — terms §2а): homepage «Включва» and product page. */
.homepage__cards-bonus,
.shturko-product-features__bonus {
  display: inline-block;
  margin-right: 0.3em;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: #e4572e;
  color: #fff;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.homepage__cards-includes li.is-bonus .homepage__cards-check {
  background: #fde3d9;
  color: #e4572e;
}
/* One shared note under the deck tabs (applies to every deck). */
.homepage__cards-bonus-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: #fff6e9;
  color: #2f4a63;
  font-size: 0.9rem;
  line-height: 1.5;
}
.homepage__cards-inner .homepage__cards-bonus-note {
  box-sizing: border-box;
  width: 100%;
  max-width: none; /* not the 70ch paragraph measure: the strip spans the deck block */
}
.homepage__cards-bonus-note-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fde3d9;
  color: #e4572e;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1;
}
.homepage__cards-bonus-note a,
.shturko-product-features__included a { font-weight: 400; }
.shturko-product-features li.is-bonus::before {
  content: "+";
  background: #fde3d9;
  color: #e4572e;
}
.shturko-product-features__included {
  margin: -0.2rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #fff4e5;
  color: #123b64;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Homepage trust strip («Доверие»): four equal columns, text clear of the dotted dividers.
   The base rules live in the Customizer CSS (bin/setup-homepage-v2-illustrated.php); these win by specificity. */
@media (min-width: 901px) {
  section.homepage__trust .homepage__trust-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  section.homepage__trust .homepage__trust-item,
  section.homepage__trust .homepage__trust-item:last-child {
    min-width: 0;
    padding: 0.35rem clamp(0.9rem, 1.4vw, 1.4rem);
    gap: 0.6rem;
  }
  section.homepage__trust .homepage__trust-item:first-child { padding-left: 0.25rem; }
  section.homepage__trust .homepage__trust-item:last-child { padding-right: 0.25rem; }
  section.homepage__trust .homepage__trust-item .homepage__trust-img {
    width: 60px !important;
    height: 60px !important;
    margin-inline-end: 0;
  }
  section.homepage__trust .homepage__trust-title {
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* «Нашите карти» on desktop is one viewport tall with overflow hidden (Customizer CSS);
   the longer «Включва» list and the AR banner need it to grow instead of being cut off. */
@media (min-width: 900px) {
  section.homepage__cards {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Deck link under «Включва» (Shturko_AR_Promo::homepage): names the deck, sits with the text. */
html body .homepage--v2 a.homepage__cards-more,
html body a.homepage__cards-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin: -6px 0 0;
  padding: 0;
  color: #d93f1b !important;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none !important;
  text-underline-offset: 4px;
}
html body a.homepage__cards-more span { transition: transform 180ms ease; }
html body a.homepage__cards-more:is(:hover, :focus-visible) { text-decoration: underline !important; }
html body a.homepage__cards-more:is(:hover, :focus-visible) span { transform: translateX(3px); }

/* «Как се играе» under the hero (Shturko_AR_Promo::how_to_play). */
.homepage__how {
  box-sizing: border-box;
  width: 100vw; /* full width like the hero: the homepage's own column is narrower */
  margin-left: calc(50% - 50vw);
  padding: clamp(2.5rem, 5vw, 4rem) 1rem clamp(3.5rem, 7vw, 5.5rem);
  background: linear-gradient(135deg, #eaf5fa 0%, #fdf6ec 100%);
  color: #1f4568;
  scroll-margin-top: 4.5rem;
}
.homepage__how-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
html body .homepage--v2 .homepage__how-title { margin: 0.7rem 0 0.4rem; }
html body .homepage--v2 .homepage__how-lead {
  max-width: 44rem;
  margin: 0 auto 2rem;
  color: #34506a;
  font-size: 1.1rem;
  line-height: 1.5;
}
html body .homepage--v2 ol.homepage__how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px; /* three clips and their text fit one screen */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.homepage__how-step {
  position: relative;
  margin: 0;
  padding: 0;
}
.homepage__how-clip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 676;
  object-fit: cover;
  border-radius: 22px;
  background: #d9e6ee;
  box-shadow: 0 10px 28px rgba(31, 69, 104, 0.14);
}
.homepage__how-clip {
  transition: opacity 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}
/* One clip moves at a time: three moving side by side made people dizzy. */
.homepage__how-clip:not(.is-playing) { opacity: 0.72; }
.homepage__how-clip.is-playing { box-shadow: 0 0 0 4px #d93f1b, 0 10px 28px rgba(31, 69, 104, 0.18); }
@media (prefers-reduced-motion: reduce) {
  .homepage__how-clip { transition: none; }
  .homepage__how-clip:not(.is-playing) { opacity: 1; }
}
.homepage__how-step-copy { padding: 1rem 0.25rem 0; }
.homepage__how-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: #d93f1b;
  color: #fff;
  font-family: Andika, sans-serif;
  font-size: 1.05rem;
}
html body .homepage--v2 .homepage__how-step-title,
html body .homepage--v2 .homepage__how-try-title {
  margin: 0 0 0.35rem;
  color: #1f4568;
  font-family: Andika, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}
html body .homepage--v2 .homepage__how-step p,
html body .homepage--v2 .homepage__how-try p {
  margin: 0;
  max-width: none;
  color: #34506a;
  font-size: 1rem;
  line-height: 1.5;
}
.homepage__how-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 2rem 0 0;
}
/* The white secondary button (design-system.md §8), with the hero's pause/play icons. */
html body .homepage--v2 .homepage__how-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
html body .homepage--v2 .homepage__how-toggle[hidden] { display: none; }
/* These two are <button>s: without this the theme's button hover/focus/active colours win. Design system §8: lift + shadow only. */
html body .homepage--v2 button.homepage__how-toggle,
html body .homepage--v2 button.homepage__how-toggle:is(:hover, :focus, :active) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b64 !important;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
html body .homepage--v2 button.homepage__btn--primary,
html body .homepage--v2 button.homepage__btn--primary:is(:focus, :active) {
  background: #f04d23 !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(177, 53, 24, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
html body .homepage--v2 button.homepage__how-toggle:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 51, 67, 0.16);
}
html body .homepage--v2 button.homepage__btn--primary:is(:hover, :focus-visible) {
  background: #d93f1b !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(177, 53, 24, 0.26);
}
@media (prefers-reduced-motion: reduce) {
  html body .homepage--v2 button.homepage__how-toggle:is(:hover, :focus-visible),
  html body .homepage--v2 button.homepage__btn--primary:is(:hover, :focus-visible) { transform: none; }
}
.homepage__how-toggle-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.homepage__how-toggle-ico--play,
.homepage__how-toggle.is-paused .homepage__how-toggle-ico--pause { display: none; }
.homepage__how-toggle.is-paused .homepage__how-toggle-ico--play { display: block; }
.homepage__how-try {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 1.75rem auto 0;
  padding: 1.1rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(31, 69, 104, 0.08);
  text-align: left;
}
.homepage__how-qr {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
}
/* A computer scans the code; a phone follows the link. */
html body .homepage--v2 .homepage__how-try-link,
html body .homepage--v2 .homepage__how-try-linktext { display: none; }
html body .homepage--v2 .homepage__how-note {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: #34506a;
  font-size: 0.9rem;
  line-height: 1.5;
}
.homepage__how-dialog {
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #000;
}
.homepage__how-dialog::backdrop { background: rgba(10, 25, 40, 0.8); }
.homepage__how-dialog video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 2rem);
}
html body .homepage__how-close {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f4568;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 760px) {
  /* A clip beside its text, so all three steps fit in little scrolling. */
  html body .homepage--v2 ol.homepage__how-steps { grid-template-columns: 1fr; gap: 1rem; max-width: none; }
  .homepage__how-step {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
  }
  .homepage__how-clip { border-radius: 16px; }
  .homepage__how-step-copy { padding: 0; }
  html body .homepage--v2 .homepage__how-step-title { font-size: 1.15rem; }
  html body .homepage--v2 .homepage__how-step p { font-size: 0.95rem; }
}
@media (pointer: coarse) {
  html body .homepage--v2 .homepage__how-qr,
  html body .homepage--v2 .homepage__how-try-qrtext { display: none; }
  html body .homepage--v2 .homepage__how-try-linktext { display: block; }
  html body .homepage--v2 .homepage__how-try-link { display: inline-flex; margin-top: 0.75rem; }
}

/* «Как се играе» by pillar, then by way to play: the same look as the «Нашите карти» tabs (white, active #f9e4a4). */
.homepage__how-tablist { display: flex; gap: 0.6rem; }
.homepage__how-tablist--pillar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
  margin: 1.25rem auto 1.75rem;
}
html body .homepage--v2 button.homepage__how-pillar,
html body .homepage--v2 button.homepage__how-pillar:is(:hover, :focus, :active) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 59px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 59, 100, 0.14);
  border-radius: 16px;
  background: #fff !important;
  color: #123b64 !important;
  font-family: Andika, sans-serif;
  font-weight: 400;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
html body .homepage--v2 button.homepage__how-pillar:is(:hover, :focus-visible) { border-color: rgba(18, 59, 100, 0.4); }
html body .homepage--v2 button.homepage__how-pillar[aria-selected="true"],
html body .homepage--v2 button.homepage__how-pillar[aria-selected="true"]:is(:hover, :focus, :active) {
  border-color: rgba(219, 186, 100, 0.9);
  background: #f9e4a4 !important;
}
.homepage__how-pillar-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
}
.homepage__how-pillar[aria-selected="false"] .homepage__how-pillar-ico { background: #f4f7f9; }
.homepage__how-pillar-copy { display: grid; min-width: 0; }
.homepage__how-pillar-title { font-size: 1.1rem; line-height: 1.25; }
.homepage__how-pillar-sub { font-size: 0.88rem; line-height: 1.25; }
.homepage__how-pillar-sub.is-soon { color: #b83a14; }

html body .homepage--v2 .homepage__how-hook {
  margin: 0 0 1rem;
  color: #1f4568;
  font-family: Andika, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
}
.homepage__how-tablist--speak,
.homepage__how-tablist--choose {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 auto 1.1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.08);
}
html body .homepage--v2 button.homepage__how-way,
html body .homepage--v2 button.homepage__how-way:is(:hover, :focus, :active) {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: #123b64 !important;
  font-family: Andika, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
html body .homepage--v2 button.homepage__how-way:hover { background: #f4f7f9 !important; }
html body .homepage--v2 button.homepage__how-way[aria-selected="true"],
html body .homepage--v2 button.homepage__how-way[aria-selected="true"]:is(:hover, :focus, :active) { background: #f9e4a4 !important; }
html body .homepage--v2 :is(.homepage__how-pillar, .homepage__how-way):focus-visible { outline: 3px solid #123b64; outline-offset: 2px; }
.homepage__how-pane:focus-visible { outline: 3px solid #123b64; outline-offset: 6px; border-radius: 12px; }
.homepage__how-pane[hidden] { display: none; }

/* The real lion card, turned over by a tap. */
html body .homepage--v2 button.homepage__how-flip,
html body .homepage--v2 button.homepage__how-flip:is(:hover, :focus, :active) {
  display: block;
  width: 100%;
  aspect-ratio: 540 / 676;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent !important;
  color: #123b64 !important;
  font-family: Andika, sans-serif;
  font-weight: 400;
  box-shadow: none;
  transform: none;
  perspective: 1200px;
  cursor: pointer;
}
html body .homepage--v2 button.homepage__how-flip:focus-visible { outline: 3px solid #123b64; outline-offset: 3px; }
.homepage__how-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
  transform-style: preserve-3d;
}
.homepage__how-flip[aria-pressed="true"] .homepage__how-flip-inner { transform: rotateY(180deg); }
.homepage__how-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  padding: 0.9rem;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(31, 69, 104, 0.14);
  backface-visibility: hidden;
}
.homepage__how-flip-face--back {
  justify-content: space-evenly;
  align-items: stretch;
  gap: 0.4rem;
  transform: rotateY(180deg);
}

/* One clip beside a list (online games), two wide clips (Circles of Trust game). */
.homepage__how-split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.homepage__how-split .homepage__how-clip { aspect-ratio: 640 / 810; }
.homepage__how-games { display: grid; gap: 0.85rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
html body .homepage--v2 .homepage__how-games h4 { margin: 0 0 0.15rem; font-size: 1.15rem; }
html body .homepage--v2 .homepage__how-games p { margin: 0; max-width: none; color: #34506a; font-size: 1rem; line-height: 1.45; }
.homepage__how-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.homepage__how-clip.is-wide { aspect-ratio: 720 / 504; }
html body .homepage--v2 .homepage__how-pair + .homepage__how-note {
  margin-top: 0.6rem;
  text-align: center !important; /* the site's Customizer CSS forces every p to the left */
}
html body .homepage--v2 .homepage__how-question {
  max-width: none;
  margin: 0 auto 1rem;
  color: #1f4568;
  font-family: Andika, sans-serif;
  font-size: 1.15rem;
  text-align: center !important;
}
.homepage__how-soon { max-width: 36rem; margin: 0 auto; padding: 2rem 1rem; }
.homepage__how-soon-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: #fbebe3;
  color: #b83a14;
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .homepage__how-tablist--pillar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .homepage--v2 button.homepage__how-pillar { padding: 7px 9px; gap: 0.45rem; }
  .homepage__how-pillar-ico { width: 34px; height: 34px; font-size: 1.05rem; }
  .homepage__how-pillar-title { font-size: 1rem; }
  .homepage__how-pillar-sub { font-size: 0.8rem; }
  html body .homepage--v2 button.homepage__how-way { padding: 0 0.8rem; font-size: 0.95rem; }
  .homepage__how-split { grid-template-columns: 1fr; gap: 1rem; }
  .homepage__how-split .homepage__how-clip { max-width: 280px; margin: 0 auto; }
  .homepage__how-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage__how-flip-inner { transition: none; }
}

/* The real printed card fills the flip step. */
html body .homepage--v2 button.homepage__how-flip.is-real,
html body .homepage--v2 button.homepage__how-flip.is-real:is(:hover, :focus, :active) { position: relative; aspect-ratio: 90 / 110; }
.homepage__how-flip.is-real .homepage__how-flip-face { padding: 0; overflow: hidden; }
.homepage__how-flip.is-real .homepage__how-flip-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.homepage__how-flip-tag {
  position: absolute;
  left: 0.6rem;
  bottom: 1rem;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: #fff;
  color: #123b64;
  font-size: 0.85rem;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.16);
}

/* Word card / game card: small tabs over the printed card. */
.homepage__how-tablist--cards {
  gap: 0.2rem;
  margin: 0 0 0.6rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.08);
}
html body .homepage--v2 .homepage__how-tablist--cards button.homepage__how-way,
html body .homepage--v2 .homepage__how-tablist--cards button.homepage__how-way:is(:hover, :focus, :active) {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
@media (min-width: 761px) {
  /* The tabs sit above the row, so the three pictures and their numbers stay level. */
  html body .homepage--v2 .homepage__how-lead:has(+ .homepage__how-steps .homepage__how-cards) { margin-bottom: 3.9rem; }
  .homepage__how-cards { margin-top: -3.4rem; }
}
@media (max-width: 760px) {
  /* A game card is full of text: it gets the whole width here, not the 42% column. */
  .homepage__how-step:has(.homepage__how-cards) { grid-template-columns: minmax(0, 1fr); }
  .homepage__how-cards { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* «На масата»: how a game card works with all the words, a worked example. */
.homepage__how-gamecards { max-width: 760px; margin: 2.25rem auto 0; text-align: left; }
html body .homepage--v2 .homepage__how-gamecards .homepage__how-hook { margin: 0 0 0.5rem; }
html body .homepage--v2 .homepage__how-gamecards p { margin: 0 0 1rem; max-width: none; color: #34506a; font-size: 1.05rem; line-height: 1.45; }
.homepage__how-gamecards-example {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.1);
}
.homepage__how-gamecards-example img { flex: 0 0 auto; width: 110px; height: auto; border-radius: 8px; }
html body .homepage--v2 .homepage__how-gamecards p.homepage__how-gamecards-label { margin: 0 0 0.5rem; color: #1f4568; font-family: Andika, sans-serif; }
html body .homepage--v2 .homepage__how-gamecards-example ol { margin: 0; padding-left: 1.25rem; color: #34506a; font-size: 1rem; line-height: 1.4; }
html body .homepage--v2 .homepage__how-gamecards-example li { margin: 0 0 0.35rem; }
html body .homepage--v2 .homepage__how-gamecards-example li:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .homepage__how-gamecards-example { flex-direction: column; }
}

/* Pause sits by the section title, before any video moves. */
.homepage__how-head {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 761px) {
  html body .homepage--v2 button.homepage__how-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    min-height: 44px;
    padding: 0 1.1rem;
    margin-top: -22px;
  }
  html body .homepage--v2 button.homepage__how-toggle:is(:hover, :focus-visible) { transform: translateY(-2px); }
}
@media (max-width: 760px) {
  html body .homepage--v2 button.homepage__how-toggle { min-height: 44px; padding: 0 1.1rem; margin: 0.25rem auto 0; }
}

/* The YES and NO answer clips: label and ring in the colours of the printed ДА and НЕ cards. */
.homepage__how-answer { --how-answer: #607b3a; margin: 0; }
.homepage__how-answer--no { --how-answer: #d93f1b; }
.homepage__how-answer figcaption {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3em 1em;
  border-radius: 999px;
  background: var(--how-answer);
  color: #fff;
  font-family: Andika, sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}
.homepage__how-answer .homepage__how-clip:hover,
.homepage__how-answer .homepage__how-clip.is-playing {
  opacity: 1;
  box-shadow: 0 0 0 4px var(--how-answer), 0 10px 28px rgba(31, 69, 104, 0.18);
}

/* «Онлайн»: one clip, a list of the games and sample missions. */
.homepage__how-gameshow {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.homepage__how-clip.is-game { aspect-ratio: 480 / 540; background: #fff; object-fit: contain; opacity: 1; }
html body .homepage--v2 .homepage__how-games-group {
  margin: 0 0 0.45rem;
  max-width: none;
  color: #34506a;
  font-size: 0.95rem;
}
.homepage__how-games-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
html body .homepage--v2 button.homepage__how-game,
html body .homepage--v2 button.homepage__how-game:is(:hover, :focus, :active) {
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid rgba(18, 59, 100, 0.14);
  border-radius: 999px;
  background: #fff !important;
  color: #123b64 !important;
  font-family: Andika, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
html body .homepage--v2 button.homepage__how-game:hover { border-color: rgba(18, 59, 100, 0.4); }
html body .homepage--v2 button.homepage__how-game[aria-pressed="true"],
html body .homepage--v2 button.homepage__how-game[aria-pressed="true"]:is(:hover, :focus, :active) {
  border-color: rgba(219, 186, 100, 0.9);
  background: #f9e4a4 !important;
}
html body .homepage--v2 button.homepage__how-game:focus-visible { outline: 3px solid #123b64; outline-offset: 2px; }
.homepage__how-game-now {
  min-height: 7rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(31, 69, 104, 0.08);
}
html body .homepage--v2 .homepage__how-game-now p { margin: 0; max-width: none; color: #34506a; font-size: 1rem; line-height: 1.5; }
.homepage__how-missions { max-width: 900px; margin: 2.25rem auto 0; text-align: left; }
.homepage__how-missions-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.homepage__how-missions-head img { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; }
html body .homepage--v2 .homepage__how-missions-head .homepage__how-hook { margin: 0 0 0.2rem; }
html body .homepage--v2 .homepage__how-missions-head p { margin: 0; max-width: none; color: #34506a; font-size: 1.05rem; line-height: 1.45; }
html body .homepage--v2 ul.homepage__how-mission-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.homepage__how-mission {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(31, 69, 104, 0.08);
}
.homepage__how-mission-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15em 0.75em;
  border-radius: 999px;
  background: #fbebe3;
  color: #b83a14;
  font-size: 0.85rem;
}
html body .homepage--v2 p.homepage__how-mission-text {
  margin: 0 0 0.5rem;
  max-width: none;
  color: #123b64;
  font-family: Andika, sans-serif;
  font-size: 1.08rem;
  line-height: 1.4;
}
html body .homepage--v2 p.homepage__how-mission-tip { margin: 0; max-width: none; color: #34506a; font-size: 0.92rem; line-height: 1.45; }
.homepage__how-mission-tip span { color: #1f4568; font-family: Andika, sans-serif; }
@media (max-width: 760px) {
  .homepage__how-gameshow { grid-template-columns: 1fr; gap: 1rem; }
  .homepage__how-clip.is-game { max-width: 300px; margin: 0 auto; }
  html body .homepage--v2 ul.homepage__how-mission-list { grid-template-columns: 1fr; }
  .homepage__how-missions-head img { width: 72px; height: 72px; }
}
