@font-face { font-family: 'Bebas Neue'; src: url('/fonts/bebas-neue.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('/fonts/titillium-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('/fonts/titillium-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('/fonts/titillium-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --art-blue: #004898; --art-red: #E01F30; --navy: #002E62; --ice: #E8F0FA; --grey: #F3F5F7; --graphite: #17212B; --white: #fff;
  --line: #d6dee8; --muted: #5f6b78; --ok: #1b7f4b; --okbg: #e6f5ec;
  --head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; --body: 'Titillium Web', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--body); color: var(--graphite); background: var(--grey); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--art-blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .5px; margin: 0; color: var(--navy); }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; color: #fff; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

.topbar { background: var(--art-blue); border-bottom: 4px solid var(--art-red); }
.topbar .inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 42px; width: auto; display: block; }
.lang { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; overflow: hidden; }
.lang button { background: transparent; color: #fff; border: 0; padding: 6px 12px; font: 600 14px var(--body); cursor: pointer; }
.lang button.active { background: #fff; color: var(--art-blue); }

.hero { background: var(--navy); color: #fff; }
.hero .inner { max-width: 1100px; margin: 0 auto; padding: 40px 20px 36px; }
.hero .kicker { font: 600 13px var(--body); letter-spacing: 2px; text-transform: uppercase; color: #9fc0ea; margin-bottom: 8px; }
.hero p { margin: 12px 0 0; max-width: 720px; font-size: 17px; color: #dbe6f5; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: 15px; color: #fff; }
.hero .facts span::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--art-red); margin-right: 8px; vertical-align: 1px; }

main { flex: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px; }
.grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,46,98,.08); padding: 24px; }
.card .step { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card .step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--art-blue); color: #fff; font: 400 20px var(--head); display: grid; place-items: center; flex: none; padding-top: 2px; }

.days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.days button { flex: 1 1 140px; border: 2px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 12px; cursor: pointer; text-align: left; font-family: var(--body); color: var(--graphite); }
.days button .wd { display: block; font-weight: 700; color: var(--navy); }
.days button .dt { display: block; font-size: 14px; color: var(--muted); }
.days button .free { display: block; font-size: 13px; color: var(--art-blue); margin-top: 4px; }
.days button.active { border-color: var(--art-blue); background: var(--ice); }
.hours { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slots button { border: 2px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 6px; font: 600 15px var(--body); color: var(--navy); cursor: pointer; transition: .12s; }
.slots button:hover:not(:disabled) { border-color: var(--art-blue); background: var(--ice); }
.slots button.sel { border-color: var(--art-red); background: var(--art-red); color: #fff; }
.slots button:disabled { background: var(--grey); color: #a3adb8; border-color: var(--grey); cursor: not-allowed; text-decoration: line-through; }
.slots button.own { border-style: dashed; border-color: var(--art-blue); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--line); vertical-align: -1px; margin-right: 5px; }
.legend i.sel { background: var(--art-red); border-color: var(--art-red); }
.legend i.dis { background: var(--grey); border-color: var(--grey); }

.chosen { background: var(--ice); border-left: 4px solid var(--art-blue); padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 15px; }
.chosen strong { color: var(--navy); }
.chosen.empty { color: var(--muted); border-left-color: var(--line); background: var(--grey); }

label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin: 14px 0 5px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], select, textarea { width: 100%; font: 400 16px var(--body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; color: var(--graphite); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--art-blue); box-shadow: 0 0 0 3px rgba(0,72,152,.15); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; font-weight: 400; color: var(--graphite); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--art-blue); }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.req { color: var(--art-red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 4px; padding: 12px 22px; font: 700 16px var(--body); cursor: pointer; text-decoration: none; transition: .12s; }
.btn.primary { background: var(--art-red); color: #fff; }
.btn.primary:hover { background: #c4182a; }
.btn.blue { background: var(--art-blue); color: #fff; }
.btn.blue:hover { background: var(--navy); }
.btn.outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.outline:hover { border-color: var(--navy); }
.btn.danger { background: #fff; color: var(--art-red); border-color: var(--art-red); }
.btn.danger:hover { background: var(--art-red); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.msg { padding: 12px 16px; border-radius: 4px; margin-top: 16px; font-size: 15px; }
.msg.err { background: #fdecee; color: #8e1420; border-left: 4px solid var(--art-red); }
.msg.ok { background: var(--okbg); color: var(--ok); border-left: 4px solid var(--ok); }

.result { max-width: 720px; margin: 0 auto; }
.result .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--okbg); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin-bottom: 14px; }
.result .icon.cancel { background: #fdecee; color: var(--art-red); }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; font-size: 15px; }
.result dt { font-weight: 600; color: var(--navy); }
.result dd { margin: 0; }
.result p { margin: 10px 0; }
.result .link { font-size: 13px; color: var(--muted); word-break: break-all; }

footer { background: var(--navy); color: #b9cbe3; font-size: 13px; }
footer .inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: #fff; text-decoration: none; margin-left: 16px; }
footer a:hover { text-decoration: underline; }
.loading { text-align: center; color: var(--muted); padding: 40px; }
[hidden] { display: none !important; }
