/* Внутрішні сторінки */

/* Колонки */
.page { padding-block: 40px var(--sec); }
.col { max-width: 948px; margin-inline: auto; padding-inline: 24px; }
.col-narrow { max-width: 748px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 767.98px) { .col, .col-narrow { padding-inline: 20px; } }
.prose { max-width: 700px; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin: 64px 0 20px; }
.prose h3 { margin: 40px 0 10px; }
.prose h4 { margin: 28px 0 8px; font: 600 1.0625rem/1.3 var(--sans); }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.plain) { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.prose ul:not(.plain) li { margin-bottom: 6px; padding-left: 4px; }
.prose ul li::marker { color: var(--ink); }
.prose p, .prose li { max-width: 40rem; }
.small { font-size: 0.875rem; line-height: 1.5; }
.muted { color: var(--muted); }

/* Шапка сторінки */
.crumbs { margin-bottom: 32px; font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; content: "›" / ""; margin-inline: 10px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.page-head h1 { margin-bottom: 24px; max-width: 16em; }
.page-head .lead { margin: 0; max-width: 38em; }
.page-head { margin-bottom: 56px; }
.h1-row { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.h1-row h1 { margin: 0; }
.updated { margin: 0 0 32px; color: var(--muted); font-size: 0.875rem; }
.legal .page-head { margin-bottom: 40px; }

/* Схеми */
.gd { margin: 0 0 24px; }
.gd .dg { width: 100%; height: auto; margin-inline: auto; }
.gd .dg-narrow { max-width: 360px; }
.gd .dg-wide { display: none; max-width: 900px; }
@media (min-width: 768px) { .gd .dg-narrow { display: none; } .gd .dg-wide { display: block; } }
.gd .shapes * { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: miter; }
.gd .heads polygon { fill: var(--ink); stroke: none; }
.gd text { fill: var(--ink); font: 600 15px/1 var(--sans); }
.gd .dg-narrow text { font-size: 14px; }
.gd .lb { font-weight: 400; }
.gd figcaption { margin-top: 20px; font-size: 0.875rem; line-height: 1.55; font-style: italic; max-width: 40rem; }
.gd-link { margin: 0 0 8px; font-weight: 600; }
.diagram-block { margin-bottom: 72px; }
.diagram-title { font: 600 var(--h3)/1.25 var(--serif); margin: 0 0 20px; }
.gd-sec { margin-top: 64px; }

/* Фото в тексті */
.photo { margin: 48px 0; max-width: 700px; }
.photo .frame { margin-right: 8px; }
.photo figcaption { margin-top: 24px; font-style: italic; font-size: 0.9375rem; line-height: 1.5; max-width: 40rem; }
.photo img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Resumen */
.resumen { border: var(--line); padding: 28px 24px; margin: 72px 0 40px; max-width: 700px; }
.resumen h2 { margin: 0 0 16px; font-size: var(--h3); line-height: 1.2; }
.resumen ul { list-style: disc; padding-left: 1.25em; }
.resumen li { margin-bottom: 8px; padding-left: 4px; max-width: 40rem; }
.resumen li:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .resumen { padding: 36px 40px; } }

/* Enlaces finales */
.end-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.end-links .btn { text-align: left; justify-content: flex-start; }

/* Таблиці */
.tbl-wrap { overflow-x: auto; margin: 24px 0 8px; max-width: 100%; border: var(--line); background: transparent; }
.tbl-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
caption { text-align: left; font: 600 1.0625rem/1.3 var(--sans); padding: 14px 14px 12px; caption-side: top; }
.tbl-cap { font: 600 1.0625rem/1.3 var(--sans); margin: 40px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
th, td { border: var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--surface); font-weight: 600; }
tbody th { font-weight: 600; background: transparent; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-note { margin: 10px 0 0; max-width: 40rem; }
.tbl-wide { min-width: 620px; }

/* Таблиця третьої карти */
.t3 { min-width: 640px; }
.t3 th, .t3 td { text-align: center; padding: 9px 6px; min-width: 44px; }
.t3 thead th { background: var(--surface); }
.t3 thead th[colspan] { background: transparent; }
.t3 tbody th { text-align: left; padding-inline: 12px; white-space: nowrap; }
.t3 td.y { background: var(--ink); color: var(--bg); font-weight: 600; }
.t3 td.n { color: var(--muted); }
.t3 thead tr:first-child th:first-child { white-space: normal; text-align: left; min-width: 96px; }

/* Покер: стрічка кроків (компонент «pasos» із головної) */
.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; }
.rondas { margin-bottom: 72px; }
@media (min-width: 1100px) {
  .rondas .steps { grid-template-columns: repeat(4, 1fr); }
  .rondas .steps li { padding: 56px 0 0; }
  .rondas .steps li:not(:last-child)::before { left: 20px; right: -24px; top: 19.25px; bottom: auto; border-left: 0; border-top: var(--line); }
  .rondas .steps h3 { font-size: 1.3125rem; margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .rondas .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .rondas .steps li:not(:last-child)::before { display: none; }
}

/* Покер: масті — звичайний текст */
.cards { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Готелі */
.hotel-list { display: grid; gap: 56px; border-bottom: 0; }
.hotel { display: grid; gap: 28px; align-items: start; padding-top: 40px; border-top: var(--line); }
.hotel .frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.hotel-body h3 { margin: 0 0 4px; }
.hotel-body .city { font-weight: 600; margin-bottom: 12px; }
.hotel-body p { max-width: 38em; }
.hotel-meta { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.55; max-width: 40rem; }
.hotel-meta strong { font-weight: 600; }
.hotel-src { color: var(--muted); font-size: 0.875rem; line-height: 1.5; margin: 12px 0 0; max-width: 40rem; }
.hotel .credit { font-size: 0.875rem; color: var(--muted); margin: 16px 0 0; }
.hotel-nophoto { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .hotel { grid-template-columns: 5fr 7fr; gap: 24px 48px; }
  .hotel-nophoto { grid-template-columns: 1fr; }
  .hotel-nophoto .hotel-body { max-width: 760px; }
}

/* Глосарій */
.glos dl { margin: 0; max-width: 700px; }
.glos dt { font: 600 1.375rem/1.25 var(--serif); margin: 0; padding-top: 28px; border-top: var(--line); scroll-margin-top: 16px; }
.glos dt small { font: 400 0.9375rem/1.4 var(--sans); color: var(--muted); display: block; margin-top: 4px; }
.glos dd { margin: 8px 0 0; padding-bottom: 28px; max-width: 40rem; }
.glos dd p { margin: 0 0 6px; }
.glos dd .small { margin: 0; }
.glos dd .small a { font-weight: 600; }
.glos dl > :last-child { padding-bottom: 0; }

/* Лінки-секції */
.link-list { list-style: none; }
.link-list li { margin-bottom: 8px; }
.link-list a { font-weight: 600; }

/* Форма */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.form { display: grid; gap: 24px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--bg);
  border: var(--line); border-radius: 0; padding: 12px 14px; width: 100%; min-height: 48px;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.field [aria-invalid="true"] { border-width: 3px; padding: 10.5px 12.5px; }
.err { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.err::before { content: "× "; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; max-width: 40rem; }
.notice { border: var(--line); padding: 20px 24px; margin-bottom: 32px; max-width: 560px; }
.notice p { margin: 0; }
.notice-ok { background: var(--surface); }
.notice:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.side h2 { font-size: var(--h3); line-height: 1.25; margin: 0 0 12px; }
.side section + section { margin-top: 40px; }
.side p { max-width: 30rem; }
.side .mail { font: 600 1.125rem/1.3 var(--sans); word-break: break-word; }

/* Дані сайту (aviso legal) */
.facts { max-width: 700px; }
.facts li { margin-bottom: 6px; }

/* Кредити */
.credits-table { min-width: 860px; }
.credits-table td, .credits-table th { font-size: 0.875rem; }

@media (max-width: 599.98px) {
  .page { padding-top: 24px; }
  .page-head { margin-bottom: 40px; }
  .prose h2 { margin-top: 48px; }
  .hotel-list { gap: 40px; }
  .hotel { padding-top: 32px; }
  .h1-row { gap: 16px; }
  .h1-row .badge-lg { width: 56px; height: 56px; font-size: 1.125rem; }
}

/* Сторінка готелів */
.list-h { margin: 64px 0 28px; }
.after-list { margin: 64px 0 0; }
.hotel-src strong { font-weight: 600; }

code { font: 600 0.95em var(--sans); background: var(--surface); padding: 1px 6px; }
