/* Стиль «Квиз, плиз!»: цвета, скругления и шрифт Gilroy взяты с tbilisi.quiz-please.com.
   Layout: фиолетовая страница, белые карточки игр сеткой, форма на тёмно-фиолетовой панели. */
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* фирменная палитра сайта */
  --page: #33004C;        /* фон страницы (purple-950) */
  --panel: #450366;       /* тёмные панели */
  --panel-2: #5C1F7A;     /* панели светлее, нижнее меню */
  --line-dark: #FFFFFF1F; /* обводки на фиолетовом */
  --accent: #F60850;      /* кнопка «Записаться» */
  --accent-active: #D10642;
  --lilac: #E5B2FF;
  --lilac-2: #CCA9DF;
  --violet: #C146FF;      /* обводка второстепенной кнопки */
  --violet-ink: #A253C9;
  --sun: #FFDF20;
  --card: #FFFFFF;
  --ink: #1A181B;         /* заголовки в карточках */
  --ink-2: #443F47;       /* текст в карточках */
  --grey: #78717B;
  --line: #E6E4E7;
  --field: #F5F4F5;
  --err: #FF6467;
  --font: "Gilroy", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: #fff;
  font: 500 16px/1.5 var(--font);
}
.wrap { max-width: 1248px; margin: 0 auto; padding-inline: 16px; padding-block: 0 56px; }

