/* template02: extensions over the Graphite & Gold concept (site.css) */
body.t2 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.t2 > header,
body.t2 > main,
body.t2 > footer {
  min-width: 0;
}
body.t2 > main {
  flex: 1 0 auto;
}
.t2-icon { flex-shrink: 0; }
.t2-gold { color: var(--gold); }
.t2-muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.t2-mt { margin-top: 28px; }
.t2-left { text-align: left; }
.t2-center { text-align: center; }
.t2-center > svg { margin: 0 auto 14px; }
.t2-h1 { font-size: clamp(40px, 5vw, 64px); margin: 12px 0 14px; }
.t2-h2 { font-size: 36px; margin: 8px 0 12px; }
body.t2-dialog-open { overflow: hidden; }

/* header */
.t2-header-user { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.t2-header-user:hover { color: var(--gold); border-color: var(--gold); }
.wordmark img { max-width: none; }
.mobile-toggle .t2-when-open, .mobile-toggle[aria-expanded="true"] .t2-when-closed { display: none; }
.mobile-toggle[aria-expanded="true"] .t2-when-open { display: block; }
.t2-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.t2-footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }

/* dialogs */
.t2-dialog[hidden] { display: none; }
.t2-dialog .t2-table { margin-top: 6px; }

/* cards & layout */
.t2-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.t2-card + .t2-card, .t2-card + .t2-grid-3 { margin-top: 18px; }
.t2-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.t2-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.t2-grid-3 > .t2-card + .t2-card, .t2-grid-2 > .t2-card + .t2-card { margin-top: 0; }
.t2-narrow { max-width: 480px; margin-inline: auto; }
.t2-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
.t2-inline-links { display: flex; gap: 22px; }
.t2-step-title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.t2-step-title span { font-family: "Bebas Pub", Impact, sans-serif; color: var(--gold); font-size: 22px; font-weight: 400; }
.t2-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.t2-notice { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid #d8b46a45; border-radius: 6px; margin-bottom: 18px; font-size: 12px; line-height: 1.7; }
.t2-notice svg { color: var(--gold); }
.t2-notice.ok { background: #d8b46a12; }

/* forms */
.t2-form { margin-top: 22px; }
.t2-field { margin-bottom: 16px; }
.t2-input { width: 100%; min-height: 45px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--graphite); color: var(--text); outline: none; transition: border-color .2s; }
.t2-input:focus { border-color: var(--gold); }
.t2-input[readonly] { opacity: .7; }
.t2-input[type=file] { padding: 9px 12px; font-size: 11px; }
.t2-field .select-wrap select { width: 100%; background: transparent; color: var(--text); padding: 10px 20px 10px 0; outline: none; }
.t2-field .select-wrap option, .preorder_goods-list select option { background: var(--surface); color: var(--text); }
.t2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.t2-error, .invalid_value { color: #ef8a7a; font-size: 11px; margin-top: 6px; }
.has-error .t2-input { border-color: #ef8a7a; }
.invalid_value { display: none; }
.invalid + .invalid_value { display: block; }
.t2-input.invalid { border-color: #ef8a7a; }
.fine-print a { text-decoration: underline; }

/* auth */
.t2-auth { min-height: 60vh; }
.t2-auth .t2-card { padding: 38px; }
.t2-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.t2-404 { line-height: 1; }

/* booking */
.preorder_step { display: none; }
.preorder_step.active { display: block; animation: appear .25s; }
.t2-booking-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.t2-booking-head .page-heading { max-width: 760px; }
.t2-booking-total { text-align: right; margin-bottom: 43px; display: flex; flex-direction: column; align-items: end; gap: 8px; }
.t2-booking-total strong { font-size: 72px; color: var(--gold); line-height: .9; transition: transform .3s; }
.preorder_percentage-total.big { transform: scale(1.12); }
.t2-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.t2-chips-col { flex-direction: column; }
.t2-days .t2-chip { flex: 1 1 110px; }
.t2-chip { position: relative; }
.t2-chip input { position: absolute; opacity: 0; pointer-events: none; }
.t2-chip label { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s; }
.t2-chips-col .t2-chip label { flex-direction: row; align-items: center; justify-content: space-between; }
.t2-chip label:hover { border-color: #d8b46a80; }
.t2-chip input:checked + label { border-color: var(--gold); background: #d8b46a14; }
.t2-chip input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.t2-chip input:disabled + label { opacity: .4; cursor: not-allowed; }
.t2-chip-main { font-size: 13px; font-weight: 600; }
.t2-chip-sub { font-size: 10px; color: var(--muted); }
.t2-chip-discount { font-size: 11px; font-weight: 700; color: var(--muted); }
.text_yellow { color: var(--gold); }
.t2-counter { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; text-align: center; }
.t2-counter strong { display: block; font-size: 48px; line-height: 1; }
.t2-counter > div > span, .t2-counter small { display: block; font-size: 11px; }
.t2-counter small { margin-top: 4px; font-weight: 700; }
.t2-round-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.t2-round-btn:hover:not(:disabled) { background: var(--gold); color: var(--graphite); border-color: var(--gold); }
.t2-round-btn:disabled, .button:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.t2-goods-head, .preorder_goods-list-item { display: grid; grid-template-columns: 1.2fr 1.6fr 140px 90px 100px 40px; gap: 12px; align-items: center; }
.t2-goods-head { font-size: 10px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.preorder_goods-list-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.preorder_goods-list-item > * { min-width: 0; }
.preorder_goods-list .common_input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--graphite); color: var(--text); }
.preorder_goods-line .d-lg-none { display: none; }
.preorder_goods-line .d-flex { display: flex; }
.preorder_goods-line .align-items-center { align-items: center; }
.preorder_goods-line .justify-content-between { justify-content: space-between; }
.preorder_goods-line .w-100 { width: 100%; }
.preorder_goods-line .flex-grow-1 { flex-grow: 1; }
.preorder_goods-line .text-center, .preorder_goods-line.text-center { text-align: center; }
.preorder_goods-btn-less, .preorder_goods-btn-more, .preorder_goods-btn-remove { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.preorder_goods-btn-less:hover, .preorder_goods-btn-more:hover { border-color: var(--gold); color: var(--gold); }
.preorder_goods-btn-remove::before { content: "×"; font-size: 18px; line-height: 1; }
.preorder_goods-btn-remove:hover { background: #ef8a7a; border-color: #ef8a7a; color: var(--graphite); }
.preorder_goods-price, .preorder_goods-sum { font-size: 12px; white-space: nowrap; }
.preorder_goods-sum { color: var(--gold); font-weight: 600; }
#btn_add_menu { margin-top: 18px; }
.preorder_goods-list-item .mr-2 { margin-right: 0; }

.t2-summary { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding: 24px 28px; border-radius: 8px; background: linear-gradient(115deg, #2a2c2d, #202224); border: 1px solid #d8b46a45; }
.t2-totals { display: flex; gap: 34px; flex-wrap: wrap; align-items: end; }
.t2-totals > div > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.t2-totals strong { font-size: 34px; line-height: 1; }
.t2-totals p { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.t2-totals-static { margin: 18px 0; }
.t2-summary-actions { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.t2-summary-actions > div { display: flex; gap: 10px; }
.t2-summary-actions > div .button { flex: 1; }

/* tables */
.t2-table-wrap { overflow-x: auto; }
.t2-table { width: 100%; font-size: 12px; }
.t2-table th { text-align: left; font-size: 10px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t2-table td { padding: 12px; border-bottom: 1px solid #ffffff10; vertical-align: top; }
.t2-table tr:hover td { background: #ffffff05; }
.t2-table s { display: block; font-size: 10px; }
.text_bold { font-weight: 700; }
.stooltip { position: relative; cursor: help; }
.stooltip.dashed { border-bottom: 1px dashed currentColor; }
.stooltip .tooltip-data { display: none; position: absolute; z-index: 5; bottom: 130%; left: 0; width: 200px; padding: 8px 10px; border-radius: 5px; background: var(--surface-raised); border: 1px solid var(--line); font-size: 10px; color: var(--text); }
.stooltip:hover .tooltip-data { display: block; }

/* details */
.t2-detail { align-items: start; }
.t2-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.t2-status { font-size: 11px; font-weight: 700; white-space: nowrap; }
.t2-status.ok { color: #8fd19e; }
.t2-status.muted { color: var(--muted); }
.t2-code { display: block; font-size: 44px; color: var(--gold); margin: 8px 0 12px; word-break: break-all; }
.t2-link-break { display: block; font-size: 11px; word-break: break-all; color: var(--gold); margin: 6px 0 14px; }

/* profile */
.t2-profile-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.t2-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.t2-profile-head .t2-h1 { margin: 6px 0 2px; }
.t2-logout { margin-left: auto; }
.t2-tabs { flex-wrap: wrap; margin-bottom: 30px; }
.t2-tabs .filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.t2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 50px; }
.t2-stat { padding: 24px 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s; }
.t2-stat:hover { border-color: var(--gold); }
.t2-stat strong { display: block; font-size: 56px; line-height: 1; margin-top: 10px; }
.t2-section-sm { margin-bottom: 22px; }
.t2-booking-list { display: flex; flex-direction: column; gap: 10px; }
.t2-booking-row { display: flex; align-items: center; gap: 20px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s; }
.t2-booking-row:hover { border-color: var(--gold); }
.t2-booking-row .date-ticket { position: static; }
.t2-booking-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t2-booking-row-main strong { font-size: 14px; }
.t2-booking-row-main .t2-muted { font-size: 11px; line-height: 1.5; }
.t2-booking-row-pct { font-family: "Bebas Pub", Impact, sans-serif; font-size: 28px; }

/* pager */
.t2-pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.t2-pager a, .t2-pager span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.t2-pager a:hover { border-color: var(--gold); color: var(--gold); }
.t2-pager .active { background: var(--gold); border-color: var(--gold); color: var(--graphite); font-weight: 700; }

/* article & legacy text pages */
.t2-article { max-width: 860px; }
.t2-article .detail-image { margin: 28px 0; border-radius: 8px; width: 100%; }
.t2-prose { font-size: 14px; line-height: 1.85; color: #dcd9d1; }
.t2-prose p, .t2-prose ul, .t2-prose ol, .t2-prose table { margin-bottom: 1em; }
.t2-prose ul { list-style: disc; padding-left: 1.4em; }
.t2-prose ol { list-style: decimal; padding-left: 1.4em; }
.t2-prose a { color: var(--gold); text-decoration: underline; }
.t2-prose h2, .t2-prose h3, .t2-prose h4 { font-weight: 700; color: var(--text); margin: 1.4em 0 .6em; }
.t2-prose img { border-radius: 6px; margin: 1em 0; }
.t2-legacy .service_page-body img {
    display: inline;
    width: auto;
    height: 25px;
    max-width: 88px;
    margin: 0 0 0 8px;
    vertical-align: middle;
    border-radius: 0;
}
.t2-legacy { max-width: 900px; }
.t2-legacy .sbreadcrumb { display: none; }
.t2-legacy .service_page-header { font-family: "Bebas Pub", Impact, sans-serif; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--text); margin-bottom: 28px; }
.t2-legacy .text_bold, .t2-legacy b, .t2-legacy strong { color: var(--text); }
.t2-legacy .mid_content { margin-top: 20px; }
.t2-legacy .flat_btn, .t2-legacy .header-btn-yellow { display: inline-flex; padding: 12px 20px; border-radius: 5px; background: var(--gold); color: var(--graphite); text-decoration: none; font-weight: 600; font-size: 12px; }

@media (max-width: 1150px) {
    .t2-goods-head { display: none; }
    .preorder_goods-list-item { grid-template-columns: repeat(4, 1fr); align-items: end; }
    .preorder_goods-list-item > :nth-child(-n+2) { grid-column: span 2; }
    .preorder_goods-list-item > :last-child { justify-self: end; }
    .preorder_goods-line .d-lg-none { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
}
@media (max-width: 900px) {
    .t2-grid-3, .t2-grid-2, .t2-stats { grid-template-columns: 1fr; }
    .t2-booking-head { flex-direction: column; align-items: start; gap: 0; }
    .t2-booking-total { align-items: start; text-align: left; margin-bottom: 26px; }
    .t2-header-user { width: 37px; height: 37px; margin-right: 10px; }
    .t2-summary-actions { min-width: 0; width: 100%; }
}
@media (max-width: 700px) {
    .t2-card, .t2-auth .t2-card { padding: 22px 18px; }
    .t2-form-grid, .t2-facts { grid-template-columns: 1fr; }
    .preorder_goods-list-item { grid-template-columns: 1fr 1fr; }
    .preorder_goods-list-item > :nth-child(-n+2), .preorder_goods-list-item > :nth-child(3) { grid-column: span 2; }
    .t2-card-head { flex-direction: column; }
    .t2-summary { padding: 20px 18px; }
    .t2-totals { gap: 20px; }
    .t2-totals strong { font-size: 26px; }
    .t2-summary-actions > div { flex-direction: column; }
    .t2-booking-row { flex-wrap: wrap; gap: 12px; }
    .t2-booking-row > svg { display: none; }
    .t2-profile-head { flex-wrap: wrap; gap: 14px; }
    .t2-stat strong { font-size: 44px; }
    .t2-footer-links { gap: 12px; }
}
