/* gtch.rs/book: booking form in theme C2 (as web/src/menu.css: sofa blue,
   cream, Pointless for the logo, Archivo for text). Archivo and Pointless have
   no Cyrillic, so Russian falls back to the system font automatically.
   Fonts are served by the site at /fonts/ (same files as the web menu). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/Archivo-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/Archivo-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pointless"; src: url("/fonts/Pointless.ttf") format("truetype"); font-display: swap; }

:root {
    --c-sheet: #1D4E86;
    --c-deep: #163E6D;
    --c-white: #F4F1EA;
    --c-soft: #C3DAEE;
    --c-mute: #A3C0DC;
    --c-rule: rgba(244, 241, 234, 0.28);
    --c-chip: rgba(244, 241, 234, 0.10);
    --c-decor: rgba(8, 24, 50, 0.10);
    --c-bad: #FFB4A8;
    --f-brand: "Pointless", "Archivo", sans-serif;
    --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: 18px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--c-sheet); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--c-sheet);
    color: var(--c-white);
    font-family: var(--f-text);
    font-size: 17px;
    line-height: 1.35;
    font-variant-numeric: lining-nums tabular-nums;
    -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- logo + background decor (as the web menu) ---------- */
.logo { display: block; aspect-ratio: 2120 / 548; overflow: visible; fill: currentColor; }
.logo__mark { font-family: "Pointless"; font-size: 400px; }
.logo__line { font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 125%; font-size: 78px; }
.decor {
    position: fixed; z-index: 0; pointer-events: none;
    left: 62%; top: 82%; width: 130vw; max-width: 1100px;
    color: var(--c-decor);
    transform: translate(-50%, -50%) rotate(-30deg);
}
.decor__logo { width: 100%; height: auto; }
.top, .book, .foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
    max-width: 720px; margin: 0 auto;
    padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 6px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top__home { color: inherit; display: block; }
.top__logo { height: 48px; width: auto; }
.langs { display: flex; gap: 4px; }
.langs__a {
    padding: 6px 9px; border-radius: 14px;
    color: var(--c-mute); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
}
.langs__a.is-active { color: var(--c-sheet); background: var(--c-white); }

/* ---------- layout ---------- */
.book { max-width: 720px; margin: 0 auto; padding: 14px var(--gutter) 28px; }
.book__title { font-size: 30px; font-weight: 800; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.005em; }
.book__intro { margin-top: 6px; font-size: 15px; color: var(--c-mute); }