/* ---------- Шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.logo-mark { width: 62px; height: auto; display: block; }
.logo span { border: 1px solid var(--line-dark); border-radius: 100px; padding: 8px 14px; }
.langs { display: flex; gap: 4px; }
.langs button {
  font: 600 13px/1 var(--font); text-transform: uppercase; letter-spacing: .04em;
  background: none; color: var(--lilac-2); border: 1px solid var(--line-dark); border-radius: 100px;
  padding: 10px 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--panel-2); color: #fff; border-color: var(--panel-2); }

.hero {
  margin-top: 8px; background: var(--panel); border-radius: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px;
}
.hero h1 { font: 700 clamp(36px, 6vw, 64px)/1.05 var(--font); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lilac); }
.hero p { margin: 0; max-width: 56ch; color: var(--lilac-2); font-size: 18px; line-height: 1.45; }

.section-title { font: 600 clamp(26px, 3.4vw, 40px)/1.2 var(--font); letter-spacing: -.01em; margin: 40px 0 20px; }

/* ---------- Карточки игр (как upcoming-card на сайте) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
.card { display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; background: var(--card); }
.card.is-selected { box-shadow: 0 0 0 3px var(--lilac); }
.card-top {
  position: relative; height: 210px; padding: 20px; color: #fff;
  background-size: cover; background-position: center;
}
.card-top.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 50%, #00000059); }
.card-theme { position: relative; font: 700 26px/1.15 var(--font); max-width: 85%; text-wrap: balance; }
.card-tags { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 1; }
.tag {
  background: #00000040; border-radius: 100px; height: 28px; padding: 4px 12px;
  display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.seats {
  background: var(--sun); color: #29272A; border-radius: 100px; height: 28px; padding: 4px 12px;
  display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.card-bottom { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 20px; color: var(--ink-2); flex: 1; }
.game-title { margin: 0; color: var(--ink); font: 700 24px/32px var(--font); letter-spacing: -.15px; text-wrap: balance; }
.game-desc { margin: 0; font-size: 14px; line-height: 20px; }
.info { display: grid; gap: 8px; }
.game-date { color: var(--ink); font-weight: 600; font-size: 18px; line-height: 24px; }
.game-date::first-letter { text-transform: uppercase; }
.game-place { display: grid; font-size: 14px; line-height: 20px; }
.game-place b { color: var(--ink); font-weight: 600; }
.game-place span { color: var(--grey); }
.price-block { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.price { color: var(--ink); font-weight: 700; font-size: 24px; line-height: 1; }
.price-note { color: var(--grey); font-size: 14px; }
.btn-block { display: flex; flex-direction: column; gap: 12px; }
.btn-block .btn { width: 100%; }

/* Подробное описание игры внутри карточки */
.details { display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.details > * { margin: 0; }
.details h4 { color: var(--ink); font-weight: 700; font-size: 16px; margin-top: 4px; }
.details ul { padding-left: 20px; display: grid; gap: 4px; }
.details li::marker { color: var(--accent); }
.details img { width: 100%; max-width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Кнопки ---------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 18px/28px var(--font);
  background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 100px; display: inline-block;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #E60045; }
.btn:active { background: var(--accent-active); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.outlined { background: transparent; color: var(--violet-ink); border-color: var(--violet); }
.btn.outlined:hover { background: #C146FF14; }
.btn.ghost { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn.ghost:hover { background: #FFFFFF14; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }

/* ---------- Форма (как панель регистрации на сайте) ---------- */
.form-card {
  margin-top: 40px; background: var(--panel); border-radius: 40px;
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; scroll-margin-top: 16px;
  max-width: 820px;
}
.form-card h2 { font: 600 clamp(28px, 4vw, 48px)/1.16 var(--font); margin: 0; text-wrap: balance; }
.form-card .sub { margin: -8px 0 0; color: var(--lilac-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mode {
  border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  background: #00000033; border-radius: 100px;
}
.mode label { position: relative; cursor: pointer; min-width: 0; }
.mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode span {
  display: block; text-align: center; padding: 12px; border-radius: 100px;
  font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--lilac-2);
}
.mode input:checked + span { background: var(--lilac); color: var(--page); }
.mode input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.solo-note { margin: -6px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); font-size: 15px; color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none !important; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.3 var(--font); color: #29272A; color-scheme: light;
  background: var(--field); border: 2px solid transparent; border-radius: 100px; padding: 14px 18px; min-height: 52px;
}
.field textarea { min-height: 88px; resize: vertical; border-radius: 20px; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac); }
.field .hint { font-size: 13px; color: var(--lilac-2); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .error { font-size: 14px; color: var(--err); }
.total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
  border-top: 1px solid var(--line-dark); padding-top: 16px;
}
.total .hint { color: var(--lilac-2); }
.total .sum { font-weight: 700; font-size: 28px; line-height: 1; }
.legal { font-size: 13px; color: var(--lilac-2); margin: 0; }
.form-error { color: var(--err); font-weight: 600; margin: 0; }

.done { display: grid; gap: 12px; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--page);
  display: grid; place-items: center; font: 800 28px/1 var(--font);
}

.empty { background: var(--panel); border-radius: 32px; padding: 28px; color: var(--lilac-2); }

.foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--lilac-2); }
.foot a { color: #fff; }
.foot a:hover { color: var(--lilac-2); }

/* Демо-панель событий пикселя (видна только когда ID пикселя не задан) */
.debug {
  margin-top: 28px; border: 1px dashed var(--line-dark); border-radius: 16px; padding: 14px 16px;
  font: 500 12px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--lilac-2); overflow-x: auto;
}
.debug strong { color: #fff; }
.debug ol { margin: 6px 0 0; padding-left: 18px; }

@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .form-card .row .btn { width: 100%; }
  .card-top { height: 180px; }
}
/* ================= Продающая страница одной игры ================= */
.p-hero {
  margin-top: 8px; background: var(--panel); border-radius: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden;
}
.p-hero-text { padding: clamp(24px, 5vw, 56px); display: grid; gap: 18px; align-content: center; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chip { border: 1px solid var(--line-dark); border-radius: 100px; padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--lilac); }
.p-chip--sun { background: var(--sun); border-color: var(--sun); color: #29272A; }
.p-hero h1 { margin: 0; font: 700 clamp(36px, 5.6vw, 68px)/1.04 var(--font); letter-spacing: -.015em; text-wrap: balance; }
.p-lead { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--lilac-2); max-width: 34ch; }
.p-when { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 12px 28px; }
.p-when div { display: grid; gap: 2px; min-width: 0; }
.p-when dt { font-size: 14px; color: var(--lilac-2); }
.p-when dt::first-letter { text-transform: uppercase; }
.p-when dd { margin: 0; font-weight: 700; font-size: 18px; }
.btn--lg { padding: 16px 32px; font-size: 20px; }
.p-cover { position: relative; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 28px; overflow: hidden; }
.p-cover-q {
  position: absolute; right: -4%; top: -14%; font: 800 clamp(260px, 34vw, 460px)/1 var(--font);
  color: #FFFFFF1F; transform: rotate(12deg); pointer-events: none;
}
.p-cover-theme { position: relative; font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--font); max-width: 16ch; text-wrap: balance; }
/* Обложка «вечеринка» (coverStyle: "party") */
.p-cover--party { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; }
.p-cover--party::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 22%, #FFDF2055 0 2px, transparent 3px) 0 0 / 46px 46px,
              radial-gradient(circle at 70% 60%, #FFFFFF44 0 1.5px, transparent 2.5px) 0 0 / 34px 34px; }
.p-cover--party .p-cover-q { color: inherit; opacity: .95; font-size: clamp(150px, 17vw, 230px); top: 6%; right: 4%; transform: rotate(-10deg);
  filter: drop-shadow(0 12px 30px #0006); }
.p-cover.has-img.p-cover--party::before { display: none; }
.p-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; display: block; background: var(--panel-2); }
.p-cover-tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; max-width: 70%; }
.p-cover-tags i { font-style: normal; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: #33004C; }
.p-cover-tags i:nth-child(2n) { background: #fff; transform: rotate(-3deg); }
.p-cover-tags i:nth-child(3n) { background: #33004C; color: #fff; transform: rotate(2deg); }

.p-facts { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-fact { background: var(--panel-2); border-radius: 24px; padding: 18px 20px; display: grid; gap: 2px; }
.p-fact b { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.p-fact span { color: var(--lilac-2); font-size: 15px; }

.p-sec { margin-top: clamp(40px, 6vw, 72px); }
.p-sec h2 { margin: 0 0 20px; font: 600 clamp(28px, 3.6vw, 44px)/1.15 var(--font); letter-spacing: -.01em; text-wrap: balance; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.p-card { background: var(--card); color: var(--ink-2); border-radius: 32px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.p-card h3 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.25; font-weight: 700; }
.p-card p { margin: 0; font-size: 15px; line-height: 1.45; }

.p-about-body { background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; max-width: 820px; }
.p-about-lead { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.45; font-weight: 600; }
.p-about-body .details { font-size: 16px; }

.p-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: step; }
.p-steps li { counter-increment: step; border: 1px solid var(--line-dark); border-radius: 32px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.p-steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); color: var(--page);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.p-steps h3 { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.p-steps p { margin: 0; color: var(--lilac-2); font-size: 15px; line-height: 1.45; }

.p-where-card { background: var(--panel); border-radius: 32px; padding: 24px clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.p-where-card div { display: grid; gap: 4px; }
.p-where-card b { font-size: 22px; }
.p-where-card span { color: var(--lilac-2); }
.p-where-card span:last-child::first-letter { text-transform: uppercase; }
.p-where .btn.outlined { color: var(--lilac); border-color: var(--lilac); }

.p-faq { display: grid; gap: 10px; max-width: 820px; }
.p-faq details { background: var(--panel); border-radius: 24px; padding: 4px 24px; }
.p-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--lilac); }
.p-faq details[open] summary::after { content: "−"; }
.p-faq details p { margin: 0 0 18px; color: var(--lilac-2); line-height: 1.5; }

.is-promo .form-card { margin-top: clamp(40px, 6vw, 72px); }

.p-sticky { display: none; }
@media (max-width: 760px) {
  .p-hero { grid-template-columns: minmax(0, 1fr); }
  .p-cover { order: -1; min-height: 150px; padding: 20px; }
  .p-cover-q { font-size: 220px; }
  .p-cover--party { min-height: 220px; }
  .p-cover--party .p-cover-q { font-size: 96px; top: auto; bottom: 12px; right: 4%; }
  .p-cover-tags { max-width: 100%; }
  .p-cover.has-img { min-height: 250px; background-position: center 30%; }
  .p-cover.has-img .p-cover-theme { display: none; }
  .p-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .p-gallery img { flex: 0 0 78%; scroll-snap-align: start; }
  .p-when { grid-template-columns: minmax(0, 1fr); }
  .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-hero .btn--lg { width: 100%; }
  .is-promo .wrap { padding-bottom: 104px; }
  .p-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--panel-2); border-top-left-radius: 20px; border-top-right-radius: 20px;
    box-shadow: 0 -8px 24px #00000040; transition: transform .25s;
  }
  .p-sticky b { font-size: 20px; }
  .p-sticky span { color: var(--lilac-2); }
  .p-sticky b { color: #fff; }
  .p-sticky .btn { padding: 12px 22px; }
  .p-sticky.is-hidden { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
