/* public.css — стилі для публічних сторінок */
:root {
  --navy: #0B1730;
  --navy2: #0D1B3E;
  --gold: #D4A843;
  --gold-shadow: rgba(212,168,67,.25);
  --white: #fff;
  --gray: rgba(255,255,255,.5);
  --border: rgba(255,255,255,.1);
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Geologica', sans-serif; background: var(--navy); color: #fff; min-height: 100vh; }

/* HEADER */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(11,23,48,.95); backdrop-filter: blur(12px); z-index: 100; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-emblem { width: 42px; height: 42px; background: var(--gold); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-size: .55rem; font-weight: 700; color: #0B1730; text-align: center; line-height: 1.1; flex-shrink: 0; }
.logo-title { font-family: 'Unbounded', sans-serif; font-size: .82rem; font-weight: 700; display: block; }
.logo-sub { font-size: .65rem; color: rgba(255,255,255,.4); display: block; margin-top: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: .4rem .85rem; border-radius: 8px; font-size: .82rem; color: rgba(255,255,255,.55); text-decoration: none; transition: all .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.active { color: #fff; background: rgba(212,168,67,.15); }

/* HERO */
.hero { padding: 40px 0 28px; text-align: center; }
.hero-badge { display: inline-block; background: rgba(212,168,67,.12); border: 1px solid rgba(212,168,67,.3); color: var(--gold); font-size: .72rem; font-weight: 600; padding: 5px 14px; border-radius: 20px; letter-spacing: .06em; margin-bottom: 16px; }
.hero h1 { font-family: 'Unbounded', sans-serif; font-size: clamp(1.4rem,4vw,2.2rem); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.6; }
.hero-addr { font-size: .82rem; color: rgba(255,255,255,.4); margin-top: 6px; }

/* CARDS */
.card { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 1rem; }
.card-title { font-family: 'Unbounded', sans-serif; font-size: .78rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.mb-3 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* SERVICES */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 8px; }
.svc-btn { padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: rgba(255,255,255,.04); cursor: pointer; text-align: left; color: #fff; font-family: 'Geologica', sans-serif; font-size: .83rem; transition: all .15s; }
.svc-btn:hover { border-color: var(--gold); background: rgba(212,168,67,.07); }
.svc-btn.active { border-color: var(--gold); background: rgba(212,168,67,.13); font-weight: 600; }

/* DATE TABS */
.date-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.date-tabs::-webkit-scrollbar { display: none; }
.date-tab { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: rgba(255,255,255,.04); cursor: pointer; color: rgba(255,255,255,.6); font-family: 'Geologica', sans-serif; min-width: 56px; transition: all .15s; }
.date-tab:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.date-tab.active { border-color: var(--gold); background: rgba(212,168,67,.12); color: #fff; }
.date-tab.today .date-tab-day { color: var(--gold); }
.date-tab-day { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.date-tab-num { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.date-tab-month { font-size: .6rem; text-transform: uppercase; opacity: .6; }

/* SLOTS */
.slots-loading { display: flex; align-items: center; gap: 10px; padding: 20px; color: rgba(255,255,255,.5); font-size: .85rem; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.slots-empty { padding: 20px; text-align: center; color: rgba(255,255,255,.4); font-size: .85rem; }
.slots-date-header { font-size: .78rem; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.slots-period { margin-bottom: 14px; }
.slots-period-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.slots-period-count { color: var(--gold); margin-left: 4px; }
.slots-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-btn { padding: 7px 13px; border-radius: 8px; border: 1.5px solid var(--border); font-size: .83rem; font-family: 'Geologica', sans-serif; cursor: pointer; transition: all .15s; background: rgba(255,255,255,.04); color: #fff; }
.slot-btn.free:hover { border-color: var(--gold); background: rgba(212,168,67,.1); }
.slot-btn.free.active { border-color: var(--gold); background: rgba(212,168,67,.18); color: var(--gold); font-weight: 700; }
.slot-btn.booked { opacity: .35; cursor: not-allowed; background: rgba(255,255,255,.02); }
.slot-btn.past { opacity: .2; cursor: not-allowed; }

/* SEL-INFO */
.sel-info-bar { font-size: .83rem; color: var(--gold); font-weight: 600; padding: 10px; background: rgba(212,168,67,.06); border-radius: 8px; text-align: center; margin-top: 8px; }
.booking-summary { background: rgba(212,168,67,.06); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.7; }

/* FORM */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 5px; }
.label-optional { font-size: .68rem; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.3); }
.form-control { width: 100%; padding: 11px 14px; background: rgba(255,255,255,.07); border: 1.5px solid var(--border); border-radius: 9px; color: #fff; font-family: 'Geologica', sans-serif; font-size: .9rem; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--gold); }
.form-hint { font-size: .7rem; color: rgba(255,255,255,.3); margin-bottom: 14px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: .55rem 1.1rem; border-radius: 9px; font-family: 'Geologica', sans-serif; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: all .15s; }
.btn-primary { background: var(--gold); color: #0B1730; border-color: var(--gold); }
.btn-primary:hover { background: #c49830; }
.btn-outline { background: transparent; border-color: var(--border); color: rgba(255,255,255,.7); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: transparent; color: rgba(255,255,255,.55); }
.btn-full { width: 100%; }
.btn-lg { padding: .8rem 1.5rem; font-size: .95rem; }
.spinner-sm { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.2); border-top-color: #0B1730; border-radius: 50%; animation: spin .7s linear infinite; }

/* TICKET */
.ticket-card { background: rgba(255,255,255,.04); border: 1px solid rgba(212,168,67,.3); border-radius: 18px; padding: 28px 24px; text-align: center; max-width: 420px; margin: 0 auto; }
.ticket-org { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.ticket-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.ticket-id-big { font-family: 'Unbounded', sans-serif; font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.ticket-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .84rem; }
.ticket-row span { color: rgba(255,255,255,.45); }
.ticket-hint { font-size: .74rem; color: rgba(255,255,255,.35); margin: 8px 0 16px; line-height: 1.5; }
.ticket-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ALERTS */
.alert { padding: 11px 14px; border-radius: 9px; margin-bottom: .9rem; font-size: .84rem; }
.alert-error { background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.3); color: #ff9999; }
.alert-success { background: rgba(26,124,79,.12); border: 1px solid rgba(26,124,79,.3); color: #5be0a0; }

@media (max-width: 500px) {
  .nav a span { display: none; }
  .hero h1 { font-size: 1.3rem; }
}
