@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #D4AF37;
    --accent-color: #E63946;
    --bg-color: #1A2E3A;
    --bg-offer: #1E1E1E;
    --add-color: #06D6A0;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('../images/bg.png') var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.container {
    max-width: 1110px;
    margin: 0 auto;                                                                                                                                     
}

.header {
    padding: 48px 0;
}

.header-notice {
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: var(--primary-color);
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.header h1 {
    font-weight: 700;
    font-size: 64px;
    text-align: center;
    color: var(--secondary-color);
}

.header h2 {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: var(--primary-color);
}



.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.offer {
    background: var(--bg-offer);
    padding: 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 16px;
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.offer__left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40%;
}

.offer__img {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff;
    padding: 10px 15px;
}

.offer__img img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Для білих/світлих логотипів з папки casinos - зробити їх темними */
.offer__img img[src*="casinos/"] {
    filter: brightness(0);
}

.offer__reviews {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
}

.offer__rate {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.offer__right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60%;
}

.offer__fs {
    display: flex;
    justify-content: space-between;
}

.offer__fs p:first-child {
    font-weight: 600;
    font-size: 24px;
    color: var(--primary-color);
}

.offer__fs p:last-child {
    font-weight: 600;
    font-size: 26px;
    color: var(--accent-color);
}

.offer__bonus {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.offer__bonus p:first-child {
    font-weight: 400;
    font-size: 16px;
    color: var(--primary-color);
}

.offer__bonus p:last-child {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--secondary-color);
}

.offer__buttons {
    display: flex;
    justify-content: space-between;
}

.offer__button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 19px;
    border-radius: 60px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.offer__button:hover {
    opacity: 0.9;
}

.offer__arrow {
    background: var(--accent-color);
    width: 52px;
    height: 52px;
    padding: 12px 10px 12px 14px;
    border-radius: 100%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.offer__arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.offer__arrow:hover {
    opacity: 0.9;
}

/* footer */
.footer {
    padding: 16px;
  
    .footer__wrapper {
      display: grid;
      grid-template-columns: 3fr 2fr;
      grid-column-gap: 0px;
      grid-row-gap: 0px;
      padding: 56px 0 24px 0;
      gap: 24px;
    }
  
    .footer__disclaimer {
      grid-area: 1 / 1 / 2 / 2;
  
      h3 {
        font-weight: 500;
        font-size: 14px;
        color: var(--secondary-color);
        text-align: center;
      }
  
      p {
        font-weight: 500;
        font-size: 12px;
        line-height: 18px;
        color: var(--primary-color);
        margin-top: 16px;
      }
    }
  
    .footer__gambling {
      grid-area: 1 / 2 / 2 / 3;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
  
      h4 {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: var(--primary-color);
      }
  
      .footer__gambling-resources {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
  
        .tn-age-badge {
          display: flex;
          align-items: center;
          justify-content: center;
          min-width: 60px;
          height: 60px;
          padding: 10px;
          background-color: var(--accent-color);
          border-radius: 20px;
          color: var(--primary-color);
          font-weight: 700;
          font-size: 18px;
        }
  
        a {
          max-width: 120px;
          padding: 10px;
          background-color: rgba(255, 255, 255, 0.1);
          border-radius: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 100%;
          transition: background-color 0.3s;
  
          &:hover {
            background-color: rgba(227, 169, 19, 0.2);
          }
  
          img {
            width: 100%;
            max-height: 30px;
            height: auto;
            object-fit: contain;
          }
        }
      }
    }
  
    .footer__copyright {
      grid-area: 2 / 1 / 3 / 3;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--secondary-color);
      padding-top: 24px;
      font-weight: 500;
      font-size: 16px;
      line-height: 24px;
      color: var(--primary-color);
  
      ul {
        display: flex;
        align-items: center;
        gap: 40px;
        flex-wrap: wrap;
      }
    }
}

/* Age Verification Modal */
.agegate-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
  }
  
  .agegate-backdrop.is-visible {
    display: flex;
  }
  
  .agegate-modal {
    width: 100%;
    max-width: 560px;
    background-color: var(--secondary-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 28px 24px;
    text-align: center;
  }
  
  .agegate-title {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--bg-offer);
  }
  
  .agegate-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .agegate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .agegate-btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    transition: .3s;
    color: var(--primary-color);
  }
  
  .agegate-btn--yes {
    background: var(--add-color);
  }
  
  .agegate-btn--no {
    background: var(--accent-color);
  }
  
  .agegate-btn:hover {
    transform: translateY(-1px);
  }
  
  .agegate-error {
    margin-top: 14px;
    color: var(--pink);
    font-weight: 800;
    display: none;
  }
  
  .agegate-error.is-visible {
    display: block;
}


@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    .header-notice {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 16px;
    }

    .header h1 {
        font-size: 40px;
    }

    .header h2 {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        background-size: cover;

        .footer__wrapper {
            grid-template-columns: 1fr;
        }    

        .footer__disclaimer,
        .footer__gambling,
        .footer__copyright {
            grid-area: auto;
        }

        .footer__gambling-resources {
            justify-content: center;
        }

        .footer__copyright {
            flex-direction: column;
            gap: 30px;

            ul {
            gap: 10px;
            justify-content: center;
            }
        }
    }
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* Offer */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .offer {
        max-width: 100%;
        gap: 8px;
    }

    .offer__left {
        width: 30%;
    }

    .offer__img {
        height: 60px;
        padding: 8px 10px;
    }

    .offer__right {
        width: 70%;
    }
}