/* qeqe — ფერები და შრიფტები ერთ ადგილას */
:root {
  --cobalt: #2B3BD1;
  --ink: #151842;
  --mist: #EEF0FA;
  --paper: #FFFFFF;
  --gold: #FFC23D;
  --rose: #FF5C8A;
  --muted: #555A86;

  --sans: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --mark: "Bricolage Grotesque", var(--sans);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- ზედა ზოლი ---------- */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font-family: var(--mark);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}
.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--cobalt); }

/* ---------- ღილაკები ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-gold  { background: var(--gold);  color: var(--ink); }
.btn-ink   { background: var(--ink);   color: var(--paper); }
.btn-ink:hover { background: var(--cobalt); }

/* ---------- გმირი ბლოკი ---------- */
.hero {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter)));
  margin: 8px auto 0;
  background: var(--cobalt);
  color: var(--paper);
  border-radius: 36px;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-weight: 900;
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.lead { font-size: 1.15rem; max-width: 46ch; margin: 24px 0 32px; }
.hero .lead { color: #DDE1FF; }

/* ქუდი და ფურცლები */
.hat-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 150px;
}
.hat { width: min(280px, 80%); position: relative; z-index: 2; }
.hat-stage .btn { margin-top: 28px; }
.slips { position: absolute; inset: 0 0 auto 0; height: 230px; z-index: 1; pointer-events: none; }
.slip {
  position: absolute;
  left: 50%;
  bottom: 40px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  padding: 14px 26px 16px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(21, 24, 66, .25);
  transform: translate(-50%, 0) rotate(var(--r, 0deg));
  animation: rise .55s cubic-bezier(.2, .9, .3, 1.25) both;
}
.slip.old { opacity: .45; transition: opacity .3s; }
@keyframes rise {
  from { transform: translate(-50%, 140px) rotate(0deg); }
  to   { transform: translate(calc(-50% + var(--x, 0px)), var(--y, 0px)) rotate(var(--r, 0deg)); }
}
.slip { transform: translate(calc(-50% + var(--x, 0px)), var(--y, 0px)) rotate(var(--r, 0deg)); }

/* ---------- თამაშები ---------- */
.games, .idea, .page-head, .beliefs, .contact {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.games { padding-top: clamp(64px, 9vw, 120px); }
h2 {
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 36px;
}
.game-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; }
.game {
  background: var(--paper);
  border-radius: 4px;
  padding: 36px 32px 32px;
  box-shadow: 8px 8px 0 var(--ink);
  border-top: 10px solid var(--gold);
  transform: rotate(-0.8deg);
}
.game:nth-child(even) { transform: rotate(0.9deg); border-top-color: var(--rose); }
.game h3 {
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
}
.game-meta { display: flex; gap: 28px; margin: 18px 0 16px; }
.game-meta dt { font-size: .85rem; color: var(--muted); }
.game-meta dd { font-weight: 800; font-size: 1.2rem; }
.game p { max-width: 44ch; color: #2C3063; margin-bottom: 24px; }
.status {
  display: inline-block;
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px dashed var(--muted);
  color: var(--muted);
}

/* ---------- იდეა / CTA ---------- */
.idea {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.idea p {
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  max-width: 24ch;
}

/* ---------- შიდა გვერდები ---------- */
.page-head { padding-top: clamp(40px, 8vw, 100px); padding-bottom: 24px; }
.page-head h1, .contact h1 {
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  max-width: 14ch;
}
.page-head .lead, .contact .lead { color: #2C3063; }

.beliefs { padding-top: clamp(40px, 6vw, 72px); }
.belief {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1.4fr;
  gap: 24px 48px;
  padding: 32px 0;
  border-top: 2px solid var(--ink);
}
.belief h3 { font-weight: 800; font-size: 1.45rem; line-height: 1.25; }
.belief p { max-width: 52ch; color: #2C3063; }

/* ---------- კონტაქტი ---------- */
.contact {
  padding-top: clamp(40px, 8vw, 100px);
  padding-bottom: clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact-form, .notice {
  background: var(--paper);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 8px 8px 0 var(--ink);
}
.field { margin-bottom: 22px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--mist);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
}
input:focus, textarea:focus { outline: none; border-color: var(--cobalt); background: var(--paper); }
[aria-invalid="true"] { border-color: var(--rose); }
textarea { resize: vertical; min-height: 150px; }

.topic-options { display: flex; flex-wrap: wrap; gap: 10px; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}
.topic input:checked + span { background: var(--ink); color: var(--paper); }
.topic input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.err { color: #C4174A; font-size: .92rem; margin-top: 6px; }
.form-error { background: #FFE3EB; color: #8E0F35; padding: 12px 16px; border-radius: 10px; margin-bottom: 22px; }
.hp { position: absolute; left: -9999px; }

.notice h2 { margin-bottom: 12px; }
.notice p { margin-bottom: 24px; }

/* ---------- ქვედა ზოლი ---------- */
.site-footer { background: var(--ink); color: #C9CCF0; }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 40px;
  align-items: center;
}
.footer-mark { font-family: var(--mark); font-weight: 800; font-size: 1.6rem; color: var(--paper); letter-spacing: -0.04em; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }
.copy { grid-column: 1 / -1; font-size: .88rem; color: #8B8FC4; }

/* ---------- მობილური ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; border-radius: 28px; }
  .hat-stage { padding-top: 130px; }
  .contact { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { gap: 18px; }
  .game { transform: none; box-shadow: 5px 5px 0 var(--ink); margin-right: 5px; }
  .hero { gap: 12px; }
  .game:nth-child(even) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slip { animation: none; }
  .btn { transition: none; }
}
