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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f0eaff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(138, 43, 226, 0.18), transparent 40%),
    radial-gradient(ellipse at 80% 5%, rgba(255, 165, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #0e0520 0%, #160938 40%, #1c0d48 100%);
  background-attachment: fixed;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin-top: 0; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 5, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 130, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-width: 90px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.site-nav__link {
  font-size: 14px;
  font-weight: 700;
  color: rgba(220, 200, 255, 0.85);
  transition: color 0.2s ease;
}

.site-nav__link:hover { color: #fff; }

.site-nav .nav-item { display: inline-flex; }
.site-nav .nav-link {
  font-size: 14px;
  font-weight: 700;
  color: rgba(220, 200, 255, 0.85);
  transition: color 0.2s ease;
}
.site-nav .nav-link:hover { color: #fff; }

.mobile-nav .nav-item { display: block; }
.mobile-nav .nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(168, 130, 255, 0.06);
  border: 1px solid rgba(168, 130, 255, 0.10);
  font-size: 15px;
  font-weight: 700;
  color: #e0d4ff;
  transition: background 0.2s ease;
}
.mobile-nav .nav-link:hover { background: rgba(168, 130, 255, 0.12); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7 50%, #7c3aed);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.30);
}

.btn--accent {
  color: #1a0a30;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

.btn--ghost {
  color: #e0d4ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 130, 255, 0.20);
}

/* ── LANG SWITCHER ── */
.lang-switcher-simple {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(168, 130, 255, 0.08);
  border: 1px solid rgba(168, 130, 255, 0.16);
}

.lang-switcher-simple__btn {
  min-width: 40px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(200, 180, 255, 0.65);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.lang-switcher-simple__btn:hover { color: #fff; }

.lang-switcher-simple__btn.is-active {
  color: #1a0a30;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.28);
}

/* ── BURGER ── */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(14, 5, 32, 0.98);
  border-top: 1px solid rgba(168, 130, 255, 0.10);
  transition: max-height 0.35s ease;
}

.mobile-menu.is-open { max-height: 520px; }

.mobile-menu__inner { padding: 14px 0 22px; }

.mobile-menu__lang { margin-bottom: 12px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(168, 130, 255, 0.06);
  border: 1px solid rgba(168, 130, 255, 0.10);
  font-size: 15px;
  font-weight: 700;
  color: #e0d4ff;
  transition: background 0.2s ease;
}

.mobile-nav__link:hover { background: rgba(168, 130, 255, 0.12); }

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.mobile-menu__actions .btn { width: 100%; }

/* ── HERO ── */
.hero {
  padding: 30px 0 22px;
}

.hero__card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(168, 130, 255, 0.14);
  background: linear-gradient(135deg, rgba(22, 9, 56, 0.95), rgba(40, 18, 90, 0.80));
  box-shadow: 0 20px 50px rgba(10, 3, 24, 0.35);
  padding: 48px 42px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.28;
  filter: saturate(1.1);
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 5, 32, 0.94) 0%, rgba(22, 9, 56, 0.82) 40%, rgba(40, 18, 90, 0.45) 100%),
    radial-gradient(circle at 75% 30%, rgba(139, 92, 246, 0.16), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.06), transparent 25%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.20);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
}

.hero__text {
  margin-bottom: 22px;
  max-width: 580px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(220, 200, 255, 0.85);
}

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

/* ── BONUS BOX ── */
.bonus-box {
  position: relative;
  overflow: hidden;
  margin: 22px 0;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: linear-gradient(135deg, rgba(40, 18, 90, 0.70), rgba(60, 25, 110, 0.60));
  text-align: center;
}

.bonus-box__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.2) brightness(0.9);
}

.bonus-box__inner {
  position: relative;
  z-index: 2;
}

.bonus-box__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
}

.bonus-box__value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
}

.bonus-box__text {
  margin-bottom: 16px;
  font-size: 15px;
  color: rgba(220, 200, 255, 0.78);
}

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.info-card {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(168, 130, 255, 0.12);
  background: rgba(22, 9, 56, 0.60);
}

.info-card__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(200, 180, 255, 0.55);
}

.info-card__value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* ── CONTENT ── */
.content-section { padding: 18px 0; }

