:root {
  --bg: #111318;
  --bg-card: #1a1d24;
  --bg-elevated: #21242d;
  --bg-hero: #0d1117;
  --text: #e2e4e9;
  --text-muted: #8b8fa3;
  --text-heading: #f0f2f5;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-glow: rgba(34,197,94,0.25);
  --green-subtle: rgba(34,197,94,0.08);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --border: #2a2d37;
  --border-light: #333843;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --container: 1080px;
  
  --type-h1: clamp(1.5rem, 3.5vw, 2rem);
  --type-h2: 1.3rem;
  --type-h3: 1.05rem;
  --type-lead: 1.05rem;
  --leading-head: 1.2;
  --flow-space: 1rem;
  --flow-space-tight: 0.4em;
  
  --scroll-anchor-offset: 80px;
  
  --btn-pad-y: 8px;
  --btn-pad-x: 18px;
  --btn-font-size: 0.82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-anchor-offset);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, blockquote, figure {
  margin: 0;
}

h1 {
  font-size: var(--type-h1);
  font-weight: 900;
  line-height: var(--leading-head);
  color: var(--text-heading);
}

h2 {
  font-size: var(--type-h2);
  font-weight: 900;
  line-height: var(--leading-head);
  color: var(--text-heading);
}

h3 {
  font-size: var(--type-h3);
  font-weight: 900;
  line-height: var(--leading-head);
  color: var(--text-heading);
}

p {
  line-height: 1.65;
}

ul, ol {
  margin: 0;
}

table {
  margin: 0;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: #4ade80; }

.link-arrow::after {
  content: " →";
  font-weight: 900;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.locale-banner {
  padding: 8px 20px;
  background: var(--green-subtle);
  color: var(--green);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 0 24px;
  min-height: 64px;
  gap: 12px 16px;
}

.site-header__center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-header__center .site-nav {
  width: auto;
  max-width: 100%;
}

.site-header__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.site-header__cta .btn {
  white-space: nowrap;
}

.site-header__cta-btn {
  font-weight: 900;
}

.site-header__cta--mobile {
  display: none;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s;
  line-height: 1;
}

.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--green-subtle);
  color: var(--green);
}

