:root {
  --bg: #151515;
  --bg-card: #202020;
  --bg-faq: #2c2c2c;
  --bg-footer: #212121;
  --border: #383838;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.7);
  --red-from: #af0b1e;
  --red-to: #c51518;
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --font-cond: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-oswald: "Oswald", Impact, sans-serif;
  --max: 1440px;
  --pad: 100px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button,
.btn {
  cursor: pointer;
  border: none;
  font: inherit;
}
/* Prevent CLS */
.card,
.benefit,
.faq-item,
.review {
  contain: content;
}
.card__img {
  aspect-ratio: 83 / 104;
}
.logo img {
  width: 105px;
  height: 23px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Header */
.header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  /* border: 1px solid #1b1b1b; */
  border-radius: 10px;
  margin: 10px auto 0;
  width: calc(100% - 120px);
  max-width: 1320px;
  width: calc(100% - var(--pad) * 2) !important;
}

.header.abolutte {
  position: absolute !important;
  width: calc(100% - var(--pad) * 2) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.logo img {
  height: 23px;
  width: auto;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a {
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  font-weight: 500;
}
.badge-18 {
  width: 28px;
  height: 27px;
}
.menu-toggle {
  display: none;
  background: none;
  width: 32px;
  height: 32px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  min-height: 420px;
  contain: layout style;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.7);
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.hero__tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(21, 21, 21, 0.4);
  backdrop-filter: blur(5px);
  border: 0.5px solid #fff;
  font-size: 14px;
}
.tag img {
  width: 20px;
  height: 20px;
}
.hero h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 60px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.3;
}

/* Section titles */
.section-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 40px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

/* Top cards */
.top {
  padding: 60px 0 80px;
}
.top__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card,
.card-fix-2026,
.mw-rankingCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(5px);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.card:hover,
.card-fix-2026:hover,
.mw-rankingCard:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 21, 24, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.card__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.card__img {
  width: 83px;
  height: 104px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.card__meta {
  flex: 1;
}
.card__score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card__score strong {
  font-size: 22px;
  font-weight: 700;
}
.card__score img {
  height: 20px;
  width: auto;
}
.card__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.btn-red {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  background: linear-gradient(to bottom, var(--red-from), var(--red-to));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-transform: capitalize;
  transition: opacity 0.2s;
}
.btn-red:hover {
  opacity: 0.9;
}

/* Why */
.why {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  min-height: 380px;
  contain: layout style;
}
.why__bg {
  position: absolute;
  inset: 0;
  background: url("../img/why.webp") center/cover no-repeat;
  will-change: auto;
}
.why__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.8);
}
.kapcsolat__bg {
  position: absolute;
  inset: 0;
  background: url("../img/contact.webp") center/cover no-repeat;
  will-change: auto;
}

.why .container {
  position: relative;
  z-index: 1;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit,
.ui-benefitBlock {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(5px);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}
.benefit:hover,
.ui-benefitBlock:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}
.benefit__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.benefit__icon {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit__icon img {
  width: 18px;
  height: 18px;
}
.benefit h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
}
.benefit p {
  font-size: 16px;
  color: var(--text-muted);
}

/* Content visibility for CWV */
.top,
.why,
.faq,
.reviews {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* FAQ */
.faq {
  padding: 60px 0;
}
.faq__list {
  max-width: 1030px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item,
.cmz-faqRow {
  background: var(--bg-faq);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.faq-item:hover,
.cmz-faqRow:hover {
  transform: translateX(6px);
  border-color: rgba(197, 21, 24, 0.35);
  background: #303030;
}
.faq-item__content {
  flex: 1;
  max-width: 800px;
}
.faq-item h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 16px;
  color: var(--text-muted);
}
.faq-item__num {
  font-family: var(--font-oswald);
  font-weight: 700;
  font-size: 34px;
  line-height: 35px;
  flex-shrink: 0;
}

@media (min-width: 1360px) {
  .rolunk-wrapper {
    display: grid;
    grid-template-columns: 25fr 36fr;
    gap: 20px;
    align-items: end;
  }
}

.kapcsolat-wrapper {
  border-radius: 20px;
  border: 1px solid #383838;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  padding: 40px;
}

.kapcsolat-wrapper-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin: 20px auto;
}

.kapcsolat-wrapper-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 576px) {
  .kapcsolat-wrapper {
    padding: 20px;
  }
}

