.site-common-header,
.site-common-header * {
  box-sizing: border-box;
}

.site-common-header {
  position: relative;
  z-index: 1000;
  display: block;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 0;
  color: #332348;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(95, 74, 139, 0.14);
  box-shadow: 0 4px 18px rgba(28, 16, 48, 0.06);
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-common-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
}

.site-common-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #5d25c9;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.site-common-brand img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-common-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-common-nav a,
.site-common-support {
  color: #4a4057;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.site-common-nav a:hover,
.site-common-nav a:focus-visible,
.site-common-support:hover,
.site-common-support:focus-visible {
  color: #7b2ee8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-common-nav .site-common-cta {
  padding: 10px 15px;
  color: #fff;
  background: linear-gradient(120deg, #e91fc7, #7147f7);
  border-radius: 9px;
  font-weight: 800;
}

.site-common-nav .site-common-cta:hover,
.site-common-nav .site-common-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.96);
}

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(111, 103, 132, 0.2);
  font: 600 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-cookie-settings {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-legal-links a:hover,
.site-legal-links a:focus-visible,
.site-cookie-settings:hover,
.site-cookie-settings:focus-visible {
  text-decoration-thickness: 2px;
}

.site-consent,
.site-consent * {
  box-sizing: border-box;
}

.site-consent {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 88px;
  width: min(520px, calc(100vw - 36px));
  padding: 20px;
  color: #211631;
  background: #fff;
  border: 1px solid rgba(95, 74, 139, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(28, 16, 48, 0.24);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-consent h2 {
  margin: 0 0 8px;
  color: inherit;
  font: 700 20px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-consent p {
  margin: 0;
}

.site-consent a {
  color: #6337cc;
}

.site-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.site-consent button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #d8d0e8;
  border-radius: 10px;
  color: #332348;
  background: #fff;
  font: 700 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.site-consent button[data-consent="all"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #e91fc7, #7147f7);
}

@media (max-width: 560px) {
  .site-consent {
    right: 10px;
    bottom: 78px;
    width: calc(100vw - 20px);
  }

  .site-consent-actions,
  .site-consent button {
    width: 100%;
  }
}

.site-common-footer,
.site-common-footer * {
  box-sizing: border-box;
}

.site-common-footer {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 28px 18px 44px;
  color: #6f6784;
  background: #fff;
  border-top: 1px solid rgba(95, 74, 139, 0.1);
  text-align: center;
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-common-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-common-header__inner {
    gap: 12px;
    width: min(100% - 24px, 1180px);
  }

  .site-common-nav {
    gap: 12px;
  }

  .site-common-nav__optional {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-common-header__inner {
    min-height: 60px;
  }

  .site-common-header {
    min-height: 60px;
  }

  .site-common-nav > a:not(.site-common-cta) {
    display: none;
  }

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

  .site-common-nav .site-common-cta {
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