.lang-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-switcher__code {
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-switcher__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
  transition: transform 0.2s;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__caret {
  transform: rotate(180deg);
  margin-top: -3px;
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.lang-switcher.is-open .lang-switcher__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-switcher__option:hover {
  background: var(--green-subtle);
  color: var(--green);
}

.lang-switcher__option--active {
  color: var(--green);
  background: var(--green-subtle);
}

.lang-switcher__opt-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-mobile {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-logo__img,
.site-footer__logo-img {
  display: block;
  max-height: 70px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
}
.site-logo:hover .site-logo__img {
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-toggle:hover {
  border-color: var(--green);
  background: var(--green-subtle);
  color: var(--green);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), top 0.28s ease;
}
.nav-toggle__bars::before {
  top: -7px;
}
.nav-toggle__bars::after {
  top: 7px;
}

.site-header.is-drawer-open .nav-toggle__bars {
  background: transparent;
}
.site-header.is-drawer-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-drawer-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header__backdrop {
  display: none;
}

body.nav-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav__item {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.site-nav a:hover {
  background: var(--green-subtle);
  color: var(--green);
}

.site-nav__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  margin: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.site-nav__trigger::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
  opacity: 0.75;
}
.site-nav__trigger:hover,
.site-nav__item--has-sub:hover > .site-nav__trigger,
.site-nav__item--has-sub:focus-within > .site-nav__trigger {
  background: var(--green-subtle);
  color: var(--green);
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .site-nav__sub {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    padding: 0;
  }
  .site-nav__sub a {
    padding: 8px 14px;
    font-size: 0.88rem;
  }
  .site-nav__sub li:first-child > a {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .site-nav__sub li:last-child > a {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  .site-nav__sub li:only-child > a {
    border-radius: var(--radius-sm);
  }
  .site-nav__item--has-sub:hover .site-nav__sub,
  .site-nav__item--has-sub:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .site-nav__trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .site-nav__trigger::after {
    display: none;
  }
  .site-nav__item--has-sub .site-nav__sub {
    display: block !important;
    padding: 0;
    margin: 0;
    border: none;
  }
  .site-nav__sub li {
    margin: 0;
  }
  .site-nav .site-nav__item > a,
  .site-nav__sub a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(34,197,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(245,158,11,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d1117 0%, #111318 100%);
  z-index: 0;
}

.hero__bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--green-subtle);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--flow-space);
}

.hero__title {
  margin: 0 0 calc(var(--flow-space) * 0.5);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-heading);
}

.hero__subtitle {
  margin: 0 0 var(--flow-space);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--green);
  font-weight: 700;
}

.hero__lead {
  margin: 0 auto calc(var(--flow-space) * 1.75);
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: var(--btn-font-size);
  line-height: 1.25;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform .12s, box-shadow .2s, background .15s;
  letter-spacing: 0.02em;
  font-family: var(--font);
  box-sizing: border-box;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn--glow {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 20px var(--green-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn--glow:hover {
  background: #4ade80;
  color: #fff;
  box-shadow: 0 0 30px var(--green-glow), 0 6px 20px rgba(0,0,0,0.3);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: #4ade80;
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--sm {
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-font-size);
}

.prose-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  text-align: center;
}

.prose-cta-row .btn {
  flex: 0 1 auto;
  min-width: 0;
}

.breadcrumbs-wrap {
  padding: 18px 0;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-right: 6px;
  color: var(--border-light);
  font-weight: 700;
}

.breadcrumbs a { font-weight: 700; }

.toc-wrap {
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.toc-wrap__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
  transition: background .15s;
}

.toc-wrap__summary::-webkit-details-marker { display: none; }

.toc-wrap__summary::after {
  content: " ▼";
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 6px;
}

.toc-wrap[open] .toc-wrap__summary::after {
  content: " ▲";
}

.toc-wrap__summary:hover {
  background: var(--green-subtle);
}

.toc {
  padding: 0 16px 14px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.toc__list {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 2;
}

.toc a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.toc a:hover { color: var(--green); }

.home-casinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.home-casino-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.home-casino-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.home-casino-card__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

.page-section-img {
  margin: 0 0 var(--flow-space);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.page-section-img img {
  width: 100%;
  height: auto;
  display: block;
}
.page-hero-img {
  margin: 0 0 var(--flow-space);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.page-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .page-section-img img,
  .page-hero-img img {
    border-radius: 0;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-item {
  background: var(--bg-elevated);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 900;
}

.info-item__value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.info-item__value.highlight {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 900;
}

.section {
  margin-bottom: 40px;
}

.section__title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: var(--green);
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 20px var(--green-glow);
}

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-heading);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--text-heading);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item,
.faq-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item + .faq-item,
.faq-accordion + .faq-accordion {
  margin-top: var(--flow-space);
}
.faq-item:hover,
.faq-accordion:hover {
  border-color: var(--border-light);
}

.faq-item summary,
.faq-accordion summary {
  padding: 16px 48px 16px 20px;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--text-heading);
  transition: background .15s;
}

.faq-item__question,
.faq-accordion__question {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
  color: inherit;
}

.faq-item summary::-webkit-details-marker,
.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-item summary::after,
.faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green);
  transition: transform .2s;
}

.faq-item[open] summary::after,
.faq-accordion[open] summary::after {
  content: "−";
}

.faq-item[open] summary,
.faq-accordion[open] summary {
  background: var(--green-subtle);
  border-bottom: 1px solid var(--border);
}

.faq-item__body,
.faq-accordion__body {
  padding: 16px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item__body p,
.faq-accordion__body p { margin: 0; }

.table-wrap,
.table-scroll {
  overflow-x: visible;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 300px;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-elevated);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 900;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-elevated); }

.data-table td:first-child {
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .table-wrap,
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .data-table {
    width: max-content;
    min-width: max(100%, 320px);
  }
}

.iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.iframe-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  font-weight: 700;
}

.demo-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 55%), #0a0c10;
}

.demo-start__hint {
  margin: 0;
  max-width: 36ch;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.demo-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.demo-start__actions > .btn {
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 768px) {
  .iframe-wrap {
    aspect-ratio: 3 / 4;
    min-height: 260px;
  }

  .demo-start__hint {
    font-size: 0.85rem;
  }

  .demo-start__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .demo-start__actions > .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .demo-start__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .demo-start__actions > .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: clamp(0.75rem, 3.4vw, 0.88rem);
    padding-left: 10px;
    padding-right: 10px;
  }

  .iframe-wrap {
    aspect-ratio: 9 / 14;
    min-height: 300px;
  }
}

.iframe-wrap iframe[hidden] {
  display: none !important;
}

.demo-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 12, 16, 0.92);
  text-align: center;
  padding: 24px;
}

.demo-loading[hidden] {
  display: none !important;
}

.demo-loading__text {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-heading);
}

.demo-loading__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  animation: demo-spin 0.75s linear infinite;
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.prose > * + *,
.prose section > * + *,
.section > * + *,
.card > * + * {
  margin-top: var(--flow-space);
}

.prose section ul li + li,
.prose section ol li + li,
.prose > ul li + li,
.prose > ol li + li {
  margin-top: var(--flow-space-tight);
}

.prose {
  padding: 8px 0 24px;
}

.prose h1 {
  font-size: var(--type-h1);
  line-height: var(--leading-head);
}

.prose .lead {
  font-size: var(--type-lead);
  color: var(--text-muted);
}

.prose h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.author-box {
  margin: 40px 0 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-box__heading {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-box__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.author-box__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--green-dim);
  flex-shrink: 0;
  object-fit: cover;
}

