/* ===== FONTS ===== */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mulish-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/mulish-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/mulish-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/mulish-800.woff2') format('woff2');
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #12141A;
  --surface: #171821;
  --primary: #FB213E;
  --primary-hover: #E01E37;
  --white: #FFFFFF;
  --white64: rgba(255,255,255,.64);
  --border: rgba(255,255,255,.05);
  --border2: #262936;
  --gold: #FFC107;
  --radius: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
}

body.menu-open { overflow: hidden; position: fixed; width: 100%; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

h1 { font-size: 40px; line-height: 48px; font-weight: 700; }
h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
h4 { font-size: 15px; line-height: 22px; font-weight: 700; }
h5 { font-size: 14px; line-height: 20px; font-weight: 700; }

p { font-size: 14px; line-height: 20px; color: var(--white64); }

ol, ul { padding-left: 20px; }
ol li, ul li { font-size: 14px; line-height: 20px; color: var(--white64); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid;
  text-decoration: none;
  gap: 8px;
}
.btn-signup {
  height: 48px;
  min-width: 101px;
  background: var(--primary);
  color: var(--white);
  border-color: #FF4043;
  box-shadow: 0 4px 16px rgba(251,33,62,.32);
}
.btn-signup:hover { background: var(--primary-hover); box-shadow: 0 6px 20px rgba(251,33,62,.45); }
.btn-signup:active { transform: translateY(1px); }

.btn-login {
  height: 48px;
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-login:hover { background: rgba(255,255,255,.1); }

/* ===== HEADER ===== */
.header {
  background: var(--surface);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.header-container {
  width: 100%;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.header-logo { display: flex; align-items: center; justify-self: start; }
.header-logo img { height: 40px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 40px; justify-self: center; }
.nav-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  transition: opacity .3s;
}
.nav-link:hover { opacity: .8; }
.nav-link.active { color: #FFCF68; }

.header-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }

.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-arrow { width: 12px; height: 12px; transition: transform .25s; flex-shrink: 0; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.lang-option:hover { background: rgba(255,255,255,.07); }
.lang-option.active { color: #FFCF68; background: rgba(255,207,104,.08); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 997;
  opacity: 0;
  transition: opacity .3s;
}
.menu-overlay.visible { opacity: 1; pointer-events: auto; }

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  padding: 16px 80px;
  margin-top: 80px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border2);
}
.footer-logo img { height: 40px; width: auto; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-link { font-weight: 700; font-size: 16px; color: var(--white64); transition: color .3s; }
.footer-link:hover { color: var(--white); }
.footer-socials { display: flex; gap: 16px; align-items: center; }
.social-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.social-icon img { width: 100%; height: 100%; object-fit: contain; }
.social-icon:hover { transform: scale(1.1); }

.footer-payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border2);
}
.payment-icon { height: 40px; display: flex; align-items: center; }
.payment-icon img { height: 100%; width: auto; object-fit: contain; }

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}
.badge-icon { height: 50px; display: flex; align-items: center; }
.badge-icon img { height: 100%; width: auto; object-fit: contain; }

.footer-bottom { display: flex; gap: 24px; align-items: flex-start; }
.footer-age { flex-shrink: 0; width: 56px; height: 56px; }
.footer-age img { width: 100%; height: 100%; object-fit: contain; }
.footer-text p { font-size: 14px; line-height: 20px; color: var(--white64); }

.footer-copyright { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.footer-copyright p { font-size: 14px; color: var(--white64); }
.footer-legal { display: flex; gap: 24px; }
.legal-link { font-size: 14px; color: var(--white64); transition: color .3s; }
.legal-link:hover { color: var(--white); }

/* ===== PAGE WRAPPER ===== */
.page-section {
  padding-top: 48px;
  padding-left: 80px;
  padding-right: 80px;
}
.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HERO BANNER ===== */
.hero-container {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}
.hero-title { font-size: 48px; line-height: 56px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.hero-desc { font-size: 16px; line-height: 24px; color: rgba(255,255,255,.9); margin-bottom: 156px; }
.hero-content--flat .hero-desc { margin-bottom: 0; }
.hero-btn { width: 176px; height: 48px; }

/* ===== LOGIN SECTION ===== */
.login-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 48px;
  justify-content: center;
}
.login-image { flex: 1; max-width: 616px; }
.login-image img { width: 100%; object-fit: contain; }
.login-content { flex: 1; max-width: 616px; }
.login-content h2 { font-size: 24px; line-height: 32px; color: var(--white); margin-bottom: 16px; }
.login-content h3 { font-size: 16px; color: var(--white); margin: 0 0 4px; }
.login-content p { margin: 0 0 4px; }
.login-content ol { margin: 0 0 32px; }
.login-content .ref_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(251,33,62,.32);
  transition: all .3s;
}
.login-content .ref_btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,33,62,.4); }

