
:root {
  --bg-dark: #05100c;
  --bg-surface: #0a1813;
  --bg-card: #10241c;
  --bg-card-hover: #163025;
  --primary: #00e699;
  --primary-hover: #00c784;
  --primary-glow: rgba(0, 230, 153, 0.3);
  --secondary: #ffd166;
  --accent: #00b4d8;
  --gold: #ffb703;
  --text-main: #f8fafc;
  --text-sub: #a1b8ac;
  --text-muted: #627d70;
  --border-light: rgba(0, 230, 153, 0.12);
  --border-active: rgba(0, 230, 153, 0.45);
  --border-gradient: linear-gradient(135deg, rgba(0, 230, 153, 0.4), rgba(255, 209, 102, 0.4));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-main: 0 14px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(0, 230, 153, 0.28);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.section-pad {
  padding: 90px 0;
}


.page-tag {
  background: #0b1e17;
  color: var(--primary);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 16, 12, 0.96);
  border-bottom: 1px solid var(--border-light);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.brand-name b {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-sub);
  position: relative;
  padding: 8px 0;
}

.nav a:hover, .nav a.is-active {
  color: var(--primary);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  z-index: 102;
}

.burger span {
  width: 100%;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #030d08;
  box-shadow: 0 4px 20px rgba(0, 230, 153, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  background: rgba(0, 230, 153, 0.08);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}


.hm-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, rgba(5, 16, 12, 0.8) 0%, rgba(5, 16, 12, 0.95) 100%), url('/assets/img/hero_bg.webp') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.hm-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(10, 24, 19, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 153, 0.1);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
}

.hm-hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hm-hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hm-hero__sub {
  font-size: 1.25rem;
  color: var(--text-sub);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hm-hero__cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.hm-hero__note {
  font-size: 0.875rem;
  color: var(--text-muted);
}


.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.75px;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-sub);
}


.hm-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-main);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 230, 153, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 230, 153, 0.2);
}

.why-card__icon svg {
  width: 30px;
  height: 30px;
}

.why-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.why-card p {
  color: var(--text-sub);
  font-size: 0.975rem;
  line-height: 1.65;
}


.hm-games__grid, .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.game-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #08140f;
  overflow: hidden;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card__media img {
  transform: scale(1.08);
}

.game-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030d08;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  box-shadow: 0 2px 10px rgba(0, 230, 153, 0.4);
  z-index: 2;
}

.game-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.game-card__body h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.game-card__body p {
  font-size: 0.925rem;
  color: var(--text-sub);
  flex-grow: 1;
  line-height: 1.6;
}

.game-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-card__tags span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.hm-games__more {
  text-align: center;
  margin-top: 48px;
}


.hm-reviews {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.hm-reviews__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.review-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030d08;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.review-card__who h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.review-card__stars svg {
  width: 17px;
  height: 17px;
}

.review-card__stars svg.is-dim {
  color: var(--text-muted);
}

.review-card p {
  color: var(--text-sub);
  font-size: 0.975rem;
  line-height: 1.65;
}


.hm-demo__shell {
  width: 100%;
  max-width: 980px;
  height: 560px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-active);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.hm-demo__shell iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hm-demo__poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(rgba(5, 16, 12, 0.75), rgba(5, 16, 12, 0.95)), url('/assets/img/games/boxing_random.webp') center/cover no-repeat;
  padding: 30px;
  text-align: center;
}

