:root {
  --accent: #bb3a3e;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.08);
  --glass: rgba(7, 7, 9, 0.48);
  --glass-strong: rgba(7, 7, 9, 0.74);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  --max: 1180px;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--muted);
  background: #050507;
  font: normal 16px/28px var(--font-body);
  letter-spacing: 0;
  isolation: isolate;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -3;
  background: #050507;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 72% 22%, rgba(187, 59, 63, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.68));
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("../img/hero2.jpg");
  background-image: image-set(
    url("../img/hero2.webp") type("image/webp"),
    url("../img/hero2.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.intro-logo {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #050507;
  animation: intro-logo-layer 2100ms ease forwards;
}

.intro-logo img {
  width: min(34vw, 230px);
  max-width: 72%;
  opacity: 0;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.46));
  animation: intro-logo-mark 1800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes intro-logo-layer {
  0%,
  68% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes intro-logo-mark {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  28%,
  72% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

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

  .intro-logo,
  .intro-logo img {
    animation: none;
  }

  .intro-logo {
    display: none;
  }
}

img,
svg {
  display: block;
}

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

a:hover,
a:focus-visible {
  color: #fff;
}

.assistive-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--accent);
}

.site-header,
.site-footer,
.content-box {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 48px), var(--max));
  min-height: 50px;
  padding: 5px 10px 5px 12px;
  border-radius: 18px;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.primary-nav a,
.footer-legal a,
.language-switch,
.join-button {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.74);
  font: normal 12px/20px var(--font-body);
}

.primary-nav a::after {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 1px;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scaleX(0.36);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: #fff;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  font: 700 12px/18px var(--font-body);
}

.join-button:hover,
.join-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
}

.site-content {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 98px 24px 98px;
}

.home-page .site-content {
  padding: 0;
}

.home-hero {
  min-height: 100vh;
  min-height: 100svh;
}

.page-title {
  color: #fff;
  text-align: center;
  background: transparent;
}

.page-title__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 58px 24px 30px;
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.58);
  font: 700 11px/16px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  color: #fff;
  font: 700 72px/76px var(--font-display);
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font: 700 11px/18px var(--font-body);
  text-transform: uppercase;
}

.breadcrumbs span:not(:last-child)::after {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.38);
  content: "/";
}

.main-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.content-box {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(8, 8, 10, 0.76), rgba(8, 8, 10, 0.48));
}

.content-box::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(185, 59, 63, 0.30), transparent 28%);
  content: "";
}

.content-box p {
  margin: 0 0 18px;
}

.content-box ul,
.content-box ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.content-box li {
  margin-bottom: 10px;
}

.content-box blockquote {
  margin: 30px 0 14px;
  padding: 18px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.content-box blockquote p,
.content-box blockquote strong {
  margin: 0;
}

.content-box a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(187, 58, 62, 0.85);
  text-underline-offset: 4px;
}

.legal-document {
  max-width: 980px;
  padding: clamp(28px, 5vw, 58px);
}

.legal-section {
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  color: #fff;
  font: 700 28px/34px var(--font-display);
}

.legal-section h2 span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.42);
  font: 700 12px/1 var(--font-body);
}

.legal-section p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.contact-panel {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}

.error-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.error-panel p {
  max-width: 620px;
  margin: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(720px, 100%);
}

.contact-card {
  min-height: 156px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.contact-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font: 700 22px/30px var(--font-display);
}

.contact-card a {
  font-weight: 700;
}

.press-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(187, 58, 62, 0.88);
  font-weight: 700;
  text-decoration: none !important;
  transition: opacity 180ms ease, transform 180ms ease;
}

.press-link:hover,
.press-link:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
}

.cookie-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 22px;
}

.cookie-table caption {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.cookie-table th,
.cookie-table td {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  vertical-align: top;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 48px), var(--max));
  min-height: 50px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  font-size: 12px;
  line-height: 20px;
  transform: translateX(-50%);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.footer-brand {
  justify-self: start;
  color: rgba(255, 255, 255, 0.76);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  color: rgba(255, 255, 255, 0.68);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
}

.language-switch::after {
  color: rgba(255, 255, 255, 0.28);
  content: "›";
  font-size: 13px;
  line-height: 1;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: #fff;
  background: transparent;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(calc(100% - 48px), var(--max));
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(5, 5, 7, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 20px;
}

.cookie-settings {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 13px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.cookie-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-choice span {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease;
}

.cookie-choice span::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-choice:has(input:checked) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.cookie-choice:has(input:checked) span {
  border-color: #fff;
}

.cookie-choice:has(input:checked) span::after {
  opacity: 1;
  transform: scale(1);
}

.cookie-choice:has(input:disabled) {
  cursor: default;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: transparent;
  font: 700 12px/16px var(--font-body);
  cursor: pointer;
}

.cookie-actions button[hidden] {
  display: none;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-actions [data-cookie-accept],
.cookie-actions [data-cookie-save] {
  color: #050507;
  background: #fff;
}

@media (max-width: 900px) {
  .site-header {
    top: 14px;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    width: calc(100% - 28px);
    min-height: 46px;
    padding: 5px 8px;
  }

  .brand,
  .brand img {
    width: 26px;
    height: 26px;
  }

  .primary-nav {
    display: flex;
    justify-content: center;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .primary-nav a {
    min-height: 32px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
  }

  .primary-nav a::after {
    left: 6px;
    right: 6px;
    bottom: 4px;
  }

  .join-button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
  }

  .site-content {
    padding: 84px 14px 112px;
  }

  .home-page .site-content {
    padding: 0;
  }

  .page-title__inner {
    padding: 28px 10px 18px;
  }

  .page-title h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .main-content {
    padding-top: 12px;
  }

  .content-box {
    padding: 28px 20px;
  }

  .legal-section h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .site-footer {
    bottom: 12px;
    width: calc(100% - 28px);
    grid-template-columns: auto 1fr auto;
    min-height: 50px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
  }

  .footer-legal {
    gap: 9px;
  }

  .cookie-banner {
    bottom: 78px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 28px);
    padding: 15px;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 26px;
  }

  body::after {
    background:
      radial-gradient(circle at 50% 16%, rgba(187, 58, 62, 0.22), transparent 34%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.26) 44%, rgba(0, 0, 0, 0.72));
  }

  .site-footer {
    font-size: 11px;
    line-height: 18px;
  }

  .footer-legal {
    gap: 5px;
  }

  .footer-brand,
  .footer-legal,
  .language-switch {
    font-size: 10px;
  }

  .page-title h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .content-box blockquote {
    padding: 16px;
  }

  .cookie-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
