:root {
  --theme: #276aa5;
  --theme-dark: #174a78;
  --theme-deep: #0b2b49;
  --theme-light: #eef7fc;
  --theme-soft: #d9ecf8;
  --theme-accent: #58a8df;
  --theme-hover: #1f5c90;
  --theme-border: rgba(39, 106, 165, 0.24);
  --header-bg: #0e3b63;
  --header-bg-2: #15598e;
  --text-main: #102c44;
  --text-muted: #5c7081;
  --on-theme: #ffffff;
  --on-header: #f6fbff;
  --on-dark: #eaf6ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(39, 106, 165, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--theme-light);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container,
.section-inner,
.header-inner,
.footer-inner,
.hero-inner {
  width: min(1280px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1440px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner,
  .hero-inner {
    width: min(1360px, calc(100% - 120px));
  }
}

@media (max-width: 767px) {
  .container,
  .section-inner,
  .header-inner,
  .footer-inner,
  .hero-inner {
    width: min(100% - 32px, 1280px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  color: var(--on-header);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.site-logo,
.drawer-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--on-header);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--theme-accent);
  border-bottom: 2px solid var(--theme-accent);
}

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%);
  color: var(--on-theme);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  border: 0;
}

.main-btn:hover {
  background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme-hover) 48%, var(--theme-dark) 100%);
}

.mobile-menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.13);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--on-header);
  border-radius: 999px;
}

.site-main {
  min-height: 70vh;
}

.section {
  padding: 64px 0;
}

.section-title {
  max-width: 860px;
  margin: 0 0 30px;
}

.section-title .eyebrow,
.eyebrow {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--theme-border);
  color: var(--theme-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-title h2,
.content-block h2,
.page-copy h2 {
  margin: 0 0 14px;
  color: var(--theme-dark);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
}

.section-title p,
.page-copy p,
.content-block p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 17px;
}

.intro-section {
  padding: 28px 0 34px;
}

.intro-card {
  background: var(--white);
  border: 1px solid var(--theme-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.intro-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 18px;
}

.headline-section {
  padding: 48px 0 36px;
}

.home-headline {
  max-width: 980px;
}

.home-headline h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.08;
  color: var(--theme-dark);
}

.home-headline p {
  margin: 0;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero-section {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--theme-light) 0%, var(--theme-soft) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  font-size: clamp(56px, 5vw, 76px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--theme-dark);
}

.hero-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
  margin: 0 0 28px;
}

.hero-badge,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 700;
}

