/* FiraGO covers Georgian and Latin. Colours from the Axel logo (violet to blue). */
@font-face { font-family: "FiraGO"; font-weight: 400; font-display: swap; src: url("assets/fonts/firago_400_latin_georgian.woff2") format("woff2"); }
@font-face { font-family: "FiraGO"; font-weight: 500 600; font-display: swap; src: url("assets/fonts/firago_500_latin_georgian.woff2") format("woff2"); }
@font-face { font-family: "FiraGO"; font-weight: 700; font-display: swap; src: url("assets/fonts/firago_700_latin_georgian.woff2") format("woff2"); }
@font-face { font-family: "FiraGO"; font-weight: 800; font-display: swap; src: url("assets/fonts/firago_800_latin_georgian.woff2") format("woff2"); }

/* Branding from the Kutaisi Investment Forum cover: graphite field with soft light streaks,
   maroon #800000 blocks, thin white frames, white type. */
:root {
  --bg: #1e1e20;
  --panel: #2a2a2d;
  --ink: #ffffff;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;
  --frame: rgb(255 255 255 / 0.55);
  --line: rgb(255 255 255 / 0.18);
  --maroon: #800000;
  --maroon-hover: #9a0f0f;
  --err: #ff8a80;
  --font: "FiraGO", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.06) 45%, transparent 60%),
    linear-gradient(115deg, transparent 55%, rgb(255 255 255 / 0.05) 70%, transparent 85%),
    var(--bg);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #fff; text-decoration-color: var(--maroon-hover); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.topbar__logos { display: flex; gap: 8px; align-items: stretch; }
.framed { display: flex; align-items: center; justify-content: center; border: 1px solid var(--frame); padding: 4px 8px; min-height: 44px; }
.framed img { height: 32px; width: auto; }
.framed--text { flex-direction: column; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.15; text-transform: uppercase; }

/* Cover */
.hero { padding-top: 20px; }
.cover { width: 100%; border: 1px solid var(--line); }
.cover--waiting { aspect-ratio: 1920 / 1005; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; border: 1px dashed var(--frame); background: rgb(0 0 0 / 0.25); text-align: center; }
.cover--waiting p { margin: 0; font-size: clamp(16px, 3vw, 28px); font-weight: 700; letter-spacing: 0.02em; }
.cover--waiting .cover__ka { font-size: clamp(13px, 2vw, 17px); font-weight: 400; color: var(--ink-3); }

/* Layout */
.layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.dateblock { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 6px 12px; margin-bottom: 14px; background: var(--maroon); line-height: 1; }
.dateblock span:first-child { font-size: 40px; font-weight: 400; letter-spacing: 0.02em; }
.dateblock span:last-child { font-size: 16px; margin-top: 4px; }
.tag { margin: 0 0 8px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(28px, 6.5vw, 44px); font-weight: 800; line-height: 1.2; }
h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.lead { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.muted { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.jump { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; padding: 0 20px; border: 1px solid var(--frame); background: var(--maroon); color: #fff; font-weight: 700; text-decoration: none; }
.jump:hover { background: var(--maroon-hover); }
#form-title { scroll-margin-top: 16px; }

/* Event panels: thin white frame, like the cover */
.event { position: relative; margin-top: 22px; padding: 22px 20px 20px; border: 1px solid var(--frame); background: rgb(0 0 0 / 0.18); }
.event__when { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.time { background: var(--maroon); color: #fff; padding: 2px 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.event__what { margin: 0 0 10px; color: var(--ink-2); }
.event__what strong { color: #fff; }
.event__where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-weight: 600; }
.event__where svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.tbc { font-weight: 400; color: var(--ink-3); }
.event--bonus { border-color: var(--maroon-hover); background: rgb(128 0 0 / 0.14); }
.event--sunday .time { background: transparent; border: 1px solid var(--frame); font-size: 16px; }
.agenda__title { margin: 20px 0 10px; font-size: 16px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-top: 1px solid var(--line); }
.agenda li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.agenda__time { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* Form card */
.card { background: var(--panel); border: 1px solid var(--frame); padding: 24px 20px; }
form { margin-top: 18px; display: grid; gap: 16px; }
.grid2 { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, legend { font-size: 14px; font-weight: 600; }
.req { color: #ff6b6b; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: #fff;
  background: #18181a; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 0; transition: border-color 0.2s var(--ease);
}
input::placeholder { color: #71717a; }
input:focus { border-color: #fff; }
input[aria-invalid="true"], fieldset[aria-invalid="true"] { border-color: var(--err); }
.hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.err { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--err); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.parts { margin: 0; padding: 14px; border: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.parts legend { padding: 0 4px; }
.choice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px; border: 1px solid rgb(255 255 255 / 0.3); cursor: pointer; font-weight: 400; line-height: 1.4; }
.choice:has(input:checked) { border-color: #fff; background: rgb(128 0 0 / 0.45); }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--maroon); }
.choice__sub { font-size: 13.5px; color: var(--ink-3); }
.who { gap: 8px; }
.choice--radio { align-items: center; padding: 10px 12px; }
.seats { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--maroon); background: rgb(128 0 0 / 0.18); color: var(--ink-2); }
.seats strong { color: #fff; }
.choice:has(input:checked) .choice__sub { color: var(--ink-2); }

.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--maroon); }
.field--check label { font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.field--check .err { grid-column: 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border: 1px solid var(--frame); background: var(--maroon); color: #fff; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--maroon-hover); }
.btn:disabled { cursor: progress; opacity: 0.7; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid var(--err); background: rgb(255 138 128 / 0.08); font-size: 15px; }

.success { text-align: center; padding: 28px 4px; outline: none; }
.success__icon { width: 60px; height: 60px; padding: 15px; margin: 0 auto 18px; background: var(--maroon); color: #fff; border: 1px solid var(--frame); }
.success h2 { font-size: 26px; }
.success strong { color: #fff; word-break: break-all; }

.footer { padding-bottom: 32px; color: var(--ink-3); font-size: 14px; }
.footer__inner { border-top: 1px solid var(--line); padding-top: 20px; }
.footer p { margin: 0 0 4px; }

@media (max-width: 420px) {
  .brand { font-size: 12px; letter-spacing: 0.04em; }
  .framed--text { font-size: 9.5px; }
  .framed img { height: 26px; }
}
@media (min-width: 560px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
  .agenda li { grid-template-columns: 116px 1fr; }
}
@media (min-width: 980px) {
  .wrap { padding: 0 40px; }
  .hero { padding-top: 32px; }
  .layout { grid-template-columns: 1fr 460px; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 64px; }
  .card { position: sticky; top: 24px; }
  .jump { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}
