/* Головна */
.hero { padding-block: 40px 0; }
.hero-grid { display: grid; gap: 32px; }
.hero-text h1 { margin-bottom: 24px; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.6; }
.hero-text .lead { margin-bottom: 0; }
.narrow { max-width: 62ch; margin-top: 20px; }
@media (min-width: 900px) { .lead { font-size: 19px; } }
@media (min-width: 1000px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 28px; align-items: start; }
  .hero-text { grid-column: 1; grid-row: 1; padding-top: 8px; }
  .board-wrap { grid-column: 2; grid-row: 1 / 3; }
  .hero-btns { grid-column: 1; grid-row: 2; }
}
@media (max-width: 999px) { .board-wrap { max-width: 520px; } }

/* Плансза: мобільна (вертикальна) розкладка за замовчуванням */
.board-wrap { min-width: 0; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 38px; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.f { grid-row: var(--mr); grid-column: var(--mc); margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink); font: 600 15px/1.1 var(--serif); font-variant-numeric: lining-nums; background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; min-width: 0; }
.f.red { background: #8e3b32; }
.f.blk { background: #0b0f0e; }
.f.zero { background: #24493d; }
.f.grp.red { background: #8e3b32; }
.f:hover { filter: brightness(1.25); }
.f:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; position: relative; z-index: 1; }
.f[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--jade); position: relative; z-index: 1; }

.result { margin-top: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); min-height: 166px; transition: opacity 150ms ease; }
.result p { margin: 0 0 4px; }
.result.fade { opacity: 0; }
.result-title { font: 600 22px/1.25 var(--serif); margin-bottom: 8px !important; }
.board-note { margin-top: 12px; max-width: 62ch; }

@media (min-width: 1000px) {
  .board { grid-template-columns: 1.1fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(3, 52px) 44px 44px; grid-auto-rows: auto; }
  .f { grid-row: var(--r); grid-column: var(--c); font-size: 18px; }
  .f.grp { font-size: 15px; }
  .f.grp.red, .f.grp.blk { font-size: 15px; }
  .result { padding: 20px 24px; min-height: 144px; }
  .result-title { font-size: 28px; }
}

/* Секції */
.sec { padding-block: var(--sec) 0; }
.sec h2 { margin-bottom: 40px; }
.sec .narrow { margin-top: -16px; margin-bottom: 40px; }
.surface { background: var(--surface); padding-block: var(--sec); margin-top: var(--sec); }
.surface h2 { margin-bottom: 32px; }
.sec-tight { padding-block: var(--sec) 0; }

.table-row { display: grid; gap: 24px; margin-bottom: 56px; }
.table-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--surface); }
.table-text p { max-width: 62ch; }
.table-text h3 { margin-bottom: 12px; }
.odds { margin: 20px 0; max-width: 560px; }
.odds div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.odds div:last-child { border-bottom: 1px solid var(--line); }
.odds dt { color: var(--muted); font-size: 15px; line-height: 1.45; }
.odds dd { margin: 0; font: 600 19px/1.3 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 1000px) {
  .table-row { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-bottom: 80px; }
  .table-row.flip .table-img { order: 2; }
  .odds div { grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; }
  .odds dd { text-align: right; }
}

.cols3 { display: grid; gap: 20px; }
.cols3 p { margin: 0; font-size: 17px; max-width: 46ch; }
@media (min-width: 900px) { .cols3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } .cols3 p { font-size: 18px; } }

.hotel { display: grid; gap: 16px; padding-block: 32px; border-top: 1px solid var(--line); }
.hotel:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.hotel-city { font: 600 24px/1.2 var(--serif); margin: 0; }
.hotel-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--surface); }
.hotel-text h3 { margin-bottom: 8px; }
.hotel-text p { margin-bottom: 8px; }
@media (min-width: 1000px) {
  .hotel { grid-template-columns: 3fr 4fr 5fr; gap: 32px; align-items: center; padding-block: 40px; }
  .hotel-city { font-size: 28px; }
}

.resp { display: grid; gap: 16px; border: 1px solid var(--jade); padding: 24px; }
.resp-mark { margin: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; font: 600 18px/1 var(--serif); }
.resp h2 { font-size: 28px; margin-bottom: 12px; }
.resp p { max-width: 70ch; }
@media (min-width: 900px) { .resp { grid-template-columns: auto 1fr; gap: 32px; padding: 40px; } .resp h2 { font-size: 32px; } }
