:root {
  --bg: #141415;
  --bg-2: #1a1a1b;
  --card: #1c1c1e;
  --card-2: #222224;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f0f2f5;
  --muted: #8b8f97;
  --green: #00b24b;
  --green-hover: #00c853;
  --green-press: #009a41;
  --radius: 20px;
  --radius-btn: 12px;
  --radius-sm: 14px;
  --header: 64px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Poppins", Inter, ui-sans-serif, sans-serif;
  --sticky: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: #5fe08a;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--bg);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  width: 78px;
  height: 32px;
  object-fit: contain;
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-inner > .header-auth {
  margin-left: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 8px;
  border-radius: 10px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn,
.header-auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

.btn:hover,
.header-auth a:hover {
  text-decoration: none;
}

.btn-ghost,
.header-auth .btn-login {
  background: #2a2a2c;
  color: #f0f2f5;
}

.btn-ghost:hover,
.header-auth .btn-login:hover {
  background: #333336;
  color: #fff;
}

.btn-green,
.header-auth .btn-register {
  background: var(--green);
  color: #fff;
}

.btn-green:hover,
.header-auth .btn-register:hover {
  background: var(--green-hover);
  color: #fff;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 0.95rem;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #2a2a2c;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero {
  padding: 12px 0 0;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: #0e0e10 center / cover no-repeat;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: 70% 30%;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 16, 0.92) 0%,
    rgba(14, 14, 16, 0.62) 42%,
    rgba(14, 14, 16, 0.12) 72%,
    rgba(14, 14, 16, 0.04) 100%
  );
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

h3 {
  font-size: 1.05rem;
}

.lead {
  margin: 0 0 18px;
  color: #c8ccd3;
  font-size: 1.02rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.disclosure {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7dbe1;
  font-size: 0.78rem;
  font-weight: 500;
}

.promo-wrap {
  margin-top: 14px;
  scroll-margin-top: calc(var(--header) + 12px);
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 271px;
  border-radius: var(--radius);
  color: #fff;
}

.promo-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 14, 0.86) 0%, rgba(12, 12, 14, 0.35) 58%, rgba(12, 12, 14, 0.1) 100%);
  pointer-events: none;
}

.promo-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: center;
  padding: 24px 24px 22px;
  min-height: 271px;
}

.promo-code {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 4px 0 12px;
}

.copy-btn {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--green);
  color: #fff;
  font: 600 0.88rem var(--font);
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-copied {
  background: var(--green-hover);
}

.promo-note {
  margin: 12px 0 0;
  color: #cfd3da;
  font-size: 0.9rem;
  max-width: 36ch;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.bonus-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 128px;
}

.bonus-step {
  background: rgba(12, 12, 14, 0.82);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bonus-step span:first-child {
  font-size: 0.75rem;
  color: #cfd3da;
}

.bonus-step span:nth-child(2) {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.bonus-step b {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.tile {
  position: relative;
  display: block;
  min-height: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}

.tile:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.tile img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 14, 0.86) 0%, rgba(12, 12, 14, 0.35) 58%, rgba(12, 12, 14, 0.1) 100%);
}

.tile-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 70%;
}

.tile-copy p {
  margin: 0;
  color: #cfd3da;
  font-size: 0.92rem;
}

.tile-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.section {
  padding: 36px 0;
  scroll-margin-top: calc(var(--header) + 12px);
}

.hero + .section {
  padding-top: 0;
}

.section h2 {
  margin-bottom: 8px;
}

.section > .container > .muted {
  margin-bottom: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  background: var(--card);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 16px 18px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--green);
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.prose p {
  margin: 0 0 12px;
  color: #c5c9d0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 178, 75, 0.1);
  color: #d7e8dc;
  font-size: 0.92rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 148px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.cat-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 14, 0.9) 0%, rgba(12, 12, 14, 0.62) 52%, rgba(12, 12, 14, 0.28) 100%);
  pointer-events: none;
}

.cat-card__copy {
  position: relative;
  z-index: 1;
  padding: 18px 18px 20px;
}

.cat-card:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.cat-card h3 {
  margin-bottom: 8px;
  color: #fff;
}

.cat-card p {
  margin: 0;
  color: #cfd3da;
  font-size: 0.92rem;
}

.card,
.step {
  display: block;
  background: var(--card);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 18px 18px 20px;
  color: inherit;
}

a.card:hover,
a.step:hover {
  text-decoration: none;
  color: inherit;
}

.card h3,
.step h3 {
  margin-bottom: 8px;
}

.card p,
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--green);
  color: #04170a;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
}

.games-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  color: #fff;
  min-height: 0;
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card:has(img)::after,
.game-card:has(img) .game-provider,
.game-card:has(img) .game-title {
  display: none;
}

