* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #f4f2ff;
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 92, 255, 0.24), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(140, 255, 176, 0.10), transparent 24%),
    linear-gradient(135deg, #10131c, #181c27 48%, #0f1118);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 27, 0.82);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-line {
  width: 1px;
  height: 20px;
  background: rgba(210, 214, 235, 0.38);
  border-radius: 999px;
  flex-shrink: 0;
}

.brand-place {
  color: #d7d9e8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.brand-sub {
  margin-top: 5px;
  color: #cfd4ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(244, 242, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover {
  color: #ffffff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(157, 133, 255, 0.36);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #7a5cff, #5c7cff);
  box-shadow: 0 14px 34px rgba(122, 92, 255, 0.28);
}

.btn-secondary {
  color: #eee9ff;
  background: rgba(255, 255, 255, 0.055);
}

.legal-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 84px;
}

.legal-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(157, 133, 255, 0.30);
  background: rgba(122, 92, 255, 0.12);
  color: #d8ccff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0;
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.legal-updated {
  margin: 16px 0 0;
  max-width: 980px;
  color: rgba(244, 242, 255, 0.56);
  font-size: 14px;
}

.legal-card {
  width: 100%;
  margin-top: 34px;
  padding: 38px 44px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(122, 92, 255, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.legal-card > * {
  max-width: 1060px;
}

.legal-card h2 {
  margin: 36px 0 13px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card h3 {
  margin: 26px 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.32;
}

.legal-card p,
.legal-card li {
  color: rgba(244, 242, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 16px;
}

.legal-card ul {
  margin: 4px 0 20px;
  padding-left: 22px;
}

.legal-card li {
  margin-bottom: 7px;
}

.legal-card strong {
  color: #ffffff;
  font-weight: 900;
}

.legal-card a {
  color: #cfc6ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 18, 0.52);
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-note {
  margin: 14px 0 0;
  max-width: 460px;
  color: rgba(244, 242, 255, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  color: rgba(244, 242, 255, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.footer-cookie-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 242, 255, 0.78);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-title {
  margin: 0 0 14px;
  color: rgba(244, 242, 255, 0.48);
  font-size: 14px;
  font-weight: 700;
}

.legal-links {
  display: grid;
  gap: 13px;
}

.legal-links a {
  width: fit-content;
  color: rgba(244, 242, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.62);
  backdrop-filter: blur(6px);
}

.cookie-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 26px 28px 24px;
  border-radius: 24px;
  background: #f7f7fb;
  color: #171923;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.cookie-dialog h2 {
  margin: 0 34px 18px 0;
  font-size: 24px;
  line-height: 1.2;
}

.cookie-intro {
  margin: 0 0 20px;
  color: rgba(23, 25, 35, 0.72);
  font-size: 16px;
  line-height: 1.5;
}

.cookie-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #171923;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(23, 25, 35, 0.12);
}

.cookie-option h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.cookie-option p {
  margin: 0;
  color: rgba(23, 25, 35, 0.66);
  font-size: 14px;
  line-height: 1.42;
}

.cookie-switch {
  flex: 0 0 auto;
}

.cookie-switch input {
  display: none;
}

.cookie-switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d7d8e0;
  display: block;
  position: relative;
  cursor: pointer;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.16s ease;
}

.cookie-switch input:checked + span {
  background: #7a5cff;
}

.cookie-switch input:checked + span::before {
  transform: translateX(20px);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 25, 35, 0.12);
}

.cookie-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #7a5cff, #5c7cff);
  color: #ffffff;
}

.cookie-btn-secondary {
  border: 1px solid rgba(23, 25, 35, 0.16);
  background: #ffffff;
  color: #171923;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .legal-page,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-place {
    font-size: 10.5px;
  }

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.045em;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .btn {
    min-height: 39px;
    padding: 0 13px;
    font-size: 12px;
  }

  .legal-page {
    padding: 48px 0 58px;
  }

  .legal-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .cookie-dialog {
    padding: 22px 20px 20px;
    border-radius: 20px;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-line,
  .brand-place {
    display: none;
  }
}

.site-card h2 {
  max-width: 1060px;
}

.site-lead {
  max-width: 1060px;
  margin: 0 0 24px;
  color: rgba(244, 242, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 18px;
  max-width: 1060px;
}

.site-mini-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.site-mini-card:hover {
  background: rgba(122, 92, 255, 0.12);
  border-color: rgba(157, 133, 255, 0.34);
}

.site-mini-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.site-mini-card p {
  margin: 0;
  color: rgba(244, 242, 255, 0.70);
  font-size: 14px;
  line-height: 1.58;
}

.site-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  max-width: 1060px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 18px;
  max-width: 1060px;
}

.pricing-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.pricing-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
}

.pricing-price {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.pricing-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .site-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .site-mini-card {
    min-height: auto;
  }
}

.legal-card a.site-mini-card {
  color: inherit;
  text-decoration: none;
}

.legal-card a.site-mini-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20);
}

