:root {
  --bg-main: #09101d;
  --bg-main-2: #0d1527;
  --bg-surface: rgba(17, 24, 39, 0.88);
  --bg-surface-2: rgba(20, 30, 50, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-soft: #dbe7ff;
  --text-muted: #aebad6;
  --blue: #7bb4ff;
  --violet: #9180ff;
  --pink: #ff84a8;
  --brand-gradient: linear-gradient(90deg, #7bb4ff 0%, #9180ff 48%, #ff84a8 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(123, 180, 255, 0.16), rgba(255, 132, 168, 0.16));
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(123, 180, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 132, 168, 0.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(145, 128, 255, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-main-2) 100%);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  width: 100%;
  margin-bottom: 22px;
}

.site-header-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand-logo {
  width: 250px;
  height: auto;
  display: block;
}

.main-page {
  min-height: 100vh;
  padding: 24px 20px 100px;
}

.main-hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-card {
  width: min(100%, 1120px);
  padding: 32px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(18, 26, 46, 0.96), rgba(13, 20, 36, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 180, 255, 0.10), transparent 22%),
    radial-gradient(circle at 100% 30%, rgba(255, 132, 168, 0.08), transparent 20%);
  pointer-events: none;
}

.main-card > * {
  position: relative;
  z-index: 1;
}

.main-card-badge {
  margin-bottom: 18px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--brand-gradient-soft);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-chip {
  color: #f7faff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo-image {
  display: block;
  width: 246px;
  max-width: 100%;
  height: auto;
}

.room-logo-image {
  display: block;
  width: 204px;
  max-width: 100%;
  height: auto;
}

.about-modal-logo {
  display: block;
  width: 238px;
  max-width: 100%;
  height: auto;
}

.main-title {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--text-main);
}

.main-subtitle {
  margin: 0 0 28px;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-soft);
}

.main-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #eef4ff;
}

.form-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  border-radius: 16px;
  background: rgba(15, 22, 38, 0.96);
  color: #ffffff;
  transition: 0.22s ease;
}

.form-group input::placeholder {
  color: #93a0bf;
}

.form-group input:focus {
  border-color: rgba(145, 128, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(145, 128, 255, 0.16);
}

.main-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: 0.22s ease;
  font-size: 15px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(90deg, #5f7cff 0%, #7d74ff 50%, #ff6d97 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(108, 98, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  color: #dce7ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.small-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.small-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-info-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
  transition: 0.25s ease;
  min-height: 220px;
}

.home-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-info-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 180, 255, 0.18), rgba(255, 132, 168, 0.18));
  font-size: 22px;
}

.home-info-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: #ffffff;
}

.home-info-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.floating-menu {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(15, 18, 27, 0.98);
  color: #eef4ff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  transition: 0.22s ease;
}