.game-card:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.game-provider {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.game-title {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.game-aviator {
  background: linear-gradient(180deg, #c62828 0%, #8e1212 100%);
}

.game-lucky {
  background: linear-gradient(180deg, #1565c0 0%, #0d3b73 100%);
}

.game-bonanza {
  background: linear-gradient(180deg, #d81b60 0%, #8e1240 100%);
}

.game-olympus {
  background: linear-gradient(180deg, #ef6c00 0%, #8d3d00 100%);
}

.game-crash {
  background: linear-gradient(180deg, #3949ab 0%, #1a237e 100%);
}

.game-mines {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
}

.game-jet {
  background: linear-gradient(180deg, #00838f 0%, #004d56 100%);
}

.game-live {
  background: linear-gradient(180deg, #6a1b9a 0%, #4a148c 100%);
}

.faq-item {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 16px 18px;
  font: 700 1rem/1.4 var(--display);
  cursor: pointer;
}

.faq-item .faq-body {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
}

.faq-item.open .faq-body {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 28px;
  background: #101011;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 420px;
}

.footer-links a {
  color: #d5d8de;
  font-size: 0.9rem;
}

.legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #7a7e86;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.shot {
  margin: 0;
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.container.prose + .container .shot {
  margin-top: 28px;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-grid .shot img {
  object-fit: contain;
  object-position: top center;
  background: #0e0e0f;
}

.shot-wide img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 10px 14px 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.shot-portrait {
  max-width: 420px;
}

.sticky-cta {
  display: none;
}

@media (max-width: 980px) {
  .header-panel {
    position: fixed;
    inset: var(--header) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 16px 16px 18px;
    background: #1a1a1b;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    align-items: flex-start;
  }

  body.nav-open .header-panel {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    padding: 10px 8px;
  }

  .header-inner > .header-auth {
    margin-left: auto;
  }

  .header-auth a {
    height: 40px;
    padding: 0 14px;
  }

  .mobile-toggle {
    display: flex;
    margin-left: 8px;
  }

  .header-inner {
    gap: 10px;
  }

  .hero-copy {
    padding: 24px 20px;
    max-width: none;
  }

  .hero-banner,
  .hero-banner img {
    min-height: 460px;
  }

  .promo-card__inner,
  .tiles,
  .stats,
  .grid-2,
  .grid-3,
  .bonus-steps,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .games-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .games-row::-webkit-scrollbar {
    display: none;
  }

  .game-card {
    flex: 0 0 132px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: var(--sticky);
  }

  .hero-banner,
  .hero-banner img {
    min-height: 520px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .promo-card,
  .promo-card__inner {
    min-height: 0;
  }

  .promo-card__inner,
  .tiles,
  .stats,
  .grid-2,
  .grid-3,
  .bonus-steps,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .tile img,
  .tile {
    min-height: 150px;
  }

  .tile img {
    height: 150px;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 20, 21, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .sticky-cta a {
    display: flex;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .header-auth .btn-login {
    padding: 0 12px;
  }

  .logo-img {
    width: 68px;
    height: 28px;
  }
}

.ru-chat {
  position: fixed;
  z-index: 70;
  right: 16px;
  bottom: 20px;
  font-family: var(--font);
  pointer-events: none;
}

.ru-chat__toggle {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #04170a;
  background: linear-gradient(180deg, var(--green-hover) 0%, var(--green) 55%, var(--green-press) 100%);
  box-shadow: 0 10px 28px rgba(0, 178, 75, 0.38);
}

.ru-chat__toggle:hover {
  filter: brightness(1.06);
}

.ru-chat__toggle svg {
  width: 26px;
  height: 26px;
}

.ru-chat__panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1c1c1e, #141415);
  border: 1px solid rgba(0, 178, 75, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.ru-chat.is-open .ru-chat__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ru-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ru-chat__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ru-chat__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  outline: none;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  background: #222224;
}

.ru-chat__brand strong {
  display: block;
  font-size: 0.95rem;
}

.ru-chat__brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.ru-chat__icon {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 10px;
}

.ru-chat__icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ru-chat__messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 8px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color-scheme: dark;
}

@supports not selector(::-webkit-scrollbar) {
  .ru-chat__messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 178, 75, 0.5) transparent;
  }
}

.ru-chat__messages::-webkit-scrollbar {
  width: 8px;
}

.ru-chat__messages::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}

.ru-chat__messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green-hover), var(--green));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.ru-chat__messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3ddc7a, var(--green-hover));
  background-clip: padding-box;
}

.ru-chat__messages::-webkit-scrollbar-button,
.ru-chat__messages::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

.ru-chat__empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.ru-chat__empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.ru-chat__suggests {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.ru-chat__suggest {
  appearance: none;
  border: 1px solid rgba(0, 178, 75, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
}

.ru-chat__suggest:hover {
  border-color: rgba(0, 178, 75, 0.4);
}

.ru-msg {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ru-msg--user {
  align-self: flex-end;
}

.ru-msg--assistant {
  align-self: flex-start;
}

.ru-msg__bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.ru-msg--user .ru-msg__bubble {
  background: linear-gradient(180deg, var(--green-hover) 0%, var(--green) 100%);
  color: #04170a;
  border-bottom-right-radius: 4px;
}

.ru-msg--assistant .ru-msg__bubble {
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8dce3;
  border-bottom-left-radius: 4px;
}

.ru-msg__bubble a {
  color: var(--green-hover);
}

.ru-msg--user .ru-msg__bubble a {
  color: #04170a;
}

.ru-msg__meta {
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0 6px;
}

.ru-msg--user .ru-msg__meta {
  text-align: right;
}

.ru-typing {
  display: inline-flex;
  gap: 5px;
}

.ru-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: ru-dot 1.1s ease-in-out infinite;
}

.ru-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.ru-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ru-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
  }
  40% {
    opacity: 1;
  }
}

.ru-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ru-chat__form textarea {
  width: 100%;
  resize: none;
  min-height: 44px;
  max-height: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0f10;
  color: var(--text);
  font: inherit;
}

.ru-chat__send {
  appearance: none;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  background: var(--green);
  color: #04170a;
}

.ru-chat__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .ru-chat {
    right: 12px;
    bottom: calc(var(--sticky) + 12px);
  }

  body.chat-open .sticky-cta {
    display: none;
  }

  body.chat-open .ru-chat {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  body.chat-open .ru-chat__panel {
    left: 0;
    right: 0;
    width: 100%;
    height: min(78vh, calc(100vh - 86px));
  }
}