.hm-demo__poster-note {
  font-size: 0.9rem;
  color: var(--text-sub);
  background: rgba(5, 16, 12, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.hm-demo__note {
  text-align: center;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}


.hm-community {
  background: var(--bg-surface);
  padding: 90px 0 0;
}

.hm-community__inner {
  text-align: center;
  max-width: 780px;
  margin-bottom: 70px;
}

.hm-community__inner h2 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.hm-community__inner p {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.hm-community__rp {
  background: rgba(0, 230, 153, 0.04);
  border-top: 1px solid var(--border-active);
  padding: 48px 0;
}

.hm-community__rp-box {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hm-community__rp-icon svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.hm-community__rp-text h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hm-community__rp-text p {
  color: var(--text-sub);
  font-size: 0.975rem;
  line-height: 1.65;
}


.page-hero {
  padding: 70px 0 50px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 740px;
  margin: 0 auto;
}

.article-body {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1.075rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.article-body h2 {
  color: var(--text-main);
  font-size: 1.85rem;
  margin: 44px 0 18px;
  font-weight: 800;
}

.article-body h3 {
  color: var(--text-main);
  font-size: 1.4rem;
  margin: 30px 0 14px;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 26px 26px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 28px;
  margin: 36px 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.contact-item svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.contact-item p, .contact-item a {
  color: var(--text-sub);
  font-size: 0.975rem;
}

.contact-form {
  background: var(--bg-surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-main);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.form-feedback {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 230, 153, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-top: 48px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.site-footer {
  background: #020805;
  border-top: 1px solid var(--border-light);
  padding-top: 70px;
  margin-top: auto;
  color: var(--text-sub);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

.site-footer__about p {
  margin: 18px 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer__social {
  display: flex;
  gap: 14px;
}

.site-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.site-footer__social a:hover {
  background: var(--primary);
  color: #030d08;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.site-footer__social svg {
  width: 20px;
  height: 20px;
}

.site-footer__nav h2, .site-footer__legal h2 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 22px;
  font-weight: 800;
}

.site-footer__nav ul, .site-footer__legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__nav a:hover, .site-footer__legal a:hover {
  color: var(--primary);
}


.site-footer__rg {
  padding: 34px 0;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.01);
}

.site-footer__rg-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.rg-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 900;
  font-size: 1.15rem;
}

.rg-partner {
  font-weight: 700;
  color: var(--text-sub);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.rg-partner:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.site-footer__note {
  padding: 28px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
}

.site-footer__bottom {
  background: #010403;
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}


.gmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 10, 7, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.gmodal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gmodal__panel {
  width: 100%;
  max-width: 1080px;
  height: 86vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gmodal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-light);
}

.gmodal__bar h2 {
  font-size: 1.3rem;
  color: var(--text-main);
  font-weight: 800;
}

.gmodal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gmodal__close:hover {
  background: #ef4444;
  color: #fff;
}

.gmodal__close svg {
  width: 22px;
  height: 22px;
}

.gmodal__frame {
  width: 100%;
  height: 100%;
  border: none;
}


.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 990;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(120%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.925rem;
  color: var(--text-sub);
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__acts {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}


.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 980;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030d08;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-toggle svg {
  width: 30px;
  height: 30px;
}

.chat-panel {
  position: fixed;
  bottom: 98px;
  right: 24px;
  z-index: 980;
  width: 370px;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
}

.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel__head {
  padding: 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-panel__who h2 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  font-weight: 800;
}

.chat-panel__who p {
  font-size: 0.775rem;
  color: var(--primary);
  font-weight: 700;
}

.chat-panel__close {
  color: var(--text-sub);
}

.chat-panel__close:hover {
  color: var(--text-main);
}

.chat-panel__close svg {
  width: 22px;
  height: 22px;
}

.chat-log {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.55;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030d08;
  font-weight: 700;
}

.chat-form {
  display: flex;
  padding: 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  gap: 10px;
}

.chat-form input {
  flex-grow: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-form button {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #030d08;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-form button svg {
  width: 20px;
  height: 20px;
}


.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.925rem;
  font-weight: 700;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030d08;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}


@media (max-width: 992px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 16, 12, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px 24px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 12px 24px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }

  .nav a:hover,
  .nav a.is-active {
    color: var(--primary);
    background: rgba(0, 230, 153, 0.08);
  }

  .nav a.is-active::after {
    display: none;
  }

  .hm-hero__inner {
    padding: 40px 24px;
  }

  .hm-hero h1 {
    font-size: 2.4rem;
  }

  .hm-hero__sub {
    font-size: 1.05rem;
  }

  .hm-hero__cta {
    flex-direction: column;
  }

  .hm-demo__shell {
    height: 360px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    bottom: 86px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-pad {
    padding: 60px 0;
  }

  .hm-hero h1 {
    font-size: 1.95rem;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand svg {
    width: 32px;
    height: 32px;
  }

  .hm-hero h1 {
    font-size: 1.7rem;
  }

  .game-card__body h3 {
    font-size: 1.125rem;
  }
}