.author-box__name {
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.author-box__name a { color: var(--text-heading); }
.author-box__name a:hover { color: var(--green); }

.author-box__role {
  margin: 2px 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
}

.author-box__exp {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.author-box__bio {
  margin: 0;
  font-size: 0.92rem;
}

.author-page__profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
}

.author-page__photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--green-dim);
}

.author-page__profile-text {
  flex: 1;
  min-width: min(100%, 220px);
}

.author-page__profile-text p {
  margin: 0;
}

@media (max-width: 768px) {
  .author-page__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-page__photo {
    width: 200px;
    height: 200px;
  }

  .author-page__profile-text {
    text-align: left;
  }
}

.site-footer {
  background: linear-gradient(180deg, #151820 0%, #0f1218 100%);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 40px 24px 28px;
  margin-top: 48px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  line-height: 0;
}

.site-footer__logo-link:hover .site-footer__logo-img {
  opacity: 0.92;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36ch;
}

.site-footer__nav-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.site-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}

.site-footer__nav-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.site-footer__nav-list a:hover {
  color: var(--green);
  border-bottom-color: rgba(34,197,94,0.35);
}

.site-footer__mid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin: 16px 0 8px;
}

.site-footer__disclaimer {
  font-size: 0.75rem;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  opacity: 0.75;
  line-height: 1.5;
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer__social {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color .15s, background-color .15s, border-color .15s, transform .15s;
}

.site-footer__social-link:hover {
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

.site-footer__social-link:active {
  transform: scale(0.96);
}

.site-footer__social-icon {
  display: block;
  flex-shrink: 0;
}

.site-footer__bottom {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.site-footer__legal a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--green);
}

.site-footer__legal-sep {
  color: var(--border-light);
  margin: 0 2px;
  user-select: none;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.55;
}

@media (min-width: 769px) {
  .site-header__backdrop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    z-index: 300;
  }

  .site-header__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 8, 12, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .site-header.is-drawer-open .site-header__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 0 16px;
    position: relative;
    z-index: 3;
    background: var(--bg-card);
  }

  .site-logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  .site-logo__img,
  .site-footer__logo-img {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: min(220px, 58vw);
  }

  .site-header__cta--desktop {
    display: none !important;
  }

  .site-header__cta--mobile {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 16px 20px 22px;
    margin: 0;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
    flex-shrink: 0;
    background: var(--bg-card);
  }
  .site-header__cta--mobile .site-header__cta-btn--mob {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 12px;
    font-size: 0.88rem;
    font-weight: 900;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  
  .lang-switcher {
    display: none !important;
  }

  
  .lang-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 12px 20px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
  }
  .lang-mobile::-webkit-scrollbar { display: none; }

  .lang-mobile__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle, rgba(255,255,255,0.04));
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    flex-shrink: 0;
  }
  .lang-mobile__chip:hover {
    border-color: var(--green);
    background: var(--green-subtle);
    color: var(--green);
  }
  .lang-mobile__chip--active {
    border-color: var(--green);
    background: var(--green-subtle);
    color: var(--green);
  }
  .lang-mobile__chip-flag {
    font-size: 1.3rem;
    line-height: 1;
  }
  .lang-mobile__chip-code {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
  }

  .site-header__center {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-header-h, 61px);
    display: flex;
    flex-direction: column;
    max-height: min(calc(100dvh - var(--mobile-header-h, 61px)), calc(100vh - var(--mobile-header-h, 61px)));
    padding: 0;
    margin: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    z-index: 2;
    overflow: hidden;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease, visibility 0.24s ease;
  }
  .site-header__center.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__center .site-nav {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 20px 8px;
  }

  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .hero { padding: 52px 0 48px; }

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

  .container { padding: 0 16px; }

  .card { padding: 20px; }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__nav-list {
    gap: 4px 20px;
  }

  .site-footer__mid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 14px 0 6px;
  }

  .site-footer__social-list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-footer__social-link {
    width: 36px;
    height: 36px;
  }

  .site-footer__social-icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .site-header__center {
    transition-duration: 0.01ms !important;
  }
  .site-header__backdrop {
    transition-duration: 0.01ms !important;
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  .hero__title { font-size: 1.65rem; }

  .hero__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    padding-left: 12px;
    padding-right: 12px;
  }

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

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55vh;
  padding: 60px 24px 80px;
}

.error-page__code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  user-select: none;
}

.error-page__title {
  font-size: var(--type-h1);
  font-weight: 800;
  color: var(--text-heading);
  margin: 12px 0 0;
}

.error-page__desc {
  font-size: var(--type-lead);
  color: var(--text-muted);
  max-width: 440px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.error-page__btn:hover {
  transform: translateY(-1px);
}

.error-page__btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 20px var(--green-glow);
}

.error-page__btn--primary:hover {
  background: var(--green-dim);
}

.error-page__btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.error-page__btn--secondary:hover {
  background: var(--border);
}