/* Reviews */
.reviews {
  padding: 60px 0;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review,
.app-reviewTile {
  background: var(--bg-faq);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}
.review:hover,
.app-reviewTile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.review h4,
.review h3,
.reviewAuthor {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
}
.review p {
  font-size: 16px;
  color: var(--text-muted);
  flex: 1;
}
.review img {
  height: 22px;
  width: 100%;
  max-width: 134px;
}

/* Footer */
.footer {
  background: var(--bg-footer);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer__brand {
  max-width: 779px;
}
.footer__brand p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 10px 0 40px;
  line-height: 1.5;
}
.footer__badges {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.footer__badges img {
  height: 40px;
  width: auto;
}
.footer__badges a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}
.footer__badges a:hover {
  opacity: 0.85;
}
.site-footer__logo-gamcare {
  width: 135px;
  height: 39px;
}
.site-footer__logo-gambleaware {
  width: 130px;
  height: 40px;
}

/* skip link - @tom added for a11y audit 12.06 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--red-to);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* success modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-dialog h2 {
  font-family: var(--font-cond);
  font-size: 24px;
  margin-bottom: 12px;
}
.modal-dialog p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-close {
  background: linear-gradient(to bottom, var(--red-from), var(--red-to));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 140px;
}

/* live ticker - quick hack for homepage promo */
.mw-liveTicker {
  overflow: hidden;
  background: rgba(197, 21, 24, 0.15);
  border-bottom: 1px solid rgba(197, 21, 24, 0.3);
  padding: 8px 0;
}
.mw-liveTicker__track {
  display: flex;
  gap: 48px;
  animation: mw-ticker 22s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
@keyframes mw-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.footer__col h4 {
  font-family: var(--font-cond);
  font-size: 22px;
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 14px;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: #fff;
}
.footer__copy {
  text-align: center;
  font-size: 16px;
  color: #fff;
}

/* Page hero simple */
.page-hero {
  padding: 30px 0 20px;
}
.page-hero .header {
  margin-top: 0;
}
.page-content {
  padding: 40px 0 80px;
}
.page-content h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.page-content .text-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.page-content .text-block p + p {
  margin-top: 1em;
}
.page-content .text-block h2 {
  font-family: var(--font-cond);
  font-size: 22px;
  color: #fff;
  margin: 1.5em 0 0.5em;
}
.page-content .text-block a {
  color: #c51518;
  text-decoration: underline;
}

/* About stats */
.about-stats {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 42px;
  font-weight: 700;
  font-family: var(--font-cond);
}
.stat span {
  font-size: 16px;
  color: var(--text-muted);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-size: 14px;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-to);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.98);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 24px;
  font-weight: 500;
}
.mobile-nav .close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  color: #fff;
  font-size: 32px;
}

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --pad: 40px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .top__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why__grid {
    grid-template-columns: 1fr 1fr;
  }
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }
  .header {
    width: calc(100% - 32px);
    padding: 12px 16px;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .badge18-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: end;
    padding-right: 16px;
  }
  .hero {
    padding: 0 0 20px;
    min-height: auto;
  }
  .top.secton-dark {
    padding-top: 20px;
  }
  .top.secton-dark .section-title {
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 28px;
  }
  .top__grid {
    grid-template-columns: 1fr;
  }
  .why__grid {
    grid-template-columns: 1fr;
  }
  .reviews__grid {
    grid-template-columns: 1fr;
  }
  .faq-item {
    flex-direction: column;
  }
  .faq-item__num {
    align-self: flex-end;
  }
  .footer__inner {
    flex-direction: column;
    gap: 30px;
  }
  .footer__brand {
    max-width: 100%;
  }
  .page-content h1 {
    font-size: 28px;
  }
  .about-stats {
    justify-content: space-between;
  }
  .stat strong {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
  .card__img {
    width: 70px;
    height: 88px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mw-liveTicker__track {
    animation: none;
  }
}

/* ranking cards redirect - @tom 17.08 */
.hidlink {
  position: absolute;
  z-index: -5;
}
.mw-rankingCard {
  cursor: pointer;
}
.mw-rankingCard .btn-red {
  position: relative;
}

/* reviews mobile slider - reserve height to avoid CLS */
@media (max-width: 768px) {
  .reviews-slider {
    min-height: 280px;
  }
  .reviews-slider .reviews__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
  }
  .reviews-slider .reviews__grid .review {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
  }
  .reviews-slider__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    min-height: 14px;
  }
  .reviews-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
  }
  .reviews-slider__dot.is-active {
    background: var(--red-to);
  }
  .reviews-slider__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}
@media (min-width: 769px) {
  .reviews-slider__pagination {
    display: none;
  }
}
