/* Hero */
.hero { padding-block: 48px 40px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-text .lead { margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .hero { padding-block: 72px 56px; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Схема */
.diagram { margin: 0 auto; max-width: 500px; }
.dg { width: 100%; height: auto; margin-inline: auto; }
.dg-narrow { max-width: 340px; }
.dg-wide { display: none; }
@media (min-width: 560px) { .dg-narrow { display: none; } .dg-wide { display: block; } }
.dg .shapes * { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: miter; }
.dg .hd { fill: var(--ink); stroke: none; }
.dg text { fill: var(--ink); font: 600 15px/1 var(--sans); }
.dg-narrow text { font-size: 14px; }
.dg .lb { font-weight: 400; }
.diagram figcaption { margin-top: 20px; font-size: 0.875rem; line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .dg .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dg-draw .4s ease-out forwards; animation-delay: var(--d, 0s); }
  .dg .hd { opacity: 0; animation: dg-pop .12s linear forwards; animation-delay: calc(var(--d, 0s) + .3s); }
}
@keyframes dg-draw { to { stroke-dashoffset: 0; } }
@keyframes dg-pop { to { opacity: 1; } }

/* Фото */
.photo-band { padding-block: 24px 0; }
.hero-photo img { aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 40%; }

/* Los juegos */
.game-list { border-bottom: var(--line); }
.game { display: grid; grid-template-columns: 96px 1fr; gap: 8px 20px; align-items: center; padding-block: 28px; border-top: var(--line); }
.game .mini { width: 96px; height: 64px; }
.mini * { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mini .dot { fill: var(--ink); stroke: none; }
.game-body h3 { margin-bottom: 6px; }
.game-body p { margin: 0; max-width: 40em; }
.game-link { grid-column: 2; font-weight: 600; justify-self: start; }
@media (min-width: 768px) {
  .game { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; }
  .game .mini { width: 120px; height: 80px; }
  .game-link { grid-column: auto; justify-self: end; white-space: nowrap; }
}

/* Mano de punto y banca */
.steps { display: grid; gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-left: 60px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 19.25px; top: 40px; bottom: -24px; border-left: var(--line); }
.num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: var(--line); border-radius: 50%; background: var(--bg);
  font: 600 1.0625rem/1 var(--serif);
}
.steps h3 { font-size: var(--h3); margin: 6px 0 8px; }
.steps p { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.steps-link { margin: 40px 0 0; font-weight: 600; }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(6, 1fr); }
  .steps li { padding: 56px 0 0; }
  .steps li:not(:last-child)::before { left: 20px; right: -24px; top: 19.25px; bottom: auto; border-left: 0; border-top: var(--line); }
  .steps h3 { font-size: 1.3125rem; margin-top: 0; }
}

/* Ventaja de la casa */
.cols3 { display: grid; gap: 40px; }
.cols3 h3 { margin-bottom: 12px; }
.cols3 p { margin: 0; }
@media (min-width: 900px) { .cols3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Hoteles */
.hotels-lead { margin-bottom: 56px; }
.hotel-list { display: grid; gap: 56px; }
.hotel { display: grid; gap: 28px; align-items: center; }
.hotel .frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.hotel-body h3 { margin-bottom: 4px; }
.city { font-weight: 600; margin-bottom: 12px; }
.hotel-body p { max-width: 38em; }
.credit { font-size: 0.875rem; color: var(--muted); margin: 16px 0 0; }
.hotels-cta { margin: 64px 0 0; }
@media (min-width: 900px) {
  .hotel { grid-template-columns: 5fr 7fr; gap: 24px 48px; }
}

/* Juego responsable */
.resp-wrap { padding-top: 0; }
.resp { display: grid; gap: 24px; padding: 32px 24px; border: var(--line); }
.resp h2 { margin-bottom: 16px; }
.resp p { max-width: 44em; }
.resp p:last-child { margin: 0; font-weight: 600; }
@media (min-width: 768px) {
  .resp { grid-template-columns: auto 1fr; gap: 40px; padding: 48px; align-items: start; }
}

/* Один відступ між сусідніми секціями однакового фону */
.hand { padding-top: 0; }
@media (max-width: 699.98px) {
  .hero-photo img { aspect-ratio: 4 / 3; }
}
