/* -------------------------------------------------------
   * 1. FONT IMPORT
   * ----------------------------------------------------- */
 /* roboto-regular - latin-ext_latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v30-latin-ext_latin-regular.woff2') format('woff2');
}
/* roboto-500 - latin-ext_latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v30-latin-ext_latin-500.woff2') format('woff2');
}
/* roboto-700 - latin-ext_latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v30-latin-ext_latin-700.woff2') format('woff2');
}
/* roboto-900 - latin-ext_latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/roboto-v30-latin-ext_latin-900.woff2') format('woff2');
}

  /* -------------------------------------------------------
   * 2. DESIGN TOKENS (:root) - REWORKED FOR BETSIN
   * ----------------------------------------------------- */

  :root {
    /* --- BETSIN PALETTE MAPPING --- */
    /* Betsin Orange: #F25F00 (RGB: 242, 95, 0) */
    /* Betsin Dark BG: #121419 (RGB: 18, 20, 25) */
    /* Betsin Card BG: #1f2a34 (RGB: 31, 42, 52) */
    
    /* Layout dimensions (Unchanged) */
    --mobile-header-main-section-height: 49px;
    --mobile-header-navigation-height: 40px;
    --mobile-horizontal-tab-navigation-height: 40px;
    --mobile-sub-header-full-height: 40px;
    --mobile-header-full-height: 89px;
    --dynamic-header: 104px;
    --window-height: 932px;

    /* --- REPLACING OLD COLORS WITH ORANGE THEME --- */
    
    /* Hero/Primary -> Orange */
    --hero-hover: 255, 140, 0;
    --hero-sc: 255, 255, 255;
    --hero: 242, 95, 0; 

    /* Brand -> Orange */
    --brand-hover: 255, 140, 0;
    --brand-sc: 255, 255, 255;
    --brand: 242, 95, 0;

    /* Secondary -> Dark Blue/Grey */
    --secondary-hover: 60, 70, 80;
    --secondary-sc: 255, 255, 255;
    --secondary: 31, 42, 52; 

    /* Accent -> Orange */
    --accent-hover: 255, 140, 0;
    --accent-sc: 255, 255, 255;
    --accent: 242, 95, 0;

    /* Other Colors */
    --oc-1-hover: 242, 95, 0;
    --oc-1-sc: 255, 255, 255;
    --oc-1: 242, 95, 0;

    --oc-2-hover: 229, 229, 229;
    --oc-2-sc: 0, 0, 0;
    --oc-2: 255, 255, 255;

    --oc-3-hover: 255, 80, 80;
    --oc-3-sc: 255, 255, 255;
    --oc-3: 220, 53, 69; /* Red for danger */

    /* Up/Down Colors */
    --odd-up-hover: 16, 153, 35;
    --odd-up-sc: 255, 255, 255;
    --odd-up: 46, 191, 79; /* Green for Success */

    --odd-down-hover: 255, 102, 118;
    --odd-down-sc: 255, 255, 255;
    --odd-down: 220, 53, 69;

    /* Surfaces (Backgrounds) - Betsin Dark Mode */
    --b-hover: 30, 35, 45;
    --b-sc: 255, 255, 255;
    --b: 18, 20, 25; /* #121419 Main BG */

    --header-hover: 30, 35, 45;
    --header-sc: 255, 255, 255;
    --header: 23, 28, 35; /* #171c23 Header BG */

    --menu-hover: 242, 95, 0;
    --menu-sc: 255, 255, 255;
    --menu: 31, 42, 52;

    --tab-navigation-hover: 242, 95, 0;
    --tab-navigation-sc: 255, 255, 255;
    --tab-navigation: 23, 28, 35;

    --static-black-hover: 25, 25, 25;
    --static-black-sc: 255, 255, 255;
    --static-black: 0, 0, 0;

    --static-white-hover: 229, 229, 229;
    --static-white-sc: 0, 0, 0;
    --static-white: 255, 255, 255;

    --border-radius: 8px; /* Betsin uses softer rectangles, not pills */
    --font-family-raw: 'Roboto', Arial, Helvetica, sans-serif;

    /* --------- Color aliases (rgb(var(--token))) ---------- */

    --color-primary: rgb(var(--hero));
    --color-primary-hover: rgb(var(--hero-hover));

    --color-on-primary: rgb(var(--hero-sc));

    --color-accent: rgb(var(--accent));
    --color-accent-hover: rgb(var(--accent-hover));
    --color-on-accent: rgb(var(--accent-sc));

    --color-success: rgb(var(--odd-up));
    --color-success-hover: rgb(var(--odd-up-hover));
    --color-on-success: rgb(var(--odd-up-sc));

    --color-danger: rgb(var(--oc-3));
    --color-danger-hover: rgb(var(--oc-3-hover));
    --color-on-danger: rgb(var(--oc-3-sc));

    --color-warning: rgb(var(--hero));
    --color-warning-hover: rgb(var(--hero-hover));
    --color-on-warning: rgb(var(--hero-sc));

    /* Background Surfaces */
    --color-surface-base: rgb(31, 42, 52); /* Card BG #1f2a34 */
    --color-surface-alt: rgb(23, 28, 35);  /* Header BG #171c23 */
    --color-surface-raised: rgb(37, 48, 59); /* Lighter Card */
    --color-surface-soft: rgba(23, 28, 35, 0.95);

    --color-black: rgb(var(--static-black));
    --color-white: rgb(var(--static-white));

    /* Page BG: Flat dark, removed radial gradient */
    --color-page-bg: rgb(18, 20, 25); 
    
    --color-border-subtle: rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(242, 95, 0, 0.5);

    --color-text: #ffffff;
    --color-text-muted: #888b93; /* Betsin muted text color */
    --color-text-soft: #6c757d;
    
    --color-link: rgb(var(--accent));
    --color-link-hover: rgb(var(--accent-hover));
    --color-focus: rgb(var(--accent));

    /* --------- Typography tokens --------------------------- */
    --font-family-base: var(--font-family-raw);

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 700; /* Betsin uses bold fonts */
    --font-weight-bold: 900;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* --------- Spacing tokens ------------------------------ */
    --space-3xs: 2px;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    --layout-gutter-x: var(--space-md);
    --layout-section-spacing-y: var(--space-2xl);
    --layout-max-width: 1320px;

    /* --------- Radius tokens (UPDATED FOR BETSIN) ---------- */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 8px; /* CHANGED: Betsin doesn't use full pills for main buttons, uses rounded rects */

    /* --------- Shadow tokens ------------------------------- */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-hard: 0 18px 40px rgba(0, 0, 0, 0.7);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.3);

    /* --------- Motion tokens ------------------------------- */
    --transition-base: 200ms ease-in-out;
    --transition-fast: 100ms ease-out;

    /* --------- Component-specific tokens ------------------- */
    --button-padding-y: 12px;
    --button-padding-x: 24px;

    --z-header: 1000;
    --z-sticky-cta: 990;
    --z-overlay: 800;
  }

  /* -------------------------------------------------------
   * 3. RESET & BASE STYLES (Mobile First)
   * ----------------------------------------------------- */

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-page-bg);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
  }

  img {
    max-width: 100%;
    height: auto;
    border-style: none;
    display: block;
  }

  a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-base);
  }

  a:hover {
    color: var(--color-link-hover);
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
    background: none;
  }

  button {
    border: none;
    padding: 0;
    cursor: pointer;
  }

  ul,
  ol {
    padding-left: var(--space-lg);
    margin: 0 0 var(--space-md);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0 0 var(--space-sm);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: #fff; /* Force white headers */
  }

  p {
    margin: 0 0 var(--space-sm);
    color: var(--color-text-muted);
  }

  table {
    border-collapse: collapse;
    width: 100%;
  }

  :focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