.hero-badge {
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual,
.media-box,
.app-visual,
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-media-box,
.media-box,
.app-visual,
.card-media {
  background: var(--white);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 32px;
  padding: 28px;
}

.hero-media-box {
  width: 100%;
  max-width: 560px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-media-box img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-box img,
.hero-visual img,
.app-visual img,
.card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.info-section {
  padding: 32px 0 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.card,
.zone-card,
.feature-card,
.category-card,
.faq-item,
.notice,
.visual-card,
.feedback-card,
.point-card,
.related-card {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  min-height: auto;
  height: auto;
  padding: 28px;
}

.info-card span,
.card-number {
  color: var(--theme);
  font-weight: 800;
}

.info-card h2,
.card h3,
.zone-card h3,
.feature-card h3,
.category-card h3,
.faq-item h3,
.point-card h3,
.related-card h3 {
  color: var(--theme-dark);
  margin: 12px 0;
  line-height: 1.25;
}

.info-card p,
.card p,
.zone-card p,
.feature-card p,
.category-card p,
.faq-item p,
.point-card p,
.feedback-card p,
.related-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.category-pills,
.hero-tags,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a,
.category-pill,
.tag,
.badge {
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  width: auto;
  max-width: max-content;
  text-decoration: none;
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}

.category-pills a:hover {
  color: var(--theme-hover);
}

.category-grid,
.service-grid,
.news-grid,
.faq-grid,
.point-grid,
.related-grid,
.feedback-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid,
.news-grid,
.point-grid,
.related-grid,
.feedback-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 38px;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.page-hero {
  padding: 64px 0 42px;
  background: linear-gradient(180deg, var(--theme-soft) 0%, var(--theme-light) 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 46px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1.08;
  color: var(--theme-dark);
  margin: 0 0 20px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-main);
  margin: 0;
}

.page-copy {
  max-width: 980px;
}

.page-copy p + p {
  margin-top: 12px;
}

.notice {
  background: linear-gradient(180deg, var(--white), var(--theme-soft));
}

.notice strong {
  color: var(--theme-dark);
}

.related-card a,
.category-card a,
.zone-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--theme-dark);
  text-decoration: none;
  font-weight: 800;
}

.footer {
  background: var(--theme-deep);
  color: var(--on-dark);
  padding: 58px 0 0;
}

.footer a {
  color: var(--on-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr .8fr;
  gap: 30px;
}

.footer-logo img {
  max-width: 190px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-brand p,
.footer-legal p {
  color: rgba(238,250,255,.78);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(238,250,255,.86);
}

.footer-badges span {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.footer-legal {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 18px min(1280px, calc(100% - 80px));
  text-align: center;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 10001;
  background: var(--header-bg);
  color: var(--on-header);
  padding: 18px;
  box-shadow: 22px 0 60px rgba(0,0,0,.25);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  background: rgba(6,32,51,.58);
  transition: opacity .28s ease, visibility .28s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-logo img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: var(--on-header);
  border-radius: 14px;
  font-size: 28px;
}

.drawer-nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.drawer-nav a {
  text-decoration: none;
  color: var(--on-header);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 11px 12px;
  font-weight: 800;
}

.drawer-nav a.active {
  background: rgba(255,255,255,.18);
}

.drawer-note {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 14px;
  color: rgba(255,255,255,.86);
}

.drawer-note p {
  margin: 6px 0 0;
}

@media (min-width: 1440px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
    gap: 80px;
  }

  .hero-media-box {
    max-width: 620px;
    min-height: 420px;
  }

  .hero-media-box img {
    max-height: 380px;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .header-inner {
    width: min(100% - 28px, 1280px);
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .main-nav {
    display: none;
  }

  .site-logo {
    justify-self: center;
  }

  .site-logo img {
    max-width: min(150px, 42vw);
    max-height: 56px;
  }

  .header-actions {
    justify-self: end;
  }

  .header-actions .main-btn {
    white-space: nowrap;
    padding: 10px 16px;
  }

  .intro-card {
    padding: 22px;
  }

  .home-headline h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .hero-section {
    padding: 48px 0 36px;
  }

  .hero-inner,
  .page-hero-grid,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 9vw, 52px);
  }

  .hero-media-box {
    max-width: 100%;
    min-height: auto;
    padding: 24px;
  }

  .hero-media-box img {
    max-height: 300px;
  }

  .info-grid,
  .service-grid,
  .news-grid,
  .point-grid,
  .related-grid,
  .feedback-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section {
    padding: 46px 0;
  }
  .info-grid,
  .category-grid,
  .service-grid,
  .news-grid,
  .point-grid,
  .related-grid,
  .feedback-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .site-logo img {
    max-width: min(120px, 36vw);
    max-height: 48px;
  }

  .header-actions .main-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}


/* 1XBet Hero version refinements */
.site-header {
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%);
  border-bottom: 1px solid var(--theme-border);
}
.hero-section {
  padding: 64px 0 34px;
  background:
    radial-gradient(circle at 12% 20%, var(--theme-soft) 0%, rgba(216,251,253,0) 36%),
    linear-gradient(180deg, var(--theme-light) 0%, var(--white) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}
.hero-content h1 {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--theme-dark);
}
.hero-content p {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
  margin: 0 0 26px;
}
.hero-badge,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--theme-soft);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}
.hero-badge { margin-bottom: 18px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media-box {
  width: min(100%, 540px);
  min-height: 320px;
  max-height: 420px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--white) 0%, var(--theme-soft) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
}
.hero-media-box img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
}
.category-pills a {
  background: var(--white);
  color: var(--theme-dark);
  border: 1px solid var(--theme-border);
}
.category-pills a:hover {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme));
  color: var(--on-theme);
}
.info-card::before,
.category-card::before,
.feature-card::before,
.zone-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme), var(--theme-accent));
  margin-bottom: 16px;
}
.footer {
  background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-deep) 100%);
}
@media (max-width: 1023px) {
  .hero-section { padding: 46px 0 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-content h1 { font-size: clamp(34px, 8.5vw, 52px); }
  .hero-media-box { width: 100%; min-height: 240px; padding: 24px; }
  .hero-media-box img { max-height: 280px; }
}
@media (max-width: 767px) {
  .hero-content p { font-size: 16px; }
}