.content-box {
  padding: 28px 26px;
  border-radius: 22px;
  border: 1px solid rgba(168, 130, 255, 0.12);
  background: linear-gradient(180deg, rgba(26, 12, 60, 0.92), rgba(18, 8, 45, 0.95));
  box-shadow: 0 14px 36px rgba(8, 2, 20, 0.24);
}

.content-box > *:first-child { margin-top: 0; }
.content-box > *:last-child { margin-bottom: 0; }

.content-box h1, .content-box h2, .content-box h3,
.content-box h4, .content-box h5 {
  margin-top: 0;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.content-box h1 { margin-bottom: 18px; font-size: clamp(28px, 3.5vw, 40px); }
.content-box h2 { margin-top: 34px; margin-bottom: 14px; font-size: clamp(24px, 3vw, 30px); }
.content-box h3 { margin-top: 26px; margin-bottom: 12px; font-size: clamp(20px, 2.4vw, 24px); }
.content-box h4 { margin-top: 22px; margin-bottom: 10px; font-size: 20px; }

.content-box p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(230, 215, 255, 0.85);
}

.content-box strong { color: #fff; font-weight: 800; }
.content-box em { color: #d8b4fe; }

.content-box a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-box a:hover { color: #e9d5ff; }

.content-box ul, .content-box ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(230, 215, 255, 0.85);
}

.content-box ul { list-style: disc; }
.content-box ol { list-style: decimal; }
.content-box li { margin-bottom: 8px; line-height: 1.7; }
.content-box li::marker { color: #a78bfa; }

.content-box blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid #a78bfa;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.08);
}

.content-box blockquote p { margin: 0; color: #e9d5ff; }

.content-box img {
  margin: 22px auto;
  border-radius: 16px;
  border: 1px solid rgba(168, 130, 255, 0.12);
  box-shadow: 0 10px 28px rgba(8, 2, 20, 0.24);
}

.content-box table {
  display: block;
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.content-box th, .content-box td {
  min-width: 160px;
  padding: 12px 16px;
  border: 1px solid rgba(168, 130, 255, 0.10);
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}

.content-box th { font-weight: 800; color: #fff; background: rgba(139, 92, 246, 0.10); }
.content-box td { color: rgba(230, 215, 255, 0.82); }

.content-box hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid rgba(168, 130, 255, 0.10);
}

/* ── AUTHOR ── */
.author-section { padding: 10px 0 24px; }

.author-card {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(168, 130, 255, 0.12);
  background: linear-gradient(180deg, rgba(26, 12, 60, 0.92), rgba(18, 8, 45, 0.95));
}

.author-card__name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.author-card__date {
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(200, 180, 255, 0.55);
}

.author-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(230, 215, 255, 0.80);
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 20px;
  padding: 32px 0 20px;
  background: #080318;
  border-top: 1px solid rgba(168, 130, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  padding-bottom: 22px;
}

.footer-logo { display: inline-flex; margin-bottom: 14px; }
.footer-logo img { height: 44px; width: auto; }

.footer-desc {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(200, 180, 255, 0.65);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.footer-nav h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #e0d4ff;
}

.footer-nav a {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(200, 180, 255, 0.60);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #fff; }

.footer-license {
  padding: 18px 0;
  border-top: 1px solid rgba(168, 130, 255, 0.08);
}

.footer-license p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(200, 180, 255, 0.50);
}

.footer-license strong { color: rgba(230, 215, 255, 0.75); }

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(168, 130, 255, 0.06);
  font-size: 12px;
  color: rgba(200, 180, 255, 0.40);
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .site-nav, .header-actions .btn { display: none; }
  .burger { display: inline-flex; }

  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__card { padding: 34px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .header-inner { min-height: 64px; }
  .site-logo img { max-width: 130px; }

  .hero { padding: 20px 0 16px; }
  .hero__card { padding: 26px 18px; border-radius: 18px; }
  .hero__text { font-size: 15px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .bonus-box { padding: 22px 18px; border-radius: 16px; }

  .info-grid { grid-template-columns: 1fr; gap: 10px; }
  .info-card { padding: 16px; border-radius: 14px; }

  .content-box { padding: 20px 16px; border-radius: 16px; }
  .content-box h1 { font-size: 26px; }
  .content-box h2 { font-size: 22px; }
  .content-box p, .content-box li { font-size: 15px; }
  .content-box th, .content-box td { min-width: 140px; padding: 10px 12px; font-size: 14px; }

  .author-card { padding: 18px 16px; border-radius: 16px; }

  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
