/* vhodpokerdom.site — mobile-first black & lilac theme */

:root {
  --bg-deep: #06040c;
  --bg-card: rgba(18, 10, 32, 0.85);
  --bg-card-hover: rgba(28, 16, 48, 0.95);
  --purple-900: #1a0a2e;
  --purple-700: #4c1d95;
  --purple-500: #7c3aed;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;
  --purple-200: #ddd6fe;
  --accent: #b794f6;
  --accent-hot: #e879f9;
  --accent-cool: #818cf8;
  --text: #f3eef9;
  --text-muted: #a89bb8;
  --border: rgba(167, 139, 250, 0.22);
  --glow: rgba(124, 58, 237, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* Ambient background */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, var(--purple-500) 0%, transparent 70%);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.bg-glow--2 {
  width: 220px;
  height: 220px;
  bottom: 20%;
  left: -80px;
  background: radial-gradient(circle, var(--accent-hot) 0%, transparent 70%);
  opacity: 0.2;
  animation: float 15s ease-in-out infinite reverse;
}

.bg-glow--3 {
  width: 180px;
  height: 180px;
  top: 45%;
  right: -40px;
  background: radial-gradient(circle, var(--accent-cool) 0%, transparent 70%);
  opacity: 0.18;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 18px) scale(1.08); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 4, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-h);
  padding: 0 16px;
  max-width: 640px;
  margin: 0 auto;
}

.header__inner .logo {
  min-width: 0;
  flex: 1;
}

.header__inner .logo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-500), var(--accent-hot));
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--glow);
}

.logo__dot {
  color: var(--purple-400);
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple-300);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid transparent;
}

.nav.is-open {
  display: flex;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__link {
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */
.hero {
  padding: 28px 0 36px;
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-200);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(232, 121, 249, 0.2));
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-300) 50%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}

.hero__text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-300);
  background: rgba(76, 29, 149, 0.4);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), #9333ea, var(--accent-hot));
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn--primary:active {
  transform: scale(0.97);
}

/* Bright CTA — Вход в Покердом */
.btn--cta {
  color: #0a0612;
  font-weight: 800;
  background: linear-gradient(135deg, #f0abfc 0%, #e879f9 35%, #c084fc 70%, #a78bfa 100%);
  box-shadow:
    0 0 24px rgba(232, 121, 249, 0.65),
    0 8px 28px rgba(192, 132, 252, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: ctaPulse 2.5s ease-in-out infinite;
}

.btn--cta:hover,
.btn--cta:focus-visible {
  color: #06040c;
  box-shadow:
    0 0 32px rgba(232, 121, 249, 0.85),
    0 10px 36px rgba(192, 132, 252, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn--cta:active {
  transform: scale(0.97);
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(232, 121, 249, 0.55),
      0 8px 24px rgba(192, 132, 252, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 36px rgba(240, 171, 252, 0.9),
      0 10px 32px rgba(232, 121, 249, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
}

.btn--cta-header {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--cta-hero {
  width: 100%;
  padding: 18px 28px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(6, 4, 12, 0.92) 24%, rgba(6, 4, 12, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s, transform 0.35s;
}

.cta-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn--cta-bar {
  display: flex;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 1.05rem;
  text-align: center;
}

/* Sections */
.section {
  padding: 40px 0;
  animation: fadeUp 0.5s ease both;
}

.section--dark {
  margin: 0 -16px;
  padding: 40px 16px;
  background: linear-gradient(180deg, rgba(26, 10, 46, 0.6) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: 20px;
}

.section__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-hot);
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.section__intro {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Cards */
.card {
  position: relative;
  padding: 22px 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.45);
}

.card--accent {
  border-color: rgba(124, 58, 237, 0.5);
  background: linear-gradient(145deg, rgba(30, 15, 55, 0.9), rgba(18, 10, 32, 0.85));
  box-shadow: 0 12px 40px rgba(76, 29, 149, 0.25);
}

.card--warning {
  border-color: rgba(232, 121, 249, 0.35);
  background: linear-gradient(145deg, rgba(40, 15, 50, 0.85), var(--bg-card));
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--purple-200);
}

.card__subtitle {
  font-weight: 600;
  margin: 16px 0 10px;
  color: var(--text);
}

.card__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent-hot);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(232, 121, 249, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--purple-200);
  text-decoration-color: var(--accent-hot);
}

/* Lists */
.list {
  list-style: none;
  margin: 12px 0;
}

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--accent-hot));
}

.list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list--inline li {
  padding: 8px 14px 8px 28px;
  margin: 0;
  background: rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.list--inline li::before {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
}

/* Problems table — card layout on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: var(--radius);
}

.problems-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.problems-table thead {
  display: none;
}

.problems-table tbody tr {
  display: block;
  margin-bottom: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.problems-table tbody tr:hover {
  border-color: rgba(167, 139, 250, 0.5);
}

.problems-table td {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  border: none;
}

.problems-table td:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-200);
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.problems-table td::before {
  content: attr(data-label) ": ";
  font-weight: 600;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.problems-table td:first-child::before {
  display: none;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(232, 121, 249, 0.1));
  border-left: 4px solid var(--accent-hot);
}

.callout p {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

/* Steps */
.steps {
  margin-bottom: 20px;
}

.steps__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.steps__list {
  list-style: decimal;
  padding-left: 2.75rem;
  margin: 0;
}

.steps__list li {
  padding: 14px 16px 14px 12px;
  margin-bottom: 10px;
  margin-left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.steps__list li::marker {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-hot);
}

/* FAQ */
.section--faq {
  padding-bottom: 48px;
}

.faq__item {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 8px 28px rgba(76, 29, 149, 0.2);
}

.faq__question {
  padding: 18px 44px 18px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--purple-400);
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  transition: transform 0.3s, background 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: rgba(232, 121, 249, 0.25);
  color: var(--accent-hot);
}

.faq__answer {
  padding: 0 18px 18px;
  animation: faqOpen 0.3s ease;
}

.faq__answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 16px calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}

.footer__domain {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--purple-400), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__top {
  position: fixed;
  right: 16px;
  bottom: calc(88px + var(--safe-bottom));
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--purple-500), var(--accent-hot));
  border-radius: 50%;
  box-shadow: 0 6px 24px var(--glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 90;
}

.footer__top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tablet+ */
@media (min-width: 520px) {
  .problems-table thead {
    display: table-header-group;
  }

  .problems-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--purple-300);
    background: rgba(76, 29, 149, 0.35);
    border-bottom: 2px solid var(--purple-500);
  }

  .problems-table tbody tr {
    display: table-row;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .problems-table tbody tr:nth-child(even) {
    background: rgba(18, 10, 32, 0.6);
  }

  .problems-table td {
    display: table-cell;
    padding: 14px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
  }

  .problems-table td:first-child {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    margin: 0;
    padding-bottom: 14px;
  }

  .problems-table td::before {
    display: none;
  }

  .table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .list--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  main,
  .header__inner,
  .nav,
  .footer {
    max-width: 720px;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 16px 12px;
    border-top: none;
  }

  .nav__link {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 48px 0 52px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .btn--cta {
    animation: none;
  }
}
