:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --surface: #161f33;
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-dim: #0f766e;
  --danger: #f87171;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #5eead4;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 100% - 2rem);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(45, 212, 191, 0.3));
}

.logo:hover img {
  opacity: 0.9;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 200px;
  width: 200px;
  min-width: 200px;
}

.brand__slogan {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: none;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.75rem;
}

.nav a:hover {
  color: var(--accent);
}

nav .btn--primary:hover {
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
  transform: translateY(-2px);
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
}

.lang-switch:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.lang-switch__arrow {
  color: var(--accent);
  font-size: 0.85rem;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.burger:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.burger::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.auth__form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.auth__input {
  width: 120px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: all 0.2s ease;
  height: 40px;
}

.auth__input::placeholder {
  color: var(--muted);
}

.auth__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.auth__submit {
  flex-shrink: 0;
}

.auth__msg {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.25em;
  color: var(--danger);
}

.mobile-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.75rem 1rem 1rem;
  background: var(--bg-elevated);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  height: 40px;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 40px;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #042f2e;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
  color: #042f2e;
}

.btn--light {
  background: var(--accent);
  color: #042f2e;
  font-weight: 600;
}

.btn--light:hover {
  box-shadow: 0 6px 28px rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
  color: #042f2e;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg) url("../assets/rx2n-hero.png") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 18, 32, 0.75) 0%,
    rgba(11, 18, 32, 0.55) 45%,
    rgba(11, 18, 32, 0.92) 100%
  );
}

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

.hero__title {
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.25;
  font-weight: 700;
  max-width: 32ch;
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-elevated);
}

.section__title {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.mission {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-inline: auto;
}

.card {
  background: var(--surface);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 191, 0.15);
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15);
}

.card:last-child {
  margin-bottom: 0;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.adv-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.adv-list li {
  margin-bottom: 0.65rem;
}

.adv-list li:last-child {
  margin-bottom: 0;
}

.contact-email {
  font-size: 1.25rem;
  margin-top: 1rem;
}

.contact-email a {
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.contact-email a:hover {
  color: var(--text);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.footer__brand img {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(45, 212, 191, 0.2));
}

.footer__hint {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .brand__slogan {
    display: block;
  }

  .brand {
    max-width: 200px;
    width: 200px;
    min-width: 200px;
  }

  .nav {
    display: flex;
  }

  .lang-switch {
    display: flex;
  }

  .burger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header__actions {
    display: flex;
  }

  .auth {
    width: auto;
    max-width: 420px;
  }

  .header__inner {
    flex-wrap: nowrap;
  }

  .split {
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 3rem;
  }

  .logo img {
    height: 64px;
  }

  .footer__brand img {
    height: 40px;
  }
}

@media (min-width: 960px) {
  .auth__input {
    width: 140px;
  }
}