/* ===== FEATURES SECTION ===== */
.features-container { width: 100%; margin-top: 80px; }
.section-title { text-align: center; margin-bottom: 16px; font-size: 48px; line-height: 56px; }
.section-desc { text-align: center; max-width: 760px; margin: 0 auto; }
.section-title-lg { text-align: center; margin-bottom: 48px; font-size: 48px; line-height: 56px; }
.features-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.feature-card {
  width: calc(25% - 16px);
  max-width: 308px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.feature-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card-title { font-size: 16px; line-height: 24px; color: var(--white); margin: 0 0 8px; }
.feature-card-text { font-size: 14px; line-height: 20px; color: var(--white64); margin: 0; }

/* ===== BONUSES SECTION ===== */
.bonuses-container { width: 100%; margin-top: 80px; }
.bonuses-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.bonus-card {
  width: calc(50% - 8px);
  height: 300px;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  transition: all .3s;
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.bonus-card-content { position: relative; z-index: 2; max-width: 60%; display: flex; flex-direction: column; gap: 8px; }
.bonus-card-image {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 50%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.bonus-card-image img { width: 100%; height: auto; object-fit: contain; max-height: 240px; }
.bonus-label { font-weight: 700; font-size: 16px; color: var(--gold); margin: 0; }
.bonus-title-text { font-weight: 700; font-size: 24px; line-height: 32px; color: var(--white); margin: 0; }
.bonus-desc { font-size: 14px; color: var(--white64); margin: 0; }

/* ===== WELCOME PACKAGE WIDGET ===== */
.sec-bonus-section { width: 100%; max-width: 1200px; margin: 80px auto 0; }
.sec-bonus-section__title { font-size: 48px; line-height: 56px; font-weight: 700; text-align: center; margin-bottom: 48px; }
.sec-bonus-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.sec-bonus-card {
  width: calc(50% - 8px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.sec-bonus-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.sec-bonus-card__image { width: 100%; overflow: hidden; }
.sec-bonus-card__image img { width: 100%; display: block; object-fit: cover; }
.sec-bonus-card__content { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.sec-bonus-card__stage { font-weight: 700; font-size: 14px; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.sec-bonus-card__title { font-weight: 700; font-size: 24px; line-height: 32px; color: var(--white); margin: 0 0 12px; }
.sec-bonus-card__desc { font-size: 14px; line-height: 20px; color: var(--white64); margin: 0 0 16px; }
.sec-bonus-stats { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.sec-bonus-stats li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sec-bonus-stats li:last-child { border-bottom: none; }
.sec-bonus-stats li:nth-child(odd) { background: rgba(255,255,255,.02); }
.sec-bonus-stats li span:first-child { color: var(--white64); }
.sec-bonus-stats li span:last-child { font-weight: 700; color: var(--white); }
.sec-bonus-card__terms { font-size: 11px; color: var(--white64); margin-bottom: 16px; line-height: 1.5; }
.sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  margin-top: auto;
  transition: all .3s;
}
.sec-btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(251,33,62,.32);
}
.sec-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,33,62,.4); }

/* ===== FAQ ===== */
.faq-container { width: 100%; margin-top: 64px; }
.faq-title { text-align: center; margin-bottom: 32px; font-size: 48px; line-height: 56px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 1280px; margin: 0 auto; }
details.faq-item { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  list-style: none;
  transition: opacity .3s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { opacity: .8; }
.faq-icon { flex-shrink: 0; transition: transform .3s; }
details[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 32px 24px; font-size: 14px; line-height: 20px; color: var(--white64); }

/* ===== CONTENT PAGE ===== */
.content-page { max-width: 900px; margin: 0 auto; }
.content-page h1 { margin-bottom: 32px; }
.content-page h2 { color: var(--white); margin: 32px 0 12px; }
.content-page h3 { color: var(--white); margin: 24px 0 8px; }
.content-page h4 { color: var(--white); margin: 16px 0 6px; }
.content-page h5 { color: var(--white); margin: 12px 0 4px; }
.content-page p { margin-bottom: 12px; }
.content-page ol, .content-page ul { margin-bottom: 16px; }
.content-page ol li, .content-page ul li { margin-bottom: 4px; }
.content-page a { color: #FFCF68; text-decoration: underline; }
.content-page b, .content-page strong { color: var(--white); }

/* ===== BANNER PAGE ===== */
.banner-container {
  width: 100%;
  border-radius: var(--radius-lg);
  min-height: 360px;
  overflow: hidden;
  position: relative;
}
.banner-container picture, .banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-img { width: 100%; display: block; border-radius: var(--radius-lg); }

/* ===== CONTACT PAGE ===== */
.contact-container { display: flex; gap: 48px; align-items: flex-start; margin-top: 0; }
.contact-image { flex: 1; max-width: 500px; }
.contact-image img { width: 100%; border-radius: var(--radius-lg); }
.contact-content { flex: 1; }
.contact-content h1 { margin-bottom: 24px; }
.contact-content h2 { color: var(--white); margin: 24px 0 8px; }
.contact-content h3 { color: var(--white); margin: 16px 0 6px; }
.contact-content h4 { color: var(--white); margin: 12px 0 4px; }
.contact-content p { margin-bottom: 12px; }
.contact-content a { color: #FFCF68; text-decoration: underline; }

/* ===== ABOUT PAGE ===== */
.about-container { margin-top: 48px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .header-container { padding: 0 40px; }
  .page-section { padding-left: 40px; padding-right: 40px; }
  .footer { padding: 16px 40px; }
}

@media (max-width: 1200px) {
  .features-grid { flex-wrap: wrap; }
}

@media (max-width: 968px) {
  .header-container { padding: 0 20px; }
  .header-nav { gap: 24px; }
  .page-section { padding-left: 20px; padding-right: 20px; }
  .footer { padding: 16px 20px; }
  .footer-payments { gap: 24px; }
  .payment-icon { height: 32px; }
  .badge-icon { height: 40px; }
  .login-container { flex-direction: column; gap: 40px; }
  .login-image { width: 100%; max-width: 400px; margin: 0 auto; }
  .sec-bonus-card { width: 100%; }
  .bonus-card { flex-direction: column-reverse; }
  .bonus-card-content { max-width: 100%; }
  .bonus-card-image { position: relative; width: 100%; height: auto; transform: none; top: auto; }
  .bonus-card-image img { max-height: 200px; }
}

@media (max-width: 768px) {
  .header-container { gap: 16px; grid-template-columns: auto 1fr; padding: 0 16px; }
  .menu-overlay { display: block; }
  .burger-btn { display: flex; }

  .header-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px; max-width: 80%;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform .3s;
    box-shadow: -2px 0 10px rgba(0,0,0,.5);
    z-index: 998;
    overflow-y: auto;
  }
  .header-nav.open { transform: translateX(0); }
  .header-nav .nav-link { padding: 20px 24px; width: 100%; text-align: left; border-bottom: 1px solid var(--border); display: block; }
  .header-nav .nav-link:hover { background: rgba(255,255,255,.05); }
  .header-nav .nav-link.active { background: rgba(255,207,104,.1); color: #FFCF68; }

  h1 { font-size: 24px; line-height: 32px; }
  h2 { font-size: 20px; line-height: 28px; }
  .hero-title { font-size: 32px; line-height: 40px; }
  .hero-desc { font-size: 14px; line-height: 20px; margin-bottom: 60px; }
  .section-title, .section-title-lg, .faq-title, .sec-bonus-section__title { font-size: 32px; line-height: 40px; }

  .page-section { padding-top: 40px; padding-left: 16px; padding-right: 16px; }
  .footer { margin-top: 60px; }
  .footer-top { padding-bottom: 32px; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
  .footer-logo { order: 1; }
  .footer-socials { order: 2; }
  .footer-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px 32px; text-align: center; }
  .footer-payments { gap: 16px; padding: 24px 0; }
  .payment-icon { height: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-age { width: 48px; height: 48px; }
  .footer-copyright { flex-direction: column; gap: 16px; text-align: center; padding-top: 20px; }
  .footer-legal { flex-direction: column; gap: 12px; align-items: center; }

  .features-container { margin-top: 60px; }
  .bonuses-container { margin-top: 60px; }
  .faq-container { margin-top: 48px; }
  details.faq-item summary { padding: 20px 24px; font-size: 14px; }
  .faq-answer { padding: 0 24px 20px; }
  .feature-card { width: calc(50% - 16px); }
  .bonus-card { width: 100%; height: auto; min-height: 240px; }

  .contact-container { flex-direction: column; }
  .contact-image { max-width: 100%; }
  .sec-bonus-section { margin-top: 60px; }
}

@media (max-width: 480px) {
  .feature-card { width: 100%; }
  .bonus-card { width: 100%; }
  .footer-nav { grid-template-columns: repeat(2,1fr); gap: 12px; }
}

@media (max-width: 360px) {
  .header-container { padding: 0 12px; }
  .header-nav { width: 240px; }
}
