:root {
  --mg77-bg-1: #170303;
  --mg77-bg-2: #300606;
  --mg77-bg-3: #4a0909;
  --mg77-text: #ffffff;
  --mg77-text-soft: rgba(255, 255, 255, 0.86);
  --mg77-gold: #ffcc29;
  --mg77-gold-deep: #ffb000;
  --mg77-red: #e11d2e;
  --mg77-red-deep: #b90f1f;
  --mg77-card-border: rgba(255, 255, 255, 0.14);
  --mg77-radius-xl: 28px;
  --mg77-radius-lg: 20px;
  --mg77-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
  --mg77-container: 1280px;
  --mg77-transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mg77-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mg77-text);
  background:
    radial-gradient(circle at top left, rgba(225, 29, 46, 0.20), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 204, 41, 0.10), transparent 24%),
    linear-gradient(135deg, var(--mg77-bg-1), var(--mg77-bg-2), var(--mg77-bg-3));
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--mg77-gold);
  text-decoration: none;
}

a:hover {
  color: #ffe07f;
}

.mg77-page-shell {
  position: relative;
}

.mg77-container {
  width: min(calc(100% - 32px), var(--mg77-container));
  margin: 0 auto;
}

/* background decoration */
.mg77-bg-orb,
.mg77-bg-grid {
  pointer-events: none;
}

.mg77-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  z-index: -3;
  opacity: 0.60;
}

.mg77-bg-orb--one {
  width: 250px;
  height: 250px;
  top: 60px;
  left: -60px;
  background: rgba(225, 29, 46, 0.24);
}

.mg77-bg-orb--two {
  width: 320px;
  height: 320px;
  top: 180px;
  right: -80px;
  background: rgba(255, 204, 41, 0.18);
}

.mg77-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  opacity: 0.24;
}

/* header */
.mg77-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, rgba(32, 5, 5, 0.94), rgba(32, 5, 5, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.mg77-header__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mg77-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--mg77-text);
  min-width: 0;
}

.mg77-logo__img {
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 260px;
  object-fit: contain;
}

.mg77-logo__text {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mg77-white, #fff);
}

.mg77-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mg77-nav__link {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 0.98rem;
}

.mg77-nav__link:hover {
  color: var(--mg77-gold);
}

/* main */
.mg77-main {
  padding: 28px 0 0;
}

.mg77-hero {
  padding-bottom: 34px;
}

/* layout: left card + right banner */
.mg77-hero__grid {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* left card */
.mg77-sidecard,
.mg77-feature-card,
.mg77-textblock__inner,
.mg77-footer__inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--mg77-card-border);
  box-shadow: var(--mg77-shadow);
  backdrop-filter: blur(10px);
}

.mg77-sidecard {
  border-radius: var(--mg77-radius-xl);
  padding: 30px 28px;
  overflow: hidden;
  position: relative;
  min-height: 100%;
}

.mg77-sidecard::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 204, 41, 0.26), transparent 70%);
  pointer-events: none;
}

.mg77-sidecard__title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.mg77-sidecard__title span {
  color: var(--mg77-gold);
}

.mg77-sidecard__list {
  margin: 0 0 26px;
  padding-left: 26px;
  color: var(--mg77-text-soft);
  font-size: 0.96rem;
}

.mg77-sidecard__list li + li {
  margin-top: 12px;
}

/* buttons */
.mg77-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mg77-btn {
  min-width: 150px;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform var(--mg77-transition), filter var(--mg77-transition);
}

.mg77-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.mg77-btn--primary {
  background: linear-gradient(135deg, var(--mg77-red), var(--mg77-red-deep));
  color: #fff;
}

.mg77-btn--secondary {
  background: linear-gradient(135deg, var(--mg77-gold), var(--mg77-gold-deep));
  color: #2f1800;
}

