/* =============================================================
   iGaming template — styles.css
   Структура: fonts / vars / base / buttons / header / hero /
              content + float banner / footer / responsive
   ============================================================= */

/* ---------- FONTS (положить файлы в /assets/fonts/) ---------- */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- VARIABLES ---------- */
:root {
    --bg: #0b0d18;
    --bg-soft: #121529;
    --bg-card: #191d33;
    --border: rgba(255, 255, 255, .09);

    --text: #eef0f8;
    --text-muted: #a2a8c3;

    --accent: #00ff04;
    --accent-2: #00ff04;
    --accent-grad: linear-gradient(135deg, #e7ff49 0%, #00ff04 100%);
    --violet-grad: linear-gradient(135deg, #6f46ff 0%, #a02bff 100%);

    --radius: 14px;
    --radius-sm: 10px;
    --container: 1200px;
    --header-h: 78px;

    --font: 'Manrope', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .25s ease, opacity .25s ease;
}

a:hover {
    color: #fff;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #fff;
}

p {
    margin: 0 0 16px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-grad);
    color: #1a1204;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
    box-shadow: 0 8px 24px rgba(255, 138, 0, .28);
}

.btn:hover {
    color: #1a1204;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 30px rgba(255, 138, 0, .4);
}

.btn:active {
    transform: translateY(0);
}

.btn span {
    display: inline-block;
}

/* прозрачная (login) */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: none;
}

.btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .5);
    box-shadow: none;
}

.btn-lg {
    padding: 17px 40px;
    font-size: 16px;
}

/* ---------- HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    background: rgba(11, 13, 24, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header.is-scrolled {
    background: rgba(11, 13, 24, .97);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
}

@media screen and (max-width: 767px){
    .header-inner {
        justify-content: space-between;
    }
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo .logo-image {
    max-height: 70px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-inline-end: auto;
}

.header-nav-link {
    position: relative;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    white-space: nowrap;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-grad);
    transition: width .25s ease;
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
    width: 100%;
}

.header-nav-link.active {
    color: var(--accent);
}

/* кнопки внутри мобильного меню — на десктопе скрыты */
.header-nav-actions {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* burger */
.burger {
    display: none;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .28s ease, opacity .2s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero-section {
    position: relative;
    padding: 20px 0;
    background-color: var(--bg-soft);
    background-image:linear-gradient(180deg, rgb(11 13 24 / 29%) 0%, rgb(10 14 24) 100%);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

/* затемнение поверх фоновой картинки из шаблона */
.hero-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 13, 24, .75) 0%, rgba(11, 13, 24, .9) 100%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.hero-h1 {
    font-size: clamp(30px, 5vw, 54px);
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero-text {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 34px;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ---------- CONTENT + FLOAT BANNER ---------- */
.main {
    padding: 70px 0 80px;
}

.content-block {
    position: relative;
}

/* обтекаемый баннер справа */
.banner-float {
    float: right;
    width: 380px;
    max-width: 100%;
    margin: 6px 0 28px 36px;
    padding: 30px 28px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    background-image: var(--violet-grad);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
    text-align: center;
}

html[dir="rtl"] .banner-float {
    float: left;
    margin: 6px 36px 28px 0;
}

.banner-float .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
    color: #fff;
}

.banner-float .welcome-banner {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

.banner-float .welcome-banner p:last-child {
    margin-bottom: 0;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    border-radius: var(--radius-sm);
    background: var(--accent-grad);
    color: #1a1204;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    transition: transform .2s ease, filter .25s ease;
}

.join-btn:hover {
    color: #1a1204;
    transform: translateY(-2px);
    filter: brightness(1.07);
}

/* типографика текстового блока */
.content {
    font-size: 16.5px;
    color: var(--text-muted);
}

.content h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 34px 0 16px;
}

.content h3 {
    font-size: clamp(20px, 2.4vw, 24px);
    margin: 28px 0 14px;
}

.content h2:first-child,
.content h3:first-child {
    margin-top: 0;
}

.content ul,
.content ol {
    margin: 0 0 18px;
    padding-inline-start: 22px;
}

.content li {
    margin-bottom: 8px;
}

.content ul {
    list-style: none;
    padding-inline-start: 0;
}

.content ul li {
    position: relative;
    padding-inline-start: 26px;
}

.content ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 4px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-grad);
}

.content strong {
    color: #fff;
}

.content blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    border-inline-start: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text);
}

.content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 15px;
}

.content th,
.content td {
    padding: 13px 16px;
    text-align: start;
    border-bottom: 1px solid var(--border);
}

.content th {
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-weight: 700;
}