.legal-card a.site-mini-card h3,
.legal-card a.site-mini-card p,
.legal-card a.site-mini-card span {
  text-decoration: none;
}

.site-mini-card {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.site-mini-card-link {
  position: relative;
  cursor: pointer;
}

.site-mini-card-action {
  display: inline-flex;
  margin-top: 16px;
  color: #cfc6ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* Public SEO pages: more air, softer light, less legal-document feeling */

.site-page {
  position: relative;
}

.site-page .legal-kicker {
  background:
    radial-gradient(circle at left, rgba(189, 178, 255, 0.30), transparent 55%),
    rgba(122, 92, 255, 0.14);
  border-color: rgba(189, 178, 255, 0.42);
}

.site-page h1 {
  max-width: 1060px;
}

.site-page .legal-updated {
  max-width: 760px;
  color: rgba(244, 242, 255, 0.68);
  font-size: 16px;
  line-height: 1.62;
}

/* убираем большую юридическую коробку у публичных страниц */
.site-page .site-card {
  width: 100%;
  margin-top: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-page .site-card > * {
  max-width: 1060px;
}

/* первый вводный текст — как мягкий световой блок */
.site-page .site-card > .site-lead:first-child {
  max-width: 1060px;
  margin: 0 0 38px;
  padding: 30px 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(122, 92, 255, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(140, 255, 176, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.060);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
  color: rgba(244, 242, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

/* заголовки разделов на публичных страницах */
.site-page .site-card h2 {
  margin: 48px 0 18px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.site-page .site-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.site-page .site-card > p:not(.site-lead) {
  max-width: 1020px;
  color: rgba(244, 242, 255, 0.78);
  font-size: 16.5px;
  line-height: 1.76;
}

/* карточки публичных страниц */
.site-page .site-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1060px;
}

.site-page .site-mini-card {
  min-height: 188px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(122, 92, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
}

/* разные оттенки, чтобы не было одной тёмной массы */
.site-page .site-grid .site-mini-card:nth-child(3n + 1) {
  background:
    radial-gradient(circle at top left, rgba(122, 92, 255, 0.24), transparent 44%),
    rgba(255, 255, 255, 0.058);
}

.site-page .site-grid .site-mini-card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at top left, rgba(92, 124, 255, 0.22), transparent 44%),
    rgba(255, 255, 255, 0.056);
}

.site-page .site-grid .site-mini-card:nth-child(3n + 3) {
  background:
    radial-gradient(circle at top left, rgba(140, 255, 176, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.056);
}

.site-page .site-mini-card h3 {
  color: #ffffff;
  font-size: 19px;
  line-height: 1.25;
}

.site-page .site-mini-card p {
  color: rgba(244, 242, 255, 0.76);
  font-size: 14.5px;
  line-height: 1.62;
}

/* карточки-ссылки: вся карточка кликабельна, без подчёркивания всего текста */
.legal-card a.site-mini-card,
.site-page a.site-mini-card {
  color: inherit;
  text-decoration: none;
}

.legal-card a.site-mini-card:hover,
.site-page a.site-mini-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(189, 178, 255, 0.42);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
}

.legal-card a.site-mini-card h3,
.legal-card a.site-mini-card p,
.legal-card a.site-mini-card span,
.site-page a.site-mini-card h3,
.site-page a.site-mini-card p,
.site-page a.site-mini-card span {
  text-decoration: none;
}

.site-mini-card-action {
  display: inline-flex;
  margin-top: 16px;
  color: #d8ccff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* CTA на публичной странице */
.site-page .site-cta-row {
  max-width: 1060px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .site-page .site-grid {
    grid-template-columns: 1fr;
  }

  .site-page .site-mini-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-page .site-card > .site-lead:first-child {
    padding: 24px 20px;
    border-radius: 22px;
    font-size: 16px;
  }

  .site-page .site-card h2 {
    margin-top: 40px;
    padding-top: 28px;
    font-size: 22px;
  }
}

.site-page .site-mini-card {
  display: flex;
  flex-direction: column;
}

.site-page .site-mini-card p {
  flex: 1;
}

.site-page .site-mini-card-action {
  margin-top: auto;
  padding-top: 18px;
}

/* FIX: buttons and card links should never look like underlined text links */
.site-page a.btn,
.site-page a.btn:visited,
.site-page a.btn:hover,
.site-page a.btn:focus,
.legal-page a.btn,
.legal-page a.btn:visited,
.legal-page a.btn:hover,
.legal-page a.btn:focus,
.site-cta-row a,
.site-cta-row a:visited,
.site-cta-row a:hover,
.site-cta-row a:focus {
  text-decoration: none !important;
}

.site-page .site-mini-card-link,
.site-page .site-mini-card-link:visited,
.site-page .site-mini-card-link:hover,
.site-page .site-mini-card-link:focus,
.site-page .site-mini-card-link *,
.site-page .site-mini-card-action {
  text-decoration: none !important;
}

/* HEADER FINAL CLEAN — one source of truth */
.site-header {
  overflow: visible;
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 22px;
}

.site-header .brand {
  grid-area: brand;
  justify-self: start;
  min-width: 0;
}

.site-header .nav {
  grid-area: nav;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header .header-right {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: visible;
}

.site-header .header-actions .btn-primary {
  width: auto;
  min-width: max-content;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.site-header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(186, 168, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(123, 91, 255, 0.18), rgba(120, 255, 214, 0.08)),
    rgba(15, 18, 27, 0.58);
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.site-header .nav-toggle-text {
  display: none;
}

.site-header .nav-toggle-lines {
  width: 18px;
  height: 13px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header .nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header .nav-toggle.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header .nav-toggle.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header .nav-toggle.is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .site-header .header-inner {
    gap: 16px;
  }

  .site-header .nav {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .site-header .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    align-items: start;
    gap: 10px;
  }

  .site-header .brand {
    grid-area: brand;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .site-header .brand-text {
    min-width: 0;
    overflow: visible;
  }

  .site-header .brand-top {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .site-header .brand-line {
    display: inline-block;
    width: 1px;
    height: 17px;
    background: rgba(210, 214, 235, 0.38);
    border-radius: 999px;
    flex: 0 0 auto;
  }

  .site-header .brand-place {
    display: inline-block;
    color: #d7d9e8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header .brand-sub {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }

  .site-header .header-right {
    grid-area: actions;
    justify-self: end;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .site-header .header-actions .btn-secondary {
    display: none;
  }

  .site-header .header-actions .btn-primary {
    width: auto;
    min-width: max-content;
    max-width: none;
    min-height: 36px;
    padding-left: 13px;
    padding-right: 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .site-header .nav-toggle {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    z-index: 120;
    display: inline-flex;
  }

  .site-header .nav {
    position: absolute;
    top: calc(100% + 52px);
    right: 12px;
    z-index: 110;
    display: none;
    width: min(330px, calc(100vw - 24px));
    max-width: 330px;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(186, 168, 255, 0.18);
    border-radius: 20px;
    background:
      radial-gradient(circle at top left, rgba(123, 91, 255, 0.20), transparent 48%),
      radial-gradient(circle at bottom right, rgba(120, 255, 214, 0.10), transparent 44%),
      rgba(18, 22, 34, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }

  .site-header .nav.is-open {
    display: flex;
  }

  .site-header .nav a {
    display: block;
    padding: 11px 13px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
  }

  .site-header .nav a:hover,
  .site-header .nav a:focus {
    background: rgba(123, 91, 255, 0.16);
    border-color: rgba(186, 168, 255, 0.18);
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  .site-header .brand img {
    width: 36px;
    height: 36px;
  }

  .site-header .brand-name {
    font-size: 21px;
  }

  .site-header .brand-place {
    font-size: 10.5px;
  }

  .site-header .brand-sub {
    font-size: 9px;
    letter-spacing: 0.045em;
    line-height: 1.2;
  }

  .site-header .header-actions .btn-primary {
    min-height: 35px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .site-header .brand-top {
    gap: 6px;
  }

  .site-header .brand-line {
    display: inline-block;
    height: 16px;
  }

  .site-header .brand-place {
    display: inline-block;
    font-size: 10px;
  }

  .site-header .header-actions .btn-primary {
    width: auto;
    min-width: max-content;
    padding-left: 11px;
    padding-right: 11px;
    font-size: 11.5px;
  }

  .site-header .nav-toggle {
    right: 12px;
    width: 40px;
    min-width: 40px;
  }
}