/* --- FIX: LINKS INSIDE TEXT (ПЕРЕЛИНКОВКА) --- */
  p a {
    color: #ffffff;             /* Белый цвет (чтобы прошел тест на контраст) */
    text-decoration: underline; /* Подчеркивание (требование Google) */
    text-underline-offset: 3px; /* Красивый отступ линии */
    font-weight: 700;           /* Жирность, чтобы заметнее было */
  }

  p a:hover {
    color: var(--color-primary); /* При наведении становится оранжевым */
    text-decoration: none;       /* Линия исчезает */
  }

  h1 {
    margin-top: var(--space-2xl);
  }


  /* -------------------------------------------------------
   * 4. LAYOUT UTILITIES
   * ----------------------------------------------------- */

  .container {
    max-width: var(--layout-max-width);
    margin-inline: auto;
    padding-inline: var(--layout-gutter-x);
  }

  .section {
    padding-block: var(--layout-section-spacing-y);
  }

  .chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-xs);
    color: var(--color-text);
    border: 1px solid var(--color-border-subtle);
  }

  /* -------------------------------------------------------
   * 5. BUTTON SYSTEM (Betsin Gradients)
   * ----------------------------------------------------- */

  .button,
  .hero-offer__cta,
  .main-offer__cta-button,
  .bonus-calculator__button,
  .sticky-cta__button,
  .game-grid__more-button,
  .game-card__button,
  .bonus-card-v2__cta,
  .onboarding-simulator__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding-block: var(--button-padding-y);
    padding-inline: var(--button-padding-x);
    border-radius: var(--radius-md); /* Betsin style: 8px */
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-base);
    text-transform: uppercase; /* Betsin style */
  }

  .button--primary,
  .hero-offer__cta,
  .main-offer__cta-button,
  .bonus-calculator__button,
  .sticky-cta__button,
  .game-grid__more-button,
  .bonus-card-v2__cta,
  .onboarding-simulator__button,
  .game-card__button.button--primary {
    background: linear-gradient(180deg, #F99F00 0%, #F25F00 100%); /* Betsin Orange Gradient */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(242, 95, 0, 0.3);
    border: none;
  }

  .button--primary:hover,
  .hero-offer__cta:hover,
  .main-offer__cta-button:hover,
  .bonus-calculator__button:hover,
  .sticky-cta__button:hover,
  .game-grid__more-button:hover,
  .bonus-card-v2__cta:hover,
  .onboarding-simulator__button:hover,
  .game-card__button.button--primary:hover {
    background: linear-gradient(180deg, #ffad33 0%, #ff7700 100%); /* Lighter on hover */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 95, 0, 0.5);
  }

  .button--secondary,
  .game-card__button.button--secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .button--secondary:hover,
  .game-card__button.button--secondary:hover {
    background-color: rgba(242, 95, 0, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .button:disabled,
  .button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    background: #555;
  }

  .main-offer__cta-button {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    white-space: normal;
    text-align: center;
    padding-block: 14px;
  }

/* -------------------------------------------------------
   * 6. SITE HEADER (Sticky + Burger Menu)
   * ----------------------------------------------------- */

  .main-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-surface-alt); /* #171c23 */
    box-shadow: var(--shadow-header);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .main-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-sm);
    gap: var(--space-sm);
    
    /* --- FIX: COMPACT WIDTH --- */
    width: 100%;
    max-width: 1500px;    /* Золотая середина: шире стандарта, но не во весь экран */
    margin-inline: auto;  /* Центровка всего блока */
    padding-inline: 24px;
  }

  .main-header__logo img {
    height: 40px; /* Slightly bigger */
  }

  .main-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .main-nav {
    /* mobile: off-canvas menu */
    position: fixed;
    inset: var(--mobile-header-full-height) 0 0;
    background: var(--color-surface-base);
    padding: var(--space-lg) var(--layout-gutter-x);
    border-top: 1px solid var(--color-border-subtle);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .main-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .main-nav__link {
    display: block;
    padding-block: var(--space-2xs);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-transform: uppercase;
    font-weight: 700;
    
    /* --- FIX: NO WRAP --- */
    white-space: nowrap; /* Держим текст в одну строку */
  }

  .main-nav__link:hover {
    color: var(--color-primary);
  }

  .main-header__burger {
    position: relative;
    width: 40px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--color-border-subtle);
  }

  .main-header__burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background-color: #fff;
  }

  .main-header__burger:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  body.mobile-menu-open .main-header__burger span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  body.mobile-menu-open .main-header__burger span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .main-header__burger span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  /* -------------------------------------------------------
   * 7. SITE FOOTER
   * ----------------------------------------------------- */

  .main-footer {
    background: #0d0f12; /* Darker than body */
    border-top: 1px solid var(--color-border-subtle);
    margin-top: var(--space-2xl);
  }

  .main-footer > .container {
    padding-block: var(--space-xl);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .footer-column__logo img {
    height: 36px;
  }

  .footer-column__warning {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
  }

  .footer-column__trust-seals {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
  }
  
  .footer-column__trust-seals img {
      filter: grayscale(100%);
      opacity: 0.6;
  }

  .footer-column__title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    font-weight: 700;
  }

  .footer-column__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .footer-column__list a {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
  }

  .footer-column__list a:hover {
    color: var(--color-primary);
  }

  .footer-column__payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .footer-column__payment-logos img {
    height: 24px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
  }
  .footer-column__payment-logos img:hover {
      filter: grayscale(0);
      opacity: 1;
  }

  .main-footer__copyright {
    border-top: 1px solid var(--color-border-subtle);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding-block: var(--space-md);
    background: #000;
    text-align: center;
  }

  /* -------------------------------------------------------
   * 8. GENERIC CARD SHELL
   * ----------------------------------------------------- */

  .card {
    background: var(--color-surface-base); /* #1f2a34 */
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: none;
    box-shadow: var(--shadow-soft);
  }

  /* -------------------------------------------------------
   * 9. COMPONENTS
   * ----------------------------------------------------- */

  /* 9.1 ExpertRatingCard */
  .expert-rating-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: none;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: var(--space-md);
  }

  .expert-rating-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 15px;
  }

  .expert-rating-card__summary {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .expert-rating-card__score {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary); /* Orange */
  }

  .expert-rating-card__stars {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
  }

  .expert-rating-card__breakdown {
    display: grid;
    gap: var(--space-xs);
  }

  .rating-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) auto;
    align-items: center;
    column-gap: var(--space-xs);
    row-gap: 4px;
    font-size: var(--font-size-xs);
  }

  .rating-item__label {
    color: #fff;
  }

  .rating-item__progress-bar {
    position: relative;
    height: 8px;
    border-radius: var(--radius-pill);
    background: #000;
    overflow: hidden;
  }

  .rating-item__progress {
    height: 100%;
    border-radius: inherit;
    background: var(--betsin-orange-gradient);
  }

  .rating-item__value {
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-weight: 700;
  }

  /* 9.2 AuthorBox */
  .author-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    box-shadow: var(--shadow-soft);
  }

  .author-box__avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--color-primary);
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .author-box__avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      display: block;
  }

  .author-box__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
  }

  /* 9.3 LicenseInfo */
  .license-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    border: 1px solid var(--color-border-subtle);
  }

  .license-info__icon {
    font-size: var(--font-size-sm);
    color: var(--color-success);
  }

  /* 9.4 ProsCons */
  .pros-cons {
    display: grid;
    gap: var(--space-md);
    background: var(--color-surface-base);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: none;
  }

  .pros-cons__column {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
  }

  .pros-cons__column--pros {
    border-left: 3px solid var(--color-success);
  }

  .pros-cons__column--cons {
    border-left: 3px solid var(--color-danger);
  }

  .pros-cons__title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-xs);
    font-weight: 700;
  }

  .pros-cons__item {
    margin-bottom: 6px;
    color: var(--color-text-muted);
  }

  /* 9.5 ResponsibleGamingBlock */
  .responsible-gaming-block {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface-base);
    border: 1px dashed var(--color-border-subtle);
    font-size: var(--font-size-sm);
  }

  .responsible-gaming-block__title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-xs);
  }

  .responsible-gaming-block__text {
    color: var(--color-text-muted);
  }

  /* 9.6 SecurityAndFairness */
  .security-fairness {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface-base);
    border: none;
  }

  .security-fairness__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
  }

  .security-fairness__icon {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
  }

  .security-fairness__text {
    color: var(--color-text-muted);
  }

  /* 9.7 AwardsAndRecognition */
  .awards-recognition {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .awards-recognition__title {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-md);
    color: #fff;
  }

  .awards-recognition__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }

  .award-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
  }

  .award-item__logo {
    max-height: 40px;
    margin-inline: auto;
    filter: grayscale(100%);
  }
  .award-item:hover .award-item__logo {
      filter: grayscale(0);
  }

  /* 9.8 MainBrandOffer */
  .main-offer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    background: var(--color-surface-base);
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-medium);
    display: grid;
    gap: var(--space-sm);
  }

  .main-offer__logo {
    width: 120px;
    margin-inline: auto;
  }

  .main-offer__title {
    font-size: var(--font-size-xl);
    color: #fff;
  }

  .main-offer__condition {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .main-offer__promo-code {
    font-size: var(--font-size-md);
    color: var(--color-primary);
    background: #000;
    padding: 8px;
    border-radius: 4px;
    border: 1px dashed var(--color-primary);
  }

  /* 9.9 RegistrationSteps */
  .reg-steps {
    display: grid;
    gap: var(--space-sm);
  }

  .reg-steps__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-surface-base);
    border: 1px solid var(--color-border-subtle);
  }

  .reg-steps__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    background: var(--color-primary);
    color: #fff;
  }

  .reg-steps__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: #fff;
  }

  .reg-steps__description {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
  }

  /* 9.10 QuickDeposit */
  .quick-deposit {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .quick-deposit__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    color: #fff;
  }

  .quick-deposit__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
  }

  .quick-deposit__logo {
    height: 30px;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
  }

  /* 9.11 AppDownloadBlock */
  .app-download {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: 1px solid var(--color-border-subtle);
  }

  .app-download__image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
  }

  .app-download__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
  }

  .app-download__title {
    font-size: var(--font-size-lg);
    color: #fff;
  }

  .app-download__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .app-download__button img {
    height: 36px;
  }

  /* 9.12 StickyCTA */
  .sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-sticky-cta);
    padding: var(--space-sm) var(--layout-gutter-x);
    background: var(--color-surface-base);
    border-top: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .sticky-cta__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--font-size-xs);
    color: #fff;
  }

  .sticky-cta__brand {
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-primary);
  }

  .sticky-cta__offer {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .sticky-cta__button {
    padding-inline: 16px;
  }

  /* 9.13 Data Tables */
  .data-table-container {
    margin-block: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    overflow: hidden;
  }

  .data-table-container__title {
    padding: var(--space-md);
    font-size: var(--font-size-md);
    border-bottom: 1px solid var(--color-border-subtle);
    background: var(--color-surface-raised);
    color: #fff;
  }

  .data-table-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  .data-table {
    width: 100%;
    font-size: var(--font-size-sm);
  }

  .data-table thead {
    background: rgba(0,0,0,0.3);
  }

  .data-table th,
  .data-table td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
  }

  .data-table th {
    font-weight: var(--font-weight-bold);
    color: #fff;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .data-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
  }

  .data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
  }

  .data-table td[data-label]::before {
    content: attr(data-label) ": ";
    display: inline-block;
    font-weight: var(--font-weight-bold);
    color: #fff;
    margin-right: 4px;
  }

  .promo-code {
    padding: 4px 8px;
    border-radius: 4px;
    background: #000;
    color: var(--color-primary);
    font-weight: bold;
    border: 1px dashed var(--color-primary);
  }

  .comparison-table .is-highlighted {
    background: rgba(242, 95, 0, 0.1);
    color: #fff;
  }

  /* 9.14 SlotDataSheet */
  .data-sheet {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .data-sheet__title {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-md);
    color: #fff;
  }

  .data-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .data-sheet__item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
  }

  .data-sheet__key {
    color: var(--color-text-muted);
  }

  .data-sheet__value {
    font-weight: var(--font-weight-bold);
    color: #fff;
  }

  /* 9.15 GameProviderGrid */
  .provider-grid {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .provider-grid__title {
    margin-bottom: var(--space-sm);
    color: #fff;
  }

  .provider-grid__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
  }

  .provider-grid__logo-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
  }

  .provider-grid__logo-item img {
    max-height: 30px;
    max-width: 100%;
  }

  /* 9.16 FAQAccordion */
  .faq-accordion {
    margin-block: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .faq-accordion__title {
    margin-bottom: var(--space-sm);
    color: #fff;
  }

  .faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
  }

  .faq-item + .faq-item {
    margin-top: var(--space-xs);
  }

  .faq-item__question {
    width: 100%;
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    font-weight: 700;
    text-align: left;
    color: #fff;
  }

  .faq-item__icon {
    font-size: var(--font-size-md);
    color: var(--color-primary);
    transition: transform var(--transition-fast);
  }

  .faq-item__answer {
    max-height: 0;
    overflow: hidden;
    padding-inline: var(--space-sm);
    transition: max-height 200ms ease-out, padding-block 200ms ease-out;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

  .faq-item.is-open {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.5);
  }

  .faq-item.is-open .faq-item__answer { 
    padding-block: var(--space-xs) var(--space-sm);
    max-height: 500px;
  }

  .faq-item.is-open .faq-item__icon { 
    transform: rotate(45deg);
  }

  /* 9.17 InteractiveBonusCalculator */
  .bonus-calculator {
    margin-block: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    display: grid;
    gap: var(--space-md);
  }

  .form-group input[type="number"] {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    padding: 12px;
    background: #121419;
    color: #fff;
    width: 100%;
  }

  .bonus-calculator__result {
    font-size: var(--font-size-md);
    color: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: #000;
    text-align: center;
  }

  #wagerAmount {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    font-size: 1.2em;
  }

  /* 9.18 TableOfContents */
  .toc {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    font-size: var(--font-size-sm);
  }

  .toc__title {
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-md);
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
  }

  .toc__item a {
    color: var(--color-text-muted);
    text-decoration: underline;
  }

  .toc__item a:hover {
    color: var(--color-primary);
  }

  /* 9.19 VideoEmbed */
  .video-embed__wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: #000;
  }

  .video-embed__caption {
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
  }

  /* 9.20 EvidenceBox */
  .evidence-box {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: 1px solid var(--color-border-subtle);
    display: grid;
    gap: var(--space-sm);
  }

  .evidence-box__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    color: #fff;
  }

  /* 9.21 UpdateBanner */
  .update-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border-subtle);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
  }

  .update-banner__date {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
  }

  /* 9.22 Checklist */
  .checklist {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    font-size: var(--font-size-sm);
  }

  .checklist__item--valid {
    color: var(--color-success);
  }

  .checklist__item--invalid {
    color: var(--color-danger);
  }

  /* 9.23 PaymentSpeedMeter */
  .speed-meter {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
  }

  .speed-meter__bar {
    height: 10px;
    background: #000;
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: var(--space-xs);
  }

  .speed-meter__progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), var(--color-primary), var(--color-danger));
  }

  /* 9.24 HeroOffer (Reskinned) */
  .hero-offer {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-lg);
    /* Placeholder dark background */
    background: var(--color-surface-base);
    border: none;
    color: #fff;
    text-align: left;
    margin-bottom: var(--space-2xl);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Add an overlay */
  .hero-offer::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
      z-index: 1;
  }

  .hero-offer__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
  }

  .hero-offer__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
  }

  .hero-offer__subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
  }

  .hero-offer__main-offer {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--color-primary); /* Orange */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }

  .hero-offer__cta {
    width: auto;
    min-width: 200px;
    font-size: 18px;
    padding: 16px 32px;
  }

  .hero-offer__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-offer__feature {
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    font-size: 13px;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.1);
  }

  /* 9.25 OnboardingSimulator */
  .onboarding-simulator {
    margin-block: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border: none;
    display: grid;
    gap: var(--space-sm);
  }

  .onboarding-simulator__input {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    background: #121419;
    color: #fff;
  }

  /* 9.26 PaymentLimitsAccordion */
  .limits-accordion {
    background: var(--color-surface-base);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
  }

  .limits-item {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    overflow: hidden;
  }

  .limits-item__question {
    width: 100%;
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    text-align: left;
    color: #fff;
    font-weight: 700;
  }

  .limits-item__icon {
    color: var(--color-primary);
  }

  .limits-item--open {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.5);
  }

  /* 9.27 GameGrid */
  .game-grid__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
  }
  .game-card:hover {
      transform: translateY(-5px);
  }

  .game-card__image {
    width: 100%;
    aspect-ratio: 3/4; /* Portrait ratio for slots */
    object-fit: cover;
  }

  .game-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity var(--transition-base);
  }

  .game-card:hover .game-card__overlay {
    opacity: 1;
  }
  
  .game-card__title {
      color: #fff;
      font-weight: bold;
      text-align: center;
      padding: 0 10px;
  }

  /* 9.28 BonusGrid (New Style) */
  .bonus-grid__container {
    display: grid;
    gap: 20px;
  }

  .bonus-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface-base); /* Dark Card */
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 20px;
  }
  
  /* Orange Top Border */
  .bonus-card-v2::after {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 4px;
      background: linear-gradient(90deg, #F99F00, #F25F00);
  }

  .bonus-card-v2__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
  }

  .bonus-card-v2__offer {
    font-size: 28px;
    color: var(--color-primary); /* Orange */
    margin-bottom: 20px;
    font-weight: 900;
  }

  .bonus-card-v2__cta {
    width: 100%;
    margin-top: auto;
  }

  .bonus-card-v2__visual {
    display: none; /* Hide visual on mobile to save space, or adjust */
  }

  /* 9.29 GridContainer */
  .grid-container {
    display: grid;
    gap: var(--space-md);
  }
  
  /* 9.30 FeaturedSection */
  .featured-section {
    padding-block: var(--layout-section-spacing-y);
  }
  .featured-section--highlight {
      background: #1f2a34;
  }

  /* 9.31 Testimonial */
  .testimonial {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-base);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
  }

  /* 9.32 Callout */
  .callout {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    background: rgba(0, 0, 0, 0.3);
    font-size: var(--font-size-sm);
  }
  
  .callout--warning {
      border-left: 4px solid var(--color-primary);
  }

  /* -------------------------------------------------------
   * 10. RESPONSIVE BREAKPOINTS
   * ----------------------------------------------------- */

  @media (min-width: 640px) {
    .expert-rating-card {
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
      align-items: center;
    }
    .pros-cons {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reg-steps {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .quick-deposit__grid {
      gap: var(--space-md);
    }
    .provider-grid__logos {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .game-grid__container {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bonus-grid__container {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .app-download {
      padding-inline: var(--space-lg);
    }
    .main-footer > .container {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 960px) {
    /* Header desktop layout */
    .main-header > .container {
      padding-block: 10px;
    }

    .main-header__burger {
      display: none;
    }

    .main-nav {
      position: static;
      inset: auto;
      background: transparent;
      padding: 0;
      opacity: 1 !important;
      visibility: visible !important;
      border-top: none;
      transform: none;
    }

    .main-nav__list {
      flex-direction: row;
      gap: 24px;
    }

    .main-nav__link {
      font-size: 14px;
      padding: 10px 0;
    }
    
    /* Hover underline effect for desktop nav */
    .main-nav__link::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.3s;
    }
    .main-nav__link:hover::after {
        width: 100%;
    }

    /* Layout / sections */
    .hero-offer {
      min-height: 450px;
    }

    .app-download {
      max-width: 640px;
    }

    .bonus-card-v2 {
      flex-direction: row; /* Horizontal on desktop */
      align-items: center;
      gap: 20px;
    }
    .bonus-card-v2__cta {
        width: auto;
        margin-top: 0;
    }

    .game-grid__container {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .main-footer > .container {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .sticky-cta {
      display: none; /* Hide on desktop */
    }
  }

/* -------------------------------------------------------
 * 11. DROPDOWNS & EXTRAS (Preserved)
 * ----------------------------------------------------- */

.main-nav__item.has-dropdown {
  position: relative;
}

.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 220px;
  padding: var(--space-xs);
  margin: 0;
  list-style: none;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

@media (min-width: 960px) {
  .main-nav__item.has-dropdown:hover > .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.main-nav__dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.main-nav__dropdown a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color var(--transition-fast);
  color: #fff;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 150px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
}

.lang-switcher:hover .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
}

/* Grid Fixes */
.grid-container--cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .grid-container--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- HERO IMAGE FIXES --- */

/* 1. Базовый стиль (Mobile First) */
.hero-offer {
  /* Меняем flex на grid для лучшего контроля колонок */
  display: grid;
  grid-template-columns: 100%; /* Одна колонка на мобильном */
  gap: var(--space-xl); /* Отступ между текстом и картинкой */
  
  /* Убираем жесткое выравнивание, чтобы контент не плющило */
  justify-content: start;
  align-items: center;
  
  /* Убедись, что z-index позволяет кликать по кнопкам поверх оверлея */
  position: relative;
  z-index: 1;
}

/* Контейнер для картинки */
.hero-offer__visual {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Анимация появления (опционально, для красоты) */
  animation: fadeInUp 0.8s ease-out;
}

/* Сама картинка */
.hero-offer__visual img {
  width: 100%;
  max-width: 500px; /* Ограничиваем размер на мобилке, чтобы не была гигантской */
  height: auto;
  object-fit: contain; /* Важно: чтобы 3D объект не обрезался */
  filter: drop-shadow(0 10px 30px rgba(242, 95, 0, 0.2)); /* Оранжевая тень под цвет бренда */
}

/* 2. Desktop Стиль (Встает сбоку) */
@media (min-width: 960px) {
  .hero-offer {
    /* Разбиваем на 2 колонки: Текст (1fr) и Картинка (1fr) */
    grid-template-columns: 1fr 1fr;
    text-align: left; /* Возвращаем текст влево, если он был по центру */
    padding-inline: var(--space-2xl); /* Чуть больше воздуха по бокам */
    min-height: 550px; /* Высота для десктопа */
  }

  .hero-offer__content {
    /* Убираем max-width ограничения, чтобы текст занял свою колонку */
    max-width: 100%; 
    padding-right: var(--space-lg); /* Отступ от картинки */
    order: 1; /* Текст слева */
  }

  .hero-offer__visual {
    order: 2; /* Картинка справа */
    justify-content: flex-end; /* Прижимаем картинку вправо */
  }
  
  .hero-offer__visual img {
    max-width: 100%; /* На десктопе пусть занимает все доступное место в колонке */
    transform: scale(1.1); /* Небольшой зум для эпичности */
  }
}

/* Анимация */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


  /* --- CUSTOM OVERRIDES FOR "BETSIN" LOOK --- */
  
  /* Делаем сетку более плотной для карточек */
  .bonus-grid__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  @media (min-width: 768px) {
    .bonus-grid__container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Стилизация самой карточки под "Title Orange / Text Calm" */
  .bonus-card-v2 {
    background: var(--color-surface-base); /* Темный фон #1f2a34 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--color-primary); /* Оранжевая шапка */
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Чтобы карточки были одной высоты */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .bonus-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-primary);
  }

  /* ЗАГОЛОВОК: Крупный и Оранжевый */
  .bonus-card-v2__title {
    color: var(--color-primary) !important; /* #F25F00 */
    font-size: 1.5rem; /* Крупный размер */
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  /* ТЕГИ: Аккуратные чипсы сверху */
  .bonus-card-v2__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .bonus-card-v2__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* ОПИСАНИЕ: Спокойный текст */
  .bonus-card-v2__offer {
    color: var(--color-text-muted) !important; /* Серый #888b93 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
  }
  
  /* Выделение важных цифр внутри описания белым */
  .bonus-card-v2__offer strong {
    color: #fff;
    font-weight: 700;
  }

  /* КНОПКА: На всю ширину снизу */
  .bonus-card-v2__cta {
    width: 100%;
    margin-top: auto;
    font-weight: 800;
    letter-spacing: 0.5px;
  }
/* =========================================
   FIX 1: LANGUAGE SWITCHER (ПОД ТВОЙ PHP)
   ========================================= */

/* Контейнер */
.lang-switcher {
    position: relative;
    z-index: 1001;
    display: inline-block;
}

/* Кнопка текущего языка */
.lang-switcher__current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}

.lang-switcher__current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

/* Флаги (у тебя это эмодзи в PHP, поэтому ставим размер шрифта) */
.lang-switcher__flag {
    font-size: 18px;
    line-height: 1;
}

/* Выпадающее меню */
.lang-switcher__dropdown {
    position: absolute;
    top: 100%; /* Ровно под кнопкой */
    right: 0;
    min-width: 140px;
    background: var(--color-surface-base); /* Твой темный фон */
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin-top: 10px; /* Отступ от кнопки */
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    /* Скрытие */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1002;
}

/* === ГЛАВНЫЙ ФИКС: НЕВИДИМЫЙ МОСТ === 
   Заполняет пустоту (margin-top: 10px) между кнопкой и меню.
   Теперь мышка не теряет фокус. */
.lang-switcher__dropdown::before {
    content: '';
    position: absolute;
    top: -20px; /* Тянется вверх до кнопки */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent; 
}

/* Показ при наведении на ВЕСЬ блок .lang-switcher */
.lang-switcher:hover .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ссылки внутри */
.lang-switcher__dropdown li {
    padding: 0;
    margin: 0;
    display: block;
}

.lang-switcher__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #fff; /* Белый текст */
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.lang-switcher__dropdown a:hover {
    background: rgba(242, 95, 0, 0.1); /* Легкий оранжевый фон */
    color: var(--color-primary); /* Оранжевый текст */
}


/* =========================================
   FIX 2: МОБИЛЬНОЕ МЕНЮ (АККОРДЕОН)
   ========================================= */

@media (max-width: 960px) {

    /* Делаем меню скроллящимся, если оно длинное */
    .main-nav {
        overflow-y: auto; 
        max-height: calc(100vh - 90px);
        padding-bottom: 80px;
    }

    /* Сбрасываем "летающее" состояние выпадающих списков */
    .main-nav__dropdown {
        position: static !important; /* Встраивается в поток */
        box-shadow: none !important;
        border: none !important;
        background: rgba(0, 0, 0, 0.2) !important; /* Чуть темнее */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Скрыто по умолчанию, открывается JS-ом */
        display: none; 
        padding-left: 20px; /* Отступ слева (лесенка) */
        margin-top: 5px;
        min-width: 100%;
    }

    /* Класс открытия (будет добавляться JS) */
    .main-nav__item.is-active .main-nav__dropdown {
        display: block;
        animation: slideDown 0.3s ease;
    }

    /* Плюсик/Минусик справа от ссылки */
    .main-nav__item.has-dropdown > .main-nav__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav__item.has-dropdown > .main-nav__link::after {
        content: '+'; 
        font-size: 20px;
        color: var(--color-primary);
        font-weight: bold;
        transition: transform 0.2s;
    }

    /* Когда открыто - меняем на минус (или поворачиваем) */
    .main-nav__item.is-active > .main-nav__link::after {
        content: '−'; /* Знак минус */
        color: #fff;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MOBILE HEADER FIX (ANTI-SQUASH)
   ========================================= */

@media (max-width: 960px) {
    
    /* 1. ЛОГОТИП: Запрещаем сплющивание */
    .main-header__logo {
        flex-shrink: 0; /* Самое важное: запрет на сжатие */
        max-width: 100px; /* Ограничиваем ширину, чтобы не был гигантским */
        margin-right: auto; /* Прижимаем лого влево, остальное вправо */
    }

    .main-header__logo img {
        height: 32px; /* Чуть меньше высота для мобилки */
        width: auto;  /* Авто-ширина сохраняет пропорции */
        object-fit: contain;
    }

    /* 2. КОНТЕЙНЕР КНОПОК: Уменьшаем зазоры */
    .main-header__actions {
        gap: 6px; /* Было var(--space-sm), делаем теснее */
        flex-shrink: 1; /* Разрешаем этому блоку сжиматься, если что */
        flex-wrap: nowrap; /* Запрещаем перенос строк */
    }

    /* 3. КНОПКИ (Giriş / Kayıt): Делаем компактнее */
    .main-header__actions .button {
        padding: 0 10px; /* Убираем жирные отступы */
        height: 32px;    /* Фиксируем высоту под логотип */
        font-size: 11px; /* Уменьшаем шрифт (было 14px) */
        line-height: 32px; /* Центровка текста */
        white-space: nowrap; /* Текст в одну строку */
    }

    /* 4. ЯЗЫКОВОЙ СВИТЧЕР: Тоже уменьшаем */
    .lang-switcher__current {
        padding: 0 8px;
        height: 32px;
        font-size: 11px;
        gap: 4px;
    }
    
    /* Уменьшаем флаг внутри свитчера */
    .lang-flag {
        width: 16px; 
    }

    /* 5. БУРГЕР: Подгоняем под высоту кнопок */
    .main-header__burger {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    /* Тонкая настройка линий бургера */
    .main-header__burger span {
        width: 16px;
        height: 2px;
        margin-bottom: 3px; /* Чуть плотнее линии */
    }
}

/* Для совсем мелких экранов (iPhone SE и т.д.) убираем текст кнопок, если не лезет */
@media (max-width: 360px) {
    .main-header__actions .button {
        padding: 0 8px;
        font-size: 10px;
    }
    .lang-switcher__current span {
        display: none; /* Скрываем текст "TR", оставляем только флаг */
    }
}

/* =========================================
   FIX: BURGER ICON CENTER & CROSS
   ========================================= */

@media (max-width: 960px) {

    .main-header__burger {
        /* Фиксируем размер */
        width: 32px;
        height: 32px;
        
        /* Убираем старые отступы, используем Flex для идеального центра */
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Расстояние между линиями */
        gap: 4px; 
        
        /* Важно: разрешаем выходить за границы, если вдруг что */
        overflow: visible;
    }
    
    .main-header__burger span {
        /* Линии делаем чуть короче, чтобы крестик не вылезал за рамки */
        width: 16px; 
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        
        /* Сбрасываем старые марджины, так как у нас теперь gap */
        margin: 0 !important;
        
        /* Для плавной анимации */
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
        position: relative;
    }

    /* --- СОСТОЯНИЕ КРЕСТИКА (X) --- */
    
    /* Верхняя палочка: опускается в центр и поворачивается */
    body.mobile-menu-open .main-header__burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    /* Средняя палочка: исчезает */
    body.mobile-menu-open .main-header__burger span:nth-child(2) {
        opacity: 0;
        transform: scale(0); /* Доп. страховка, чтобы не мешала */
    }

    /* Нижняя палочка: поднимается в центр и поворачивается */
    body.mobile-menu-open .main-header__burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ==========================================================================
   FIX PACK 2: RATING BARS & PROVIDER CHIPS
   ========================================================================== */

/* 1. ИСПРАВЛЕНИЕ РЕЙТИНГА (Чтобы полоски стали видны) */
.rating-item__progress-bar {
    /* Меняем черный фон на полупрозрачный белый, чтобы было видно трек */
    background: rgba(255, 255, 255, 0.15) !important;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%; /* На всякий случай */
}

.rating-item__progress {
    /* Убеждаемся, что сама полоска заполнения оранжевая */
    background: var(--color-primary) !important;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(242, 95, 0, 0.5); /* Добавляем свечение */
}

/* 2. ПРОВАЙДЕРЫ КАК ПЛАШКИ (Вместо простого текста) */

/* Добавь класс .provider-chip-grid к контейнеру с провайдерами в HTML, 
   или используй эти стили для текущего контейнера */

.provider-list-container {
    display: grid;
    /* На десктопе 4 колонки, на мобилке 2 */
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .provider-list-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Стиль для каждого элемента (Провайдера) */
.provider-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Вид кнопки */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    
    /* Текст */
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    
    /* Красота */
    transition: all 0.2s ease;
}

/* Эффект при наведении (даже если не ссылка, приятно глазу) */
.provider-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}