.steps { display: flex; gap: 6px; margin: 18px 0 6px; padding: 0; list-style: none; }
.steps__i {
    flex: 1; padding: 8px 0 0; border-top: 3px solid var(--c-rule);
    font-size: 13.5px; font-weight: 600; color: var(--c-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.steps__n { font-weight: 800; }
.steps__i.is-done { border-color: var(--c-soft); color: var(--c-soft); }
.steps__i.is-on { border-color: var(--c-white); color: var(--c-white); }

.step { padding-top: 6px; }
.field__label { display: block; margin: 20px 0 9px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-soft); }
.hint { margin-top: 10px; font-size: 14.5px; color: var(--c-mute); }
.summary {
    margin-top: 14px; padding: 11px 14px; border-radius: 12px;
    background: var(--c-chip); border: 1px solid var(--c-rule);
    font-size: 15.5px; font-weight: 600;
}
.row2 { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; }
.row2 > div { min-width: 0; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch;
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--tight { gap: 6px; }
.chip {
    flex: none; min-height: 44px; padding: 8px 14px;
    border-radius: 12px; border: 1px solid var(--c-rule); background: var(--c-chip);
    font-size: 15.5px; font-weight: 650; line-height: 1.15; text-align: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.chip small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--c-mute); }
.chip.is-on { background: var(--c-white); border-color: var(--c-white); color: var(--c-sheet); }
.chip.is-on small { color: var(--c-sheet); opacity: 0.75; }
.chip:disabled { cursor: default; opacity: 0.38; text-decoration: line-through; text-decoration-thickness: 1px; }
.chip:focus-visible, .btn:focus-visible, .stepper__b:focus-visible, .input:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
.chip--date { min-width: 72px; padding: 8px 10px; }
.chip--date:disabled { text-decoration: none; }
.chip--sm { min-width: 52px; padding: 8px 10px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; min-height: 44px; }
.slots.is-loading { opacity: 0.4; pointer-events: none; }
.chip--slot { padding: 10px 4px; }

/* ---------- people stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-rule); border-radius: 12px; background: var(--c-chip); }
.stepper__b { width: 46px; height: 44px; border: 0; background: none; font-size: 24px; font-weight: 500; cursor: pointer; }
.stepper__b:disabled { opacity: 0.3; cursor: default; }
.stepper__v { min-width: 28px; text-align: center; font-size: 19px; font-weight: 800; }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 10px; margin-top: 26px; }
.actions--col { flex-direction: column; }
.btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 18px; border-radius: 14px;
    border: 1px solid var(--c-white); background: var(--c-white); color: var(--c-sheet);
    font-size: 17px; font-weight: 800; font-stretch: 108%; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn--ghost { flex: 0 0 auto; background: transparent; color: var(--c-white); border-color: var(--c-rule); }
.actions--col .btn--ghost { flex: 1; }

/* ---------- step 2: auto table + floor plan ---------- */
.auto { display: block; margin-top: 16px; cursor: pointer; }
.auto input { position: absolute; opacity: 0; pointer-events: none; }
.auto__box {
    display: block; padding: 14px 16px 14px 48px; position: relative;
    border-radius: 14px; border: 1px solid var(--c-rule); background: var(--c-chip);
}
.auto__box::before {
    content: ''; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
    border-radius: 50%; border: 2px solid var(--c-soft);
}
.auto input:checked + .auto__box { background: var(--c-white); border-color: var(--c-white); color: var(--c-sheet); }
.auto input:checked + .auto__box::before { border-color: var(--c-sheet); box-shadow: inset 0 0 0 4px var(--c-white), inset 0 0 0 10px var(--c-sheet); }
.auto input:focus-visible + .auto__box { outline: 2px solid var(--c-white); outline-offset: 2px; }
.auto__t { display: block; font-weight: 750; font-size: 17px; }
.auto__s { display: block; font-size: 14.5px; opacity: 0.8; }

.plan { border-radius: 14px; background: var(--c-deep); border: 1px solid var(--c-rule); padding: 6px; }
.plan__svg { display: block; width: 100%; height: auto; }
.plan__room { fill: rgba(244, 241, 234, 0.05); stroke: rgba(244, 241, 234, 0.30); stroke-width: 3; }
.plan__room--vip { fill: rgba(8, 24, 50, 0.35); }
.plan__bar { fill: rgba(244, 241, 234, 0.30); }
.plan__sofa { fill: rgba(195, 218, 238, 0.13); }
.plan__note { fill: var(--c-mute); font: 600 34px var(--f-text); text-anchor: middle; text-transform: uppercase; letter-spacing: 0.1em; }
.pt__hit { fill: transparent; }
.pt__shape { stroke-width: 4; }
.pt__label { font: 800 50px var(--f-text); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pt__label--sm { font-size: 34px; }
.pt--free { cursor: pointer; }
.pt--free .pt__shape { fill: var(--c-soft); stroke: var(--c-white); }
.pt--free .pt__label { fill: var(--c-sheet); }
.pt--free:hover .pt__hit, .pt--free:focus-visible .pt__hit { fill: rgba(244, 241, 234, 0.10); }
.pt--free:focus { outline: none; }
.pt.is-sel .pt__shape { fill: var(--c-white); stroke: #FFD86B; stroke-width: 10; }
.pt.is-sel .pt__hit { fill: rgba(255, 216, 107, 0.16); }
.pt--busy .pt__shape, .pt--small .pt__shape, .pt--off .pt__shape { fill: rgba(244, 241, 234, 0.08); stroke: rgba(244, 241, 234, 0.25); stroke-dasharray: 8 7; }
.pt--busy .pt__label, .pt--small .pt__label, .pt--off .pt__label { fill: rgba(244, 241, 234, 0.4); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--c-mute); }
.legend__i::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.legend__i--free::before { background: var(--c-soft); }
.legend__i--sel::before { background: var(--c-white); box-shadow: 0 0 0 2px #FFD86B; }
.legend__i--busy::before { border: 1px dashed rgba(244, 241, 234, 0.5); }

.tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 16px; }
.chip--table { padding: 8px 6px; }
.chip--table:disabled { text-decoration: none; }

/* ---------- step 3: form ---------- */
.field { display: block; }
.input {
    display: block; width: 100%; min-height: 50px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid var(--c-rule); background: rgba(8, 24, 50, 0.22);
    font-size: 17px; outline: none;
}
.input::placeholder { color: rgba(195, 218, 238, 0.5); }
.input:focus { border-color: var(--c-white); }
.input.is-bad { border-color: var(--c-bad); }
.input--area { min-height: 76px; resize: vertical; line-height: 1.35; }
.field__hint { display: block; margin-top: 6px; font-size: 13.5px; color: var(--c-mute); }
.field__err { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; color: var(--c-bad); }
.field__err:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--c-white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin-top: 18px; min-height: 65px; }

/* ---------- messages ---------- */
.alert {
    margin-top: 16px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 180, 168, 0.14); border: 1px solid rgba(255, 180, 168, 0.5);
    font-size: 15.5px; font-weight: 600;
}
.loading { display: flex; justify-content: center; padding: 40px 0; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--c-rule); border-top-color: var(--c-white); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .chip { transition: none; } }

/* ---------- done ---------- */
.done { text-align: center; padding-top: 26px; }
.done__icon { width: 64px; height: 64px; fill: none; stroke: var(--c-white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__title { margin-top: 14px; font-size: 26px; font-weight: 800; font-stretch: 110%; }
.done__text { margin-top: 12px; font-size: 18px; font-weight: 650; }
.done__note { margin-top: 10px; font-size: 15.5px; color: var(--c-soft); }
.done__note--mock { color: #FFD86B; }

.foot { max-width: 720px; margin: 0 auto; padding: 8px var(--gutter) calc(26px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--c-mute); }

@media (min-width: 720px) {
    :root { --gutter: 28px; }
    .top__logo { height: 60px; }
    .book__title { font-size: 36px; }
    .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