/* banner */
.mg77-banner {
  position: relative;
  min-width: 0;
  height: auto;
  overflow: hidden;
  border-radius: var(--mg77-radius-xl);
  background: #180404;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--mg77-shadow);
}

.mg77-banner--full {
  width: 100%;
  margin: 0;
}

.mg77-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mg77-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 4, 4, 0.08) 0%, rgba(12, 4, 4, 0.12) 62%, rgba(12, 4, 4, 0.88) 100%),
    linear-gradient(90deg, rgba(225, 29, 46, 0.10), rgba(255, 204, 41, 0.04));
  z-index: 1;
}

.mg77-banner__lights {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.mg77-banner__lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mg77-gold);
  opacity: 0.95;
}

.mg77-banner__lights span:nth-child(2) { background: #ff4747; }
.mg77-banner__lights span:nth-child(3) { background: #ffffff; }
.mg77-banner__lights span:nth-child(4) { background: #00d26a; }
.mg77-banner__lights span:nth-child(5) { background: #ffcc29; }

.mg77-banner__content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
}

.mg77-banner__subtitle {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.50);
}

/* other sections */
.mg77-features {
  padding: 10px 0 46px;
}

.mg77-section-head {
  margin-bottom: 24px;
}

.mg77-section-text,
.mg77-feature-card__text,
.mg77-textblock__text,
.mg77-footer__brand p,
.mg77-footer__legal p,
.mg77-footer__bottom p {
  margin: 0;
  color: var(--mg77-text-soft);
  line-height: 1.7;
}

.mg77-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mg77-feature-card {
  border-radius: var(--mg77-radius-lg);
  overflow: hidden;
}

.mg77-feature-card__image-wrap {
  background: transparent;
}

.mg77-feature-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mg77-feature-card__body {
  padding: 20px;
}

.mg77-feature-card__title,
.mg77-textblock__title {
  margin: 0 0 12px;
  color: var(--mg77-gold);
  font-weight: 900;
  text-transform: uppercase;
}

.mg77-feature-card__title {
  font-size: 1.16rem;
}

.mg77-textblock {
  padding: 0 0 46px;
}

.mg77-textblock__inner {
  border-radius: var(--mg77-radius-xl);
  padding: 28px 32px;
}

.mg77-textblock__title {
  font-size: 1.45rem;
}

.mg77-textblock__text {
  margin-bottom: 18px;
}

.mg77-footer {
  padding: 0 0 30px;
}

.mg77-footer__inner {
  border-radius: var(--mg77-radius-xl);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.mg77-footer__brand strong,
.mg77-footer__legal h3 {
  display: inline-block;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.mg77-footer__bottom {
  padding-top: 14px;
}

.mg77-footer__bottom p {
  text-align: center;
  font-size: 0.95rem;
}

/* responsive */
@media (max-width: 1200px) {
  .mg77-hero__grid {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .mg77-banner {
    height: 700px;
  }

  .mg77-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mg77-header__inner {
    min-height: 82px;
  }

  .mg77-nav {
    display: none;
  }

  .mg77-hero__grid {
    grid-template-columns: 1fr;
  }

  .mg77-banner {
    order: 1;
    height: 520px;
  }

  .mg77-sidecard {
    order: 2;
  }

  .mg77-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mg77-main {
    padding-top: 20px;
  }

  .mg77-header__inner {
    min-height: 74px;
  }

  .mg77-logo {
    gap: 12px;
  }

  .mg77-logo__img {
    max-height: 42px;
    max-width: 200px;
  }

  .mg77-logo__text {
    font-size: 1.25rem;
  }

  .mg77-banner {
    height: 410px;
    border-radius: 22px;
  }

  .mg77-banner__content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .mg77-sidecard,
  .mg77-textblock__inner,
  .mg77-footer__inner {
    padding: 22px;
  }

  .mg77-actions {
    flex-direction: column;
  }

  .mg77-btn {
    width: 100%;
  }

  .mg77-feature-grid {
    grid-template-columns: 1fr;
  }


}