@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #075bc7;
  --brand-dark: #092653;
  --brand-deep: #061b3f;
  --gold: #ffc928;
  --gold-dark: #c98d00;
  --bg: #f4f8ff;
  --surface: #fff;
  --surface-soft: #eef5ff;
  --ink: #10264d;
  --muted: #5c7193;
  --line: #d9e6f5;
  --success: #168b68;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 14px rgba(9, 38, 83, .07);
  --shadow: 0 12px 30px rgba(9, 38, 83, .10);
  --shadow-lg: 0 20px 50px rgba(9, 38, 83, .14);
  --container: 1240px;
  --gutter: 24px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: 'Be Vietnam Pro', Arial, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(255, 201, 40, .95); outline-offset: 3px; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* Shared navigation */
.header { position: sticky; top: 0; z-index: 100; background: rgba(9, 38, 83, .98); border-bottom: 3px solid var(--gold); box-shadow: 0 5px 20px rgba(9, 38, 83, .16); }
.nav { display: flex; align-items: center; min-height: var(--header-height); gap: 28px; }
.logo { display: block; flex: 0 0 142px; width: 142px; }
.logo img { display: block; width: 100%; height: auto; max-height: 48px; object-fit: contain; }
.navlinks { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 22px); flex: 1; min-width: 0; }
.navlinks a { padding: 10px 0; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.navlinks a:hover { color: var(--gold); }
.actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--gold); color: var(--brand-dark) !important; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 8px 18px rgba(9, 38, 83, .16); }
.btn.blue { border-color: rgba(255,255,255,.35); background: var(--brand); color: #fff !important; }
.btn.telegram { background: #2096dc; color: #fff !important; }
.menu-toggle { display: none; flex: none; padding: 9px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-sm); background: transparent; color: #fff; line-height: 0; cursor: pointer; }
.menu-toggle svg { width: 23px; height: 23px; }

/* Landing hero */
.hero-hd { overflow: hidden; background: var(--brand-dark); color: #fff; }
.hero-carousel { position: relative; width: 100%; overflow: hidden; background: #061b3f; touch-action: pan-y; }
.hero-carousel-track { display: grid; }
.hero-slide { grid-area: 1 / 1; visibility: visible; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide picture, .hero-slide img { display: block; width: 100%; }
.hero-slide img { height: auto; aspect-ratio: 1920 / 660; object-fit: contain; }
.carousel-control { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(4,24,59,.68); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { position: absolute; right: 0; bottom: 12px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 9px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dots button.is-active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(6,27,63,.65); }
.hero-banner { width: 100%; background: var(--brand-deep); }
.hero-banner img { width: 100%; height: auto; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); align-items: center; gap: 56px; min-height: 360px; padding-block: 56px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; background: var(--gold); content: ''; }
.hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; }
.hero p { margin: 0 0 26px; color: #dcecff; font-size: 18px; }
.hero-art { display: grid; place-items: center; min-height: 220px; }
.hero-mark { width: min(330px, 72%); filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }

/* Promotional modules */
.promo-offers { padding: 32px 0 12px; }
.promo-offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo-offer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 12px; min-width: 0; overflow: hidden; padding: 14px; border: 1px solid #c9a22a; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff 0%, #fffdf4 100%); color: var(--ink); box-shadow: var(--shadow); }


.promo-offer-copy { position: relative; z-index: 1; min-width: 0; }
.promo-offer-art { width: 100%; min-width: 0; aspect-ratio: 764 / 201; overflow: hidden; border-radius: var(--radius-sm); background: #0b3eaa; }
.promo-offer-art img { width: 100%; height: 100%; object-fit: contain; }
.promo-offer-icon { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.promo-offer-icon svg { width: 20px; height: 20px; color: var(--gold-dark); }
.promo-offer h2 { margin: 0 0 5px; color: var(--brand-dark); font-size: clamp(17px, 2vw, 21px); line-height: 1.28; }

.promo-offer p { max-width: none; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.promo-offer-action, .community-cta-action { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 46px; padding: 11px 15px; border: 1px solid #e1ae13; border-radius: var(--radius-sm); background: var(--gold); color: var(--brand-dark) !important; font-size: 13px; font-weight: 800; line-height: 1.25; text-align: center; }
.promo-offer-action:hover, .community-cta-action:hover { background: #ffd84f; }

/* Community */
.community-cta { width: min(100% - 48px, var(--container)); margin: 16px auto 14px; padding: 24px 28px; border: 1px solid #b9d4f3; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.community-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.community-cta-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--brand-dark); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; }
.community-cta-heading svg { width: 32px; height: 32px; flex: none; color: #2096dc; }
.community-cta-copy { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; }
.community-cta-note { display: block; margin-top: 6px; color: #7e91aa; font-size: 11px; }
.community-cta-action { min-width: 185px; background: #2096dc; border-color: #2096dc; color: #fff !important; }

/* Content primitives */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 18px; }
.benefit { display: flex; align-items: center; gap: 9px; color: #315581; font-size: 13px; font-weight: 700; }
.section { padding: 32px 0; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
h2 { margin: 0 0 16px; color: var(--brand-dark); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.25; }
h3 { margin: 10px 0 6px; color: var(--brand-dark); line-height: 1.35; }
p { margin: 0 0 15px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title h2 { margin: 0; }
.games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.game { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.game:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.game strong { display: block; padding: 11px 7px; color: var(--brand-dark); font-size: 12px; text-align: center; }
.three { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.promo { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-sm); object-fit: cover; }
.linklist { margin: 0; padding: 0; list-style: none; }
.linklist li { padding: 11px 0; border-bottom: 1px solid #e5edf7; }
.linklist li:last-child { border-bottom: 0; }
.siu-v7-promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.siu-v7-promo-grid a { display: block; color: inherit; }
.siu-v7-promo-grid img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: cover; }
.siu-v7-promo-grid strong { display: block; padding-top: 8px; text-align: center; }

/* Editorial pages */
.article { width: min(920px, calc(100% - 48px)); margin: 36px auto; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.article h1 { margin: 0 0 16px; color: var(--brand-dark); font-size: clamp(29px, 4vw, 46px); line-height: 1.18; }
.article h2 { margin-top: 34px; }
.breadcrumb { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.lead { color: #365782; font-size: 18px; }
.article-img { width: 100%; max-height: 440px; margin: 20px 0 28px; border-radius: var(--radius); object-fit: cover; }
.notice { margin: 24px 0; padding: 15px 18px; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: #fff8dc; }
.related { margin-top: 32px; padding: 20px; border-radius: var(--radius); background: var(--surface-soft); }
.related h2 { margin-top: 0; font-size: 22px; }
.editorial-addition { margin-top: 30px; padding-top: 10px; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { display: block; color: inherit; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 1200 / 630; border-radius: var(--radius-sm); object-fit: cover; }
.tile h3 { font-size: 17px; }
.muted { color: var(--muted); }
.promo-telegram-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.promo-telegram-contact p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.faq details p { padding: 0 0 14px; color: var(--muted); }

/* Footer and mobile navigation */
.footer { margin-top: 24px; padding: 44px 0 48px; background: var(--brand-dark); color: #dcecff; }
.footer a { color: #dcecff; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.footer-inner > div:first-child { max-width: 420px; }
.footer-inner img { width: 145px; height: auto; margin-bottom: 12px; object-fit: contain; }
.footer-inner > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 9px 28px; min-width: 280px; }
.mobilebar { display: none; }

@media (max-width: 1120px) {
  .nav { gap: 16px; }
  .navlinks { gap: 11px; }
  .navlinks a { font-size: 12px; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .three { grid-template-columns: 1fr 1fr; }
  .three > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-height: 64px; }
  .wrap { width: min(100% - 32px, var(--container)); }
  .header .nav { position: relative; min-height: var(--header-height); gap: 6px; }
  .logo { flex: 0 0 100px; width: 100px; min-width: 0; }
  .navlinks { position: absolute; top: var(--header-height); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; background: var(--brand-dark); border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 12px 22px rgba(0,0,0,.18); }
  .navlinks.is-open { display: flex; }
  .navlinks a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
  .menu-toggle { display: block; order: 3; margin-left: 2px; }
  .header .actions { margin-left: auto; gap: 4px; }
  .header .actions .btn { min-width: 88px; min-height: 42px; padding: 8px 7px; font-size: 11px; }
  .menu-toggle { padding: 6px; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .hero-content { grid-template-columns: 1fr; min-width: 0; min-height: 0; gap: 0; padding-block: 22px 20px; text-align: left; }
  .hero-slide img { aspect-ratio: 750 / 900; object-fit: contain; }
  .carousel-control { width: 38px; height: 38px; font-size: 26px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-dots { bottom: 8px; }
  .hero-copy { width: 100%; max-width: none; min-width: 0; margin-inline: auto; }
  .hero-art { display: none; }
  .hero h1 { max-width: 560px; margin-bottom: 10px; font-size: 29px; line-height: 1.18; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .hero p { margin-bottom: 16px; font-size: 15px; line-height: 1.5; }
  .hero .actions { justify-content: flex-start; gap: 9px; }
  .hero .actions .btn { flex: 0 1 auto; min-width: 116px; min-height: 40px; }
  .promo-offers { padding: 12px 0 6px; }
  .promo-offer-grid { grid-template-columns: 1fr; gap: 14px; }
  .promo-offer { grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 0; padding: 14px; }
  .promo-offer-art { grid-column: 1; grid-row: auto; width: 100%; max-height: none; aspect-ratio: 764 / 201; }
  .promo-offer-copy { grid-column: 1; grid-row: auto; }
  .promo-offer h2 { font-size: 18px; }

  .promo-offer-action { grid-column: 1; grid-row: auto; width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .community-cta { width: min(100% - 32px, var(--container)); margin-block: 14px 8px; padding: 20px 18px; }
  .community-cta-inner { grid-template-columns: 1fr; gap: 16px; }
  .community-cta-heading { font-size: 21px; }
  .community-cta-action { width: 100%; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; padding-block: 16px; }
  .benefit { font-size: 11px; line-height: 1.35; }
  .section { padding: 22px 0; }
  .panel { padding: 18px; }
  .section-title { align-items: flex-start; flex-wrap: wrap; }
  .section-title h2 { font-size: 23px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .game strong { padding: 9px 4px; font-size: 11px; }
  .three { grid-template-columns: 1fr; gap: 14px; }
  .three > :first-child { grid-column: auto; }
  .siu-v7-promo-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .article { width: calc(100% - 32px); margin: 20px auto; padding: 24px 18px; }
  .article h1 { font-size: 29px; }
  .article h2 { font-size: 22px; }
  .lead { font-size: 17px; }
  .footer { padding: 34px 0 calc(34px + var(--mobilebar-height, 68px)); }
  .footer-inner { display: block; }
  .footer-inner > div:last-child { min-width: 0; margin-top: 24px; gap: 9px 16px; font-size: 13px; }
  .mobilebar { --mobilebar-content-height: 60px; position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(var(--mobilebar-content-height) + env(safe-area-inset-bottom)); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,201,40,.75); background: #fff; box-shadow: 0 -4px 16px rgba(9,38,83,.14); }
  .mobilebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; color: #48627f; font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; }
  .mobilebar img { width: 25px; height: 25px; object-fit: contain; }
  .mobilebar a.is-active { color: var(--brand); }
  .mobilebar a.is-active img { filter: drop-shadow(0 1px 1px rgba(9,38,83,.2)); }
  main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

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

.hero-copy.sr-only { width: 1px; height: 1px; margin: -1px; }
.promo-offer-action { width: 100%; min-width: 0; }
@media (max-width: 760px) { .promo-offer { padding: 10px; } .promo-offer h2 { font-size: 16px; } }
