:root {
  --bg: #050606;
  --panel: rgba(8, 9, 9, 0.88);
  --panel-solid: #0a0b0b;
  --panel-2: rgba(255, 255, 255, 0.055);
  --text: #f4f1e8;
  --muted: #c7c1b5;
  --line: rgba(244, 241, 232, 0.18);
  --accent: rgb(44, 65, 206);
  --accent-hover: rgba(44, 65, 206, 0.9);
  --accent-soft: rgba(44, 65, 206, 0.1);
  --accent-border: rgba(44, 65, 206, 0.5);
  --ink: #050606;
  --accent-2: #f4f1e8;
  --danger: #cf6a50;
  --green: #8aa46c;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.56);
  --radius: 0.8rem;
  --heading-font: GeistSans, "GeistSans Fallback", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--heading-font);
  font-feature-settings: normal;
  font-variation-settings: normal;
  letter-spacing: 0;
  font-weight: 700;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 22px clamp(26px, 4vw, 52px);
  background: rgba(5, 6, 6, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-text {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.footer a:hover {
  color: inherit;
  text-decoration-line: underline;
  text-underline-offset: 4px;
}

.footer a,
.brand {
  transition: color 180ms ease, border-color 180ms ease;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.menu-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(5, 6, 6, 0.58);
  color: #ffffff;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.site-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 6, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-menu a {
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.site-menu a:last-child {
  border-bottom: 0;
}

.site-menu a:hover {
  background: var(--accent);
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 134px clamp(26px, 5vw, 72px) 58px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  margin: 0;
  background-image: url("./assets/rs42-hero.webp");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.98) 0%, rgba(5, 6, 6, 0.86) 46%, rgba(5, 6, 6, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 6, 6, 0.22) 0%, #050606 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-feature-settings: normal;
  font-variation-settings: normal;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(43px, 5.5vw, 79px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.5;
  font-weight: 800;
}

.benefits {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
  color: var(--text);
  font-weight: 600;
}

.benefits li,
.risk-list li {
  position: relative;
  padding-left: 32px;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.24);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  font-family: var(--heading-font);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(244, 241, 232, 0.34);
  background: rgba(5, 6, 6, 0.58);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.full {
  width: 100%;
}

.button:focus-visible,
.header-cta:focus-visible,
.menu-toggle:focus-visible,
.site-menu a:focus-visible,
.vacancy-card:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section {
  padding: clamp(92px, 11vw, 146px) 0;
}

.section-inner {
  width: min(1228px, calc(100% - 52px));
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

h2 {
  margin-bottom: 28px;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.58;
  font-weight: 800;
}

.lead-stack {
  display: grid;
  gap: 18px;
  font-size: 22px;
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: 56px;
}

.section-heading > p:not(.kicker) {
  font-weight: 500;
}

.section-heading.compact {
  width: min(840px, 100%);
  margin-bottom: 48px;
}

.bg-section {
  position: relative;
  overflow: hidden;
}

.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.83) 48%, rgba(5, 6, 6, 0.6)),
    var(--section-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.86;
}

.bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 6, 0), #050606 100%),
    radial-gradient(circle at 18% 0%, rgba(44, 65, 206, 0.18), transparent 34%);
  pointer-events: none;
}

.bg-section > .section-inner {
  position: relative;
  z-index: 1;
}

.bg-mechanism {
  --section-bg: url("./assets/section-mechanism.webp");
}

.bg-about {
  --section-bg: url("./assets/section-about.webp");
}

.bg-vacancies {
  --section-bg: url("./assets/section-vacancies.webp");
}

.bg-contact {
  --section-bg: url("./assets/section-contact.webp");
}

.mechanism {
  background: #050606;
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  box-shadow: none;
}

.timeline li {
  position: relative;
  min-height: 150px;
  padding: 24px 24px;
  background: rgba(8, 9, 9, 0.82);
  backdrop-filter: blur(6px);
  border-right: 1px solid var(--line);
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  font-size: 17px;
  line-height: 1.18;
  max-width: 12ch;
}

.cards {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.vacancy-card,
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  padding: 36px 32px;
  backdrop-filter: blur(6px);
  border-width: 0 1px 0 0;
}

.card:last-child {
  border-right: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  margin-bottom: 44px;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.card p {
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.card ul,
.risk-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.55;
}

.card li::before {
  content: "• ";
  color: var(--accent);
}

.risk {
  background: #090a0a;
}

.risk h2 {
  color: var(--accent);
}

.risk-list {
  font-size: 24px;
}

.risk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  clip-path: polygon(10% 0, 100% 90%, 90% 100%, 0 10%);
}

.about {
  border-top: 1px solid var(--line);
}

.about .two-col {
  gap: clamp(88px, 11vw, 160px);
}

.directions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border: 0;
  align-content: flex-start;
  padding-top: 92px;
}

.directions span {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  background: rgba(8, 9, 9, 0.74);
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 9999px;
  color: var(--text);
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.directions span:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #ffffff;
}

.vacancies {
  background: #050606;
  border-block: 1px solid var(--line);
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.vacancy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 208px;
  padding: 28px;
  backdrop-filter: blur(6px);
  border-width: 0 1px 1px 0;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.vacancy-card:hover {
  transform: none;
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: #ffffff;
}

.vacancy-card:hover h3,
.vacancy-card:hover p,
.vacancy-card:hover span {
  color: #ffffff;
}

.vacancy-card p {
  margin-bottom: 0;
}

.vacancy-card span {
  margin-top: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  padding: clamp(34px, 5vw, 70px);
  background: rgba(8, 9, 9, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.contact-box {
  padding: 30px;
  background: rgba(5, 6, 6, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

dl {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.faq-list details {
  padding: 30px;
  border-width: 0 0 1px 0;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.faq-list p {
  margin: 16px 0 0;
}

.final-cta {
  padding: clamp(96px, 12vw, 156px) 0;
  background:
    linear-gradient(rgba(5, 6, 6, 0.72), rgba(5, 6, 6, 0.96)),
    url("./assets/rs42-hero.webp") center / cover;
  text-align: center;
}

.final-cta .section-inner {
  width: min(980px, calc(100% - 52px));
}

.final-cta p {
  margin-bottom: 30px;
  font-size: 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  padding: 34px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 10, 10, 0.98) 0%, rgba(9, 10, 10, 0.82) 70%, rgba(9, 10, 10, 0.52) 100%),
      linear-gradient(180deg, rgba(9, 10, 10, 0.25) 0%, #090a0a 100%);
  }

  .two-col,
  .cards.three,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .cards,
  .vacancy-grid {
    gap: 0;
  }

  .card,
  .vacancy-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card:last-child,
  .vacancy-card:last-child {
    border-bottom: 0;
  }

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

  .timeline li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .timeline span {
    margin-bottom: 10px;
  }

  .vacancy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directions {
    padding-top: 0;
  }

  .vacancy-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 768px) {
  .button,
  .header-cta,
  .menu-toggle,
  .directions span {
    border-radius: var(--radius);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 65px;
    padding: 12px 18px;
  }

  .brand-text {
    font-size: 22px;
  }

  .header-cta {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 23px;
  }

  .hero-copy,
  .lead-stack,
  .risk-list {
    font-size: 18px;
  }

  .button {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
  }

  .hero {
    padding-top: 96px;
    padding-inline: 18px;
  }

  .hero-media {
    background-position: 66% center;
    transform: scale(1.02);
  }

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

  .vacancy-card {
    min-height: 164px;
  }

  .contact-panel {
    padding: 24px;
  }

  dd {
    font-size: 21px;
  }
}