.content tr:last-child td {
    border-bottom: none;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 46px 0 34px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-logo .logo-image {
    max-height: 90px;
    width: auto;
    opacity: .9;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.footer-nav-link {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-nav-link:hover,
.footer-nav-link.active {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding-top: 28px;
}

.footer-age {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.footer-legal {
    flex: 1 1 auto;
}

.responsible-gaming {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.copyright {
    margin-bottom: 0;
    font-size: 13px;
    color: rgba(162, 168, 195, .7);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .banner-float {
        width: 330px;
        margin-inline-start: 28px;
    }

    .header-nav {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .header-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        height: calc(100vh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 22px 20px 40px;
        background: var(--bg);
        border-top: 1px solid var(--border);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    html[dir="rtl"] .header-nav {
        transform: translateX(-100%);
    }

    .header-nav.is-open {
        transform: translateX(0);
    }

    .header-nav-link {
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--border);
    }

    .header-nav-link::after {
        display: none;
    }

    .header-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 26px;
    }

    .header-nav-actions .btn {
        width: 100%;
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }

    .hero-section::before{
        background: linear-gradient(180deg, rgba(11, 13, 24, .8) 0%, rgba(11, 13, 24, .93) 100%);
    }

    .main {
        padding: 10px 0 56px;
    }

    /* баннер перестаёт обтекаться — на всю ширину */
    .banner-float,
    html[dir="rtl"] .banner-float {
        float: none;
        width: 100%;
        margin: 0 0 30px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .hero-buttons {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .banner-float {
        padding: 24px 20px 26px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}


/* --- Slots Block Styles --- */
.slots-wrapper {
  margin: 30px 0;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  align-items: start;
}
.slot-card {
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.slot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1;
}
.slot-image {
  border-radius: 6px;
  overflow: hidden;
}
.slot-image img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.slot-name {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: calc(100% - 16px);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  background: #450C88;
  color: #FFFFFF;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.slot-card:hover .slot-name{
  opacity: 1;
}
.slot-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}
@media (max-width: 600px) {
  .slots-grid {
    gap: 10px;
  }
  .slot-name {
    font-size: 12px;
  }
}


/* --- Review Block Styles --- */
#review-block {
  margin: 32px 0;
  background: #151b3a;
  border-radius: 14px;
  padding: 20px 16px 16px;
  overflow: hidden;
}
#review-block .review-block__header {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 16px;
  padding: 0 24px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}
.review-block__header span:first-child{
  padding-left: 32px;
}
.review-block__header span:nth-child(2){
  text-align: center;
}
#review-block .review-block__row {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
#review-block .review-block__row:last-child{
  margin: 0;
}
#review-block .review-block__row:hover {
  background: rgba(255, 255, 255, 0.05);
}
#review-block .review-block__row--highlighted {
  background: rgba(80, 100, 200, 0.18);
  border-color: rgba(100, 120, 220, 0.25);
}
#review-block .review-block__row--highlighted:hover {
  background: rgba(80, 100, 200, 0.24);
}
#review-block .review-block__label {
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  transform: rotate(-46deg) translate(-36px, -11px);
  height: 20px;
  padding: 0;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 20px;
  color: #fff;
}
#review-block .review-block__casino {
  display: flex;
  align-items: center;
  gap: 12px;
}
#review-block .review-block__number {
  font-weight: 700;
  font-size: 15px;
  min-width: 20px;
  color: rgba(255, 255, 255, 0.7);
}
#review-block .review-block__logo-wrapper{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 90px;
}
#review-block .review-block__logo {
  object-fit: contain;
  box-shadow: none;
  max-height: 90px;
  margin: 0;
}
#review-block .review-block__name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  flex-grow: 1;
}
#review-block .review-block__bonus {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
#review-block .review-block__bonus:has(span:nth-child(2)) span:first-child{
  color: #FFDA03;
}
#review-block .review-block__bonus strong,
#review-block .review-block__bonus b {
  color: #fff;
  font-weight: 700;
}
#review-block .review-block__code {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
#review-block .review-block__action {
  display: flex;
  justify-content: flex-end;
}
#review-block .review-block__button {
  display: inline-block;
  padding: 12px 32px;
  background: #e91e63;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
#review-block .review-block__button:hover {
  background: #d81b60;
  transform: translateY(-1px);
}
@media (max-width: 750px) and (min-width: 601px) {
  #review-block .review-block__header {
    grid-template-columns: 1fr 1fr;
  }
  #review-block .review-block__row {
    grid-template-columns: 1fr 1fr;
  }
  .review-block__action {
    grid-column-start: 1;
    grid-column-end: 3;
  }
  #review-block .review-block__button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  #review-block {
    padding: 8px;
  }
  #review-block .review-block__header {
    display: none;
  }
  #review-block .review-block__row {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
  }
  #review-block .review-block__logo-wrapper {
    height: auto;
  }
  #review-block .review-block__casino {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  #review-block .review-block__name {
    font-size: 15px;
  }
  #review-block .review-block__bonus {
    font-size: 15px;
  }
  #review-block .review-block__action {
    justify-content: center;
  }
  #review-block .review-block__button {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
  }
}


/* --- Author block --- */
.content .author-block {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
}
.content .author-block__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.content .author-block--no-bio .author-block__inner {
  align-items: center;
}
.content .author-block--no-bio .author-block__name {
  margin-bottom: 0;
}
.content .author-block__photo {
  flex-shrink: 0;
  align-self: flex-start;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}
.content .author-block--no-bio .author-block__photo {
  align-self: center;
}
.content .author-block__photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
}
.content .author-block__body {
  min-width: 0;
  flex: 1;
}
.content .author-block__name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 6px;
}
.content .author-block__bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}


/* --- FAQ block (no font-family; inherits theme) --- */
.faq-block {
  margin: 28px 0;
  max-width: 100%;
}
.faq-block__item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.faq-block__item:last-child {
  margin-bottom: 0;
}
.faq-block__summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  padding-right: 32px;
}
.faq-block__summary::-webkit-details-marker {
  display: none;
}
.faq-block__summary::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.55;
}
.faq-block__item[open] .faq-block__summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.faq-block__summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 6px;
}
.faq-block__question {
  all: unset !important;
}
.faq-block__answer {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.55;
}
.faq-block__answer > *:first-child {
  margin-top: 12px;
}


.content .post-date {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
}
.content .post-date__label {
  margin-inline-end: 0.35em;
}
.content .post-date time {
  font-weight: 500;
}
