/* ============================================================
   Mozgva — homepage styles (Figma: mozgva_15_07_2026 / 1440)
   ============================================================ */

/* ---------- Graublau Slab (display / headings) ---------- */
@font-face {
    font-family: 'Graublau Slab';
    src: url('/fonts/GraublauSlab-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graublau Slab';
    src: url('/fonts/GraublauSlab-Semibold.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graublau Slab';
    src: url('/fonts/GraublauSlab-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graublau Slab';
    src: url('/fonts/GraublauSlab-Heavy.otf') format('opentype');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Graublau Sans (secondary) ---------- */
@font-face {
    font-family: 'Graublau Sans';
    src: url('/fonts/GraublauSans-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graublau Sans';
    src: url('/fonts/GraublauSans-Semibold.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graublau Sans';
    src: url('/fonts/GraublauSans-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    /* palette */
    --bg: #05060f;
    --bg-block: #070815;
    --bg-block-2: #0f1126;
    --surface: #252a4e;
    --chip-dark: #101118;

    --ink: #ffffff;
    --ink-2: #e3e4f1;
    --muted: #7e869e;
    --muted-2: #757683;

    --red: #ff0004;
    --red-deep: #c00003;
    --green: #94ff29;
    --pink: #ff00ea;
    --pink-2: #ff0077;
    --magenta: #cf0770;
    --purple: #9900ff;
    --blue: #1a00ff;
    --blue-2: #1100ff;
    --gold: #ffc300;
    --cyan: #00ffd9;
    --orange: #ff8419;

    --line: #e8e8e8;
    --line-soft: rgba(227, 228, 241, .28);

    /* type */
    --font: 'Onest', 'Graublau Sans', -apple-system, 'Segoe UI', sans-serif;
    --display: 'Graublau Slab', 'Roboto Slab', Georgia, serif;

    --radius-block: 24px;
    --radius-card: 20px;
    --shell: 1440px;
}

* { box-sizing: border-box; }

/* the [hidden] attribute must win over component display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    /* sections span the full 1440 frame width and carry their own 32px padding
       (matches Figma) — no side padding here to avoid double-inset */
    padding: 8px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.display {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ---------- generic buttons / pills ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 500 16px/18px var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.06); }
.btn:active { transform: translateY(1px); }
.btn--ghost { border-color: rgba(255,255,255,.9); }
.btn--light {
    background: linear-gradient(180deg, #ffffff, var(--ink-2));
    border-color: var(--line);
    color: var(--bg-block);
    /* on a light button the icon is dark, so its duotone cut-out shows white */
    --ic-punch: #ffffff;
}
.btn--light .icon { color: var(--bg-block); }
.btn--blue { background: var(--blue); border: none; border-radius: 32px; padding: 8px 24px 8px 16px; }
.btn--pill { border-radius: 32px; padding: 8px 24px; }

.count {
    min-width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 24px;
    background: #fff;
    color: var(--chip-dark);
    font: 600 14px/14px var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon { width: 24px; height: 24px; flex: none; color: currentColor; }
.icon svg { width: 100%; height: 100%; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }

/* ============================================================
   Top notification bar
   ============================================================ */
.topbar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 16px 16px 24px;
    background: var(--bg-block);
    border: 1px solid var(--surface);
    border-radius: var(--radius-card);
}
.topbar__glow {
    position: absolute;
    left: -60px; top: -120px;
    width: 320px; height: 340px;
    background: radial-gradient(closest-side, rgba(26,0,255,.55), rgba(255,0,4,.18) 70%, transparent);
    filter: blur(10px);
    pointer-events: none;
}
.topbar__title { position: relative; font: 600 20px/1 var(--font); }
.topbar__details { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.info { display: flex; align-items: center; gap: 8px; }
.info__text b { display: block; font: 600 18px/21px var(--font); }
.info__text span { display: block; font: 400 14px/16px var(--font); color: rgba(255,255,255,.85); }
.topbar__spacer { flex: 1; }

/* ============================================================
   HERO (header + intro + filter + cards)
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-block);
    border-radius: var(--radius-block);
    padding: 32px;
}
.hero__glow {
    position: absolute;
    left: 50%; top: -180px;
    transform: translateX(-50%);
    width: 1200px; height: 900px;
    background: radial-gradient(45% 40% at 50% 40%, rgba(26,0,255,.55), rgba(120,20,220,.35) 45%, rgba(255,0,4,.18) 70%, transparent 78%);
    pointer-events: none;
    z-index: 0;
}
.hero > .nav,
.hero > .intro,
.hero > .filter,
.hero > .event,
.hero > .calendar { position: relative; z-index: 1; }

/* ---- header nav ---- */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 24px; }
.logo {
    font-family: var(--display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -.02em;
    display: inline-flex;
    align-items: center;
    color: #fff;
}
.logo b { color: var(--red); font-weight: 700; }
.nav__city { font: 500 16px/18px var(--font); }
.nav__spacer { flex: 1; }
.nav__right { display: flex; align-items: center; gap: 12px; }
/* header buttons are 40px tall in Figma (8px vertical padding) */
.nav .btn { padding: 8px 16px; }

/* ---- intro / CTA ---- */
.intro {
    text-align: center;
    padding: 56px 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.intro__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 80px;
    line-height: .84;
    letter-spacing: -.02em;
    max-width: 720px;
}
.intro__sub {
    font: 500 24px/28px var(--font);
    max-width: 680px;
    color: #fff;
}
.intro__offers { display: flex; gap: 16px; margin-top: 28px; }

/* page title (Календарь игр and similar catalog pages) */
.intro--page { padding: 24px 16px 8px; }

/* banner placeholder slot */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 32px;
    border-radius: var(--radius-card);
    background: var(--surface);
    color: rgba(227, 228, 241, .55);
    font: 500 16px/18px var(--font);
}
.offer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px 8px 16px;
    border-radius: 32px;
    background: var(--blue);
    font: 500 16px/18px var(--font);
    color: #fff;
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.offer:hover { filter: brightness(1.12); }
.offer:active { transform: translateY(1px); }
.offer__ic { width: 32px; height: 32px; display: grid; place-items: center; }
.offer__ic svg { width: 30px; height: 30px; }

/* ============================================================
   FILTER bar
   ============================================================ */
.filter {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: 40px;
}
.field { display: flex; flex-direction: column; gap: 12px; }
.field--grow { flex: 1 1 292px; min-width: 220px; }
.field__label { font: 400 14px/16px var(--font); color: var(--ink-2); padding-left: 4px; }
.select {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-block);
    border: 1px solid rgba(255,255,255,.85);
    color: var(--ink-2);
    font: 400 14px/16px var(--font);
    cursor: pointer;
}
.select--fill { background: var(--surface); border-color: var(--ink-2); }
.select__txt { flex: 1; }
.select__txt small { display: block; color: var(--muted-2); }
.select .chev { margin-left: auto; color: var(--ink-2); }

.timeset { display: flex; height: 56px; border: 1px solid #fff; border-radius: 8px; overflow: hidden; }
.timeset button {
    border: 0;
    padding: 8px 16px;
    background: var(--surface);
    color: var(--ink-2);
    font: 400 14px/16px var(--font);
    cursor: pointer;
}
.timeset button:first-child { background: var(--bg-block); }
.timeset button.is-active { background: var(--blue); }

.check { display: flex; align-items: center; gap: 8px; height: 56px; color: var(--ink-2); font: 400 14px/16px var(--font); cursor: pointer; }
.check i { width: 16px; height: 16px; border: 1px solid #e5e5e5; border-radius: 4px; display: inline-block; }

/* ============================================================
   CARDS grid
   ============================================================ */
.calendar { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 326px;
}
.card--wide { grid-column: span 2; }
.card__glow {
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 360px;
    background: radial-gradient(60% 80% at 30% 100%, rgba(26,0,255,.45), rgba(255,0,4,.25) 60%, transparent 75%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }
.card__head, .card__details, .card__bottom { position: relative; z-index: 1; }

.card__head { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: .95; color: #fff; }
.tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 16px;
    border: 1px solid #fff;
    font: 400 14px/16px var(--font);
}
.tag--green { background: var(--green); color: var(--bg-block); border-color: var(--bg-block); }
.tag--purple { background: var(--purple); color: #e7c3ff; }
.tag--pink { background: var(--pink); color: #fff; }
.tag--red { background: var(--red); color: #fff; }

.card__details { display: flex; flex-direction: column; gap: 16px; }
.dline { display: flex; gap: 8px; }
.dline__body { display: flex; flex-direction: column; gap: 4px; }
.dline__row { display: flex; align-items: center; gap: 4px; font: 500 16px/18px var(--font); }
.timechip { display: inline-flex; align-items: center; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; font: 500 16px/18px var(--font); }
.timechip--fill { background: var(--ink-2); color: var(--bg-block); padding: 4px 6px; font-size: 14px; }
.dline__sub { font: 400 14px/16px var(--font); color: rgba(255,255,255,.85); }

.card__bottom { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.06); }
.icon-btn span { white-space: nowrap; }
/* buttons that carry a label need a horizontal (flex) layout, not the
   grid centering used for single-icon buttons */
.teams, .buy { display: inline-flex; align-items: center; }
.teams { width: auto; gap: 6px; padding: 12px 16px 12px 12px; font: 500 16px/18px var(--font); }
.buy {
    width: auto;
    gap: 6px;
    padding: 12px 16px;
    margin-left: auto;
    font: 500 16px/18px var(--font);
    background: linear-gradient(180deg,#fff,var(--ink-2));
    color: var(--bg-block);
    border-color: var(--line);
    --ic-punch: #ffffff;
    font: 500 16px/18px var(--font);
}
.buy .icon { color: var(--bg-block); }

.card__badges { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; align-items: flex-start; }
.badge-new {
    padding: 4px 6px;
    background: var(--pink);
    border-radius: 2px;
    font: 600 11px/13px var(--font);
    transform: rotate(-6deg);
}
.badge-flag {
    width: 44px; height: 44px;
    margin-left: -10px;
    color: var(--red);
}

/* ============================================================
   Generic section block
   ============================================================ */
.section {
    position: relative;
    overflow: hidden;
    background: var(--bg-block);
    border-radius: var(--radius-block);
    padding: 64px 32px;
}
.section--tight { padding: 32px; }
.section__glow {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    width: 1100px; height: 700px;
    background: radial-gradient(45% 45% at 50% 50%, rgba(26,0,255,.4), rgba(120,20,220,.22) 50%, rgba(255,0,4,.12) 72%, transparent 80%);
    pointer-events: none;
}
.section > .head,
.section > .stats,
.section > .btn,
.section > .venues__head,
.section > .venues__track,
.section > .faq { position: relative; z-index: 1; }

.head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.head__title { font-family: var(--display); font-weight: 700; font-size: 80px; line-height: .8; letter-spacing: -.02em; color: var(--ink-2); }
.head__title--md { font-size: 52px; }
.head__sub { font: 500 24px/28px var(--font); color: var(--ink-2); max-width: 720px; }

/* ---- stats ---- */
.stats {
    margin: 32px auto 0;
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255,255,255,.02);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 157px; }
.stat b { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: .8; }
.stat span { font: 500 16px/18px var(--font); color: var(--ink-2); text-align: center; }
.section .btn--light { margin: 32px auto 0; }

/* ============================================================
   VENUES
   ============================================================ */
.venues__head { display: flex; align-items: flex-start; gap: 16px; }
.venues__head .head { text-align: left; align-items: flex-start; flex: 1; }
.venues__head .head__sub { text-align: left; }
.round-btn {
    width: 132px; height: 48px;
    border: 1px solid #fff;
    border-radius: 9999px;
    background: transparent;
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
}
.round-btn:hover { background: rgba(255,255,255,.08); }
/* arrow points left by default → rotate the "next" button */
.round-btn:not(.round-btn--prev) svg { transform: rotate(180deg); }

.venues__track { display: flex; gap: 32px; margin-top: 32px; overflow: hidden; }
.venue { flex: 0 0 720px; display: flex; flex-direction: column; gap: 20px; }
.venue__img {
    height: 400px;
    border-radius: 16px;
    background: linear-gradient(135deg,#2a2f57,#141634);
    border: 1px solid rgba(255,255,255,.08);
}
.dots { display: flex; gap: 4px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.35); }
.dots i.is-active { width: 16px; background: #fff; }
.venue__foot { display: flex; align-items: center; gap: 12px; }
.venue__logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid #e0e0e0; }
.venue__name { display: flex; align-items: center; gap: 8px; font: 600 18px/21px var(--font); }
.rating { display: inline-flex; align-items: center; gap: 2px; font: 400 14px/16px var(--font); }
.rating svg { width: 14px; height: 14px; color: var(--orange); }
.venue__addr { display: flex; align-items: center; gap: 4px; margin-top: 8px; font: 400 14px/16px var(--font); color: rgba(255,255,255,.85); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; gap: 24px; }
.faq__aside { flex: 0 0 636px; padding: 40px; }
.faq__aside .head { text-align: left; align-items: flex-start; }
.faq__aside .head__sub { text-align: left; }
.faq__main { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.faq__tabs { display: flex; gap: 12px; }
.faq__list { display: flex; flex-direction: column; gap: 24px; }
.faq-item {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.faq-item__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.faq-item__q { font: 600 24px/28px var(--font); color: var(--ink-2); }
.faq-item__hint { font: 400 14px/16px var(--font); color: #fff; }
.faq-item__ans { font: 500 16px/18px var(--font); color: #fff; margin-top: 4px; }
.faq-item__toggle { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; flex: none; }
.faq-item.is-open { background: var(--bg-block); }
.faq-item.is-open .faq-item__q { color: #fff; }
.faq-item.is-open .faq-item__glow { display: block; }
.faq-item__glow {
    display: none;
    position: absolute; left: -10%; top: -60%;
    width: 300px; height: 340px;
    background: radial-gradient(closest-side, rgba(26,0,255,.5), rgba(255,0,4,.18) 70%, transparent);
    pointer-events: none;
}
.faq-item__body, .faq-item__toggle { position: relative; z-index: 1; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 64px 32px;
}
.partners .head__title { color: #000; }
.partners .head__sub { color: #000; }
.partners__row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.partners__logo {
    width: 160px; height: 120px;
    display: grid; place-items: center;
    color: #9a9a9a;
    font: 600 20px/1 var(--font);
    filter: grayscale(1);
    opacity: .8;
}
.partners .btn--light { display: inline-flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { display: flex; flex-direction: column; }
.footer__hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-block-2);
    border-radius: 24px 24px 0 0;
    padding: 32px;
    text-align: center;
}
.footer__hero .intro { padding: 40px 16px; }
.footer__bottom {
    background: var(--bg-block);
    border-radius: 0 0 24px 24px;
    padding: 32px;
}
.footer__content { display: flex; gap: 24px; }
.footer__brand { flex: 0 0 209px; display: flex; flex-direction: column; gap: 12px; }
.footer__brand p { font: 400 14px/16px var(--font); color: #fff; margin: 0; }
.footer__links { display: flex; gap: 24px; flex: 1; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.flink { display: flex; align-items: center; gap: 8px; font: 400 14px/16px var(--font); color: #fff; }
.flink:hover { color: var(--ink-2); }
.footer__contacts { flex: 0 0 443px; display: flex; flex-direction: column; gap: 32px; }
.contacts__row { display: flex; align-items: center; gap: 12px; font: 400 14px/16px var(--font); }
.contacts__row .lbl { color: var(--muted-2); }
.contacts__hours { display: flex; gap: 24px; margin-left: auto; }
.phone { display: flex; align-items: baseline; }
.phone .pre { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--muted-2); }
.phone .num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: .8; color: #fff; letter-spacing: -.01em; }
.footer__social { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.vk { width: 40px; height: 40px; color: #fff; }
.footer__legal {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    font: 400 14px/16px var(--font);
    color: #fff;
}
.footer__legal .sep { color: rgba(255,255,255,.4); }
.footer__legal .copy { margin-left: auto; }

/* ============================================================
   GAME PAGE
   ============================================================ */
.crumbs { display: flex; gap: 12px; }
.crumbs .btn { color: #fff; }

.event { display: flex; gap: 24px; align-items: flex-start; margin-top: 24px; }
.event__col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.event__head { display: flex; flex-direction: column; gap: 12px; }
.event__title { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: .82; letter-spacing: -.01em; color: var(--ink-2); }
.event__lead { font: 500 16px/20px var(--font); color: var(--ink-2); max-width: 640px; }

/* image gallery */
.gallery { display: flex; flex-direction: column; }
.gallery__img {
    height: 491px;
    border-radius: 10px;
    border: 1px solid var(--surface);
    background: linear-gradient(180deg, #23264a, #0c0e20);
    background-size: cover;
    background-position: center;
}
.gallery__nav { display: flex; align-items: center; gap: 16px; padding: 24px; }
.gallery__arrow {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    border-radius: 999px;
    background: #fff; border: 1px solid #e5e5e5;
    color: #070815; cursor: pointer;
}
.gallery__arrow:hover { background: #eee; }
/* the Lets-Icons arrow points left by default → rotate the "next" button */
.gallery__arrow:not(.gallery__arrow--prev) svg { transform: rotate(180deg); }
.gallery__nav .dots { flex: 1; }

/* content block */
.block { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.block__title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: .82; color: var(--ink-2); }
.block__text { font: 500 16px/20px var(--font); color: var(--ink-2); }

/* venue block */
.venue-row { display: flex; align-items: center; gap: 16px; padding: 12px; }
.venue-photos { display: flex; gap: 24px; }
.venue-photo { flex: 1; height: 250px; border-radius: 10px; background: linear-gradient(135deg, #2a2f57, #141634); border: 1px solid rgba(255,255,255,.06); }

/* purchase card */
.buycard {
    flex: 0 0 443px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
}
.buycard__head { display: flex; align-items: center; gap: 12px; }
.buycard__price { font: 500 24px/28px var(--font); }
.buycard__flag {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font: 500 16px/18px var(--font);
}
.buycard__flag .badge-flag { position: static; width: 28px; height: 28px; margin: 0; }
.buycard__details { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.buycard .btn--light { width: 100%; justify-content: center; padding: 16px; }

/* ============================================================
   CALENDAR (Figma: Calendar / Basic)
   ============================================================ */
.cal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #13162c;
    border: 1px solid var(--surface);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__title { font: 400 14px/16px var(--font); color: var(--ink-2); }
.cal__arrow {
    width: 32px; height: 32px; flex: none;
    display: grid; place-items: center;
    border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-2); cursor: pointer;
}
.cal__arrow:hover { background: #fff; color: #13162c; }
.cal__arrow[data-cal-prev] svg { transform: rotate(90deg); }
.cal__arrow[data-cal-next] svg { transform: rotate(-90deg); }

.cal__week, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__week { margin-bottom: 8px; }
.cal__wd {
    height: 21px; display: grid; place-items: center;
    font: 400 14px/16px var(--font); color: var(--muted-2);
}
.cal__day {
    height: 32px;
    border: 0; background: transparent; cursor: pointer;
    font: 400 14px/16px var(--font); color: var(--muted-2);
}
.cal__day:not(.is-out):hover { color: #fff; }
.cal__day.is-out { color: rgba(117,118,131,.45); cursor: default; }
.cal__day.is-range { background: var(--surface); color: #fff; }
.cal__day.is-edge { background: var(--blue); color: #fff; }
.cal__day.is-start { border-radius: 8px 0 0 8px; }
.cal__day.is-end { border-radius: 0 8px 8px 0; }
.cal__day.is-start.is-end { border-radius: 8px; }
.cal__day.is-rowstart { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.cal__day.is-rowend { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.cal__actions { display: flex; gap: 16px; }
.cal__btn {
    height: 36px; padding: 8px 16px;
    border: 1px solid var(--surface); border-radius: 8px;
    background: transparent; color: #fff;
    font: 400 14px/16px var(--font); cursor: pointer; white-space: nowrap;
}
.cal__btn--primary { flex: 1; background: var(--blue); border-color: var(--blue); }

/* desktop popover holding the calendar */
[data-popover] { position: relative; }
.popover {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
    width: 328px; display: none;
}
[data-popover].is-open .popover { display: block; }

/* ============================================================
   FILTER SHEET (mobile modal)
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 200; display: flex; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.sheet__panel {
    position: relative;
    margin: auto 0 0;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
}
.sheet__block {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 20px;
    background: var(--bg-block);
}
.sheet__block--cal { padding: 12px; }
.sheet__bar { display: flex; align-items: center; gap: 16px; }
.sheet__title { flex: 1; font: 500 16px/24px var(--font); color: #fff; }
.sheet__link {
    border: 0; background: none; cursor: pointer;
    font: 400 14px/20px var(--font); color: var(--line);
}
.sheet__link--white { color: #fff; }
.sheet__trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    height: 36px; padding: 8px 12px;
    border: 0; border-radius: 8px;
    background: var(--surface); color: var(--ink-2);
    font: 400 14px/16px var(--font); cursor: pointer;
}
.sheet__label { font: 600 18px/21px var(--font); color: #fff; }
.sheet__actions { flex-direction: row; gap: 16px; }
.sheet__actions .chip:last-child { flex: 1; }

.chips { display: flex; gap: 4px; }
.chips--split { gap: 16px; }
.chip {
    flex: none;
    height: 36px; padding: 8px 16px;
    border: 1px solid var(--surface); border-radius: 8px;
    background: transparent; color: #fff;
    font: 400 14px/16px var(--font); cursor: pointer; white-space: nowrap;
}
.chip.is-active, .chip--primary { background: var(--blue); border-color: var(--blue); }
.chips .chip { flex: 1; padding: 8px 4px; }
.chip--half, .chip--third { flex: 1; }

.radio { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio i {
    width: 16px; height: 16px; flex: none; margin-top: 1px;
    border-radius: 9999px; background: var(--surface);
}
.radio input:checked + i { background: var(--blue); }
.radio span { font: 400 14px/16px var(--font); color: #fff; }
.radio small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted-2); }

/* ============================================================
   Confetti decoration
   ============================================================ */
.confetti { position: absolute; z-index: 0; pointer-events: none; }
.confetti svg { width: 100%; height: 100%; }

/* ============================================================
   Mobile-only components (Figma frame 360)
   ============================================================ */
.only-mobile { display: none; }

/* compact header */
.nav-mobile { align-items: center; gap: 12px; }
.logo--sm { font-size: 20px; }
.navm__spacer { flex: 1; }
.iconbtn-sm {
    position: relative;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    background: none; border: 0; color: #fff; cursor: pointer;
}
.iconbtn-sm .count {
    position: absolute; top: -6px; right: -8px;
    min-width: 16px; height: 16px; padding: 2px;
    font-size: 10px; line-height: 1;
}

/* upcoming game card */
.topcard {
    position: relative; overflow: hidden;
    flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 10px;
    background: var(--surface);
}
.topcard > *:not(.topbar__glow) { position: relative; z-index: 1; }
.topcard__title { font: 500 16px/18px var(--font); }
.topcard__row { font: 400 14px/16px var(--font); color: #fff; }
.topcard__place b { display: block; font: 400 14px/16px var(--font); }
.topcard__place span { display: block; font: 400 14px/16px var(--font); color: rgba(255,255,255,.7); }

/* sorter row */
.sorter { align-items: center; gap: 12px; flex-wrap: nowrap; overflow-x: auto; padding: 8px 0; }
.sort-btn, .chip-blue { flex: none; }
.sort-btn {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--surface); border-radius: 8px;
    background: transparent; color: #fff; cursor: pointer;
}
.sort-btn--blue { background: var(--blue); border-color: var(--blue); }
.chip-blue {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 0; border-radius: 8px;
    background: var(--blue); color: var(--ink-2);
    font: 400 14px/16px var(--font); cursor: pointer;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card--wide { grid-column: span 2; }
    .faq { flex-direction: column; }
    .faq__aside { flex: none; padding: 0; }
    .venue { flex-basis: 560px; }
    .intro__title, .head__title { font-size: 60px; }
}

/* ---- switch to dedicated mobile layout (Figma 360) ---- */
@media (max-width: 768px) {
    .only-desktop { display: none !important; }
    .only-mobile { display: block; }
    .nav-mobile, .sorter { display: flex; }
    .topcard { display: flex; }

    .shell { padding: 8px 0 24px; gap: 12px; }
    .hero { padding: 16px; gap: 16px; display: flex; flex-direction: column; }
    .section, .partners { padding: 32px 16px; border-radius: 24px; }
    .footer__hero, .footer__bottom { padding: 16px; }

    /* game cards: single column, compact */
    .calendar { margin-top: 0; gap: 16px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 24px; border-radius: 10px; min-height: 0; }
    .card--wide { grid-column: span 1; }
    /* mobile card title is Onest 20/600 (not the slab display face) */
    .card__title { font-family: var(--font); font-weight: 600; font-size: 20px; line-height: 1; }
    .calendar .btn { width: 100%; justify-content: center; }

    /* headings */
    .head__title, .head__title--md, .intro__title { font-size: 32px; line-height: 1; }
    .head__sub { font-size: 16px; line-height: 20px; }
    .intro--page { padding: 8px 16px; }
    .intro--page .confetti { display: none; }

    /* stats: number + label in a row, stacked */
    .stats { flex-direction: column; gap: 16px; padding: 12px; width: 100%; }
    .stat { flex-direction: row; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
    .stat b { font-size: 52px; }
    .stat span { text-align: left; }

    /* venues: horizontal carousel of 240px cards */
    .venues__head { flex-direction: column; }
    .venues__head .round-btn { display: none; }
    .venues__track { flex-direction: row; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; }
    .venue { flex: 0 0 240px; scroll-snap-align: start; }
    .venue__img { height: 200px; border-radius: 10px; }

    /* faq */
    .faq__tabs { flex-wrap: wrap; }
    .faq__list { gap: 12px; }
    .faq-item { padding: 12px; border-radius: 12px; }
    .faq-item__q { font-size: 18px; line-height: 22px; }

    /* game page */
    .event { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 16px; }
    .event__col { width: 100%; min-width: 0; gap: 16px; }
    .block, .venue-photos { min-width: 0; }
    .event__title { font-size: 32px; }
    .gallery__img { height: 220px; }
    .gallery__nav { padding: 16px 0; }
    .block { padding: 0; }
    .block__title { font-size: 24px; }
    .buycard { flex-basis: auto; width: 100%; }
    .venue-photos { overflow-x: auto; }
    .venue-photo { flex: 0 0 200px; height: 180px; }

    /* footer: mobile omits the big "Мозгва — ❤!" hero block */
    .footer__hero { display: none; }
    .footer__bottom { border-radius: 24px; }
    .footer__content { flex-direction: column; gap: 32px; }
    .footer__links { flex-direction: column; gap: 16px; }
    .footer__contacts, .footer__brand, .footer__col { flex: none; }
    .contacts__row { flex-wrap: wrap; }
    .contacts__hours { margin-left: 0; }
    .phone .num { font-size: 44px; }
    .phone .pre { font-size: 26px; }
    .footer__legal { flex-wrap: wrap; }
}