.about-service-btn:hover {
  transform: translateY(-1px);
  background: rgba(21, 26, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

.support-service-btn {
  background: rgba(17, 21, 33, 0.98);
}

.support-service-btn:hover {
  background: rgba(24, 29, 43, 0.98);
}

.thanks-service-btn {
  background: rgba(14, 21, 32, 0.92);
  color: #d9e5ff;
}

.thanks-service-btn:hover {
  background: rgba(22, 31, 45, 0.96);
}

.about-service-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #74b4ff 0%, #8c7dff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(116, 180, 255, 0.3);
}

.support-service-icon {
  background: linear-gradient(135deg, #9180ff 0%, #ff84a8 100%);
  box-shadow: 0 2px 10px rgba(255, 132, 168, 0.28);
}

.thanks-service-icon {
  background: linear-gradient(135deg, #7bb4ff 0%, #9f8cff 100%);
}

.modal-open {
  overflow: hidden;
}

.about-modal.hidden {
  display: none;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.about-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 700px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  margin: 24px auto;
  border-radius: 24px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #f5f7ff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.about-modal.is-visible .about-modal-backdrop {
  opacity: 1;
}

.about-modal.is-visible .about-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-modal.is-hiding .about-modal-backdrop {
  opacity: 0;
}

.about-modal.is-hiding .about-modal-dialog {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.about-modal-header {
  flex-shrink: 0;
  padding: 22px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-modal-brand {
  display: inline-flex;
  align-items: center;
}

.about-modal-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.about-modal-section {
  margin-bottom: 28px;
}

.about-modal-section:last-child {
  margin-bottom: 0;
}

.about-modal-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  color: #ffffff;
}

.about-modal-card {
  padding: 18px 16px;
  border-radius: 18px;
  background: #111111;
  color: #d8deea;
  font-size: 16px;
  line-height: 1.65;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.about-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.support-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.22s ease;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  background: #161616;
}

.support-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.support-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.support-card-boosty .support-card-icon {
  background: linear-gradient(135deg, #f5a623 0%, #ffcc4d 100%);
  color: #231800;
}

.support-card-da .support-card-icon {
  background: linear-gradient(135deg, #7b8cff 0%, #ff84a8 100%);
}

.support-card-title-wrap h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #ffffff;
}

.support-card-title-wrap p {
  margin: 0;
  color: #aebad6;
  font-size: 14px;
  line-height: 1.5;
}

.support-card-action {
  font-size: 14px;
  font-weight: 800;
  color: #dfe7ff;
}

.about-modal-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 24px;
  background: #181818;
}

.about-modal-close-btn,
.about-modal-link-btn {
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: #343434;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-modal-link-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.about-modal-close-btn:hover,
.about-modal-link-btn:hover {
  background: #444444;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-1 { transition-delay: 0.04s; }
.reveal-2 { transition-delay: 0.12s; }
.reveal-3 { transition-delay: 0.22s; }
.reveal-4 { transition-delay: 0.32s; }

.right-sidebar,
.chat-messages,
.search-dropdown,
.overlay-dropdown-menu,
.overlay-dropdown-menu-episodes,
.main-card,
.about-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #495f8f #121a2c;
  scrollbar-gutter: stable both-edges;
}

.right-sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.search-dropdown::-webkit-scrollbar,
.overlay-dropdown-menu::-webkit-scrollbar,
.overlay-dropdown-menu-episodes::-webkit-scrollbar,
.main-card::-webkit-scrollbar,
.about-modal-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.right-sidebar::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.search-dropdown::-webkit-scrollbar-track,
.overlay-dropdown-menu::-webkit-scrollbar-track,
.overlay-dropdown-menu-episodes::-webkit-scrollbar-track,
.main-card::-webkit-scrollbar-track,
.about-modal-content::-webkit-scrollbar-track {
  background: #121a2c;
  border-radius: 999px;
}

.right-sidebar::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.search-dropdown::-webkit-scrollbar-thumb,
.overlay-dropdown-menu::-webkit-scrollbar-thumb,
.overlay-dropdown-menu-episodes::-webkit-scrollbar-thumb,
.main-card::-webkit-scrollbar-thumb,
.about-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #50699b 0%, #3f5279 100%);
  border-radius: 999px;
  border: 2px solid #121a2c;
}

.right-sidebar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.search-dropdown::-webkit-scrollbar-thumb:hover,
.overlay-dropdown-menu::-webkit-scrollbar-thumb:hover,
.overlay-dropdown-menu-episodes::-webkit-scrollbar-thumb:hover,
.main-card::-webkit-scrollbar-thumb:hover,
.about-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5f79ad 0%, #4d6390 100%);
}

@media (max-width: 980px) {
  .main-card {
    padding: 24px;
  }

  .main-form {
    grid-template-columns: 1fr;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-page {
    padding: 12px 12px 92px;
  }

  .site-header {
    margin-bottom: 14px;
  }

  .site-header-inner {
    width: 100%;
    padding: 0 2px;
  }

  .site-brand {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(18, 26, 46, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
  }

  .site-brand-logo {
    width: 192px;
  }

  .main-card {
    padding: 18px;
    border-radius: 22px;
  }

  .main-title {
    font-size: 36px;
  }

  .main-subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .main-actions {
    flex-direction: column;
  }

  .btn,
  .small-btn {
    width: 100%;
  }

  .home-info-card {
    min-height: auto;
    padding: 18px;
  }

  .home-info-card h3 {
    font-size: 19px;
  }

  .home-info-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .floating-menu {
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .floating-menu .thanks-service-btn {
    grid-column: 1 / -1;
  }

  .about-service-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .about-service-icon {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .about-modal-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .about-modal-header {
    padding: 18px 18px 14px;
  }

  .about-modal-logo {
    width: 182px;
  }

  .about-modal-content {
    padding: 18px;
  }

  .about-modal-actions {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
  }

  .about-modal-section h2 {
    font-size: 18px;
  }

  .about-modal-card {
    font-size: 14px;
    line-height: 1.6;
  }

  .support-card-title-wrap h3 {
    font-size: 18px;
  }
}