:root {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #f5f3f7;
  background-color: #0f0b16;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f0b16 0%, #1c1428 48%, #0f0b16 100%);
  color: inherit;
}

main {
  min-height: 100vh;
}

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.mosaic-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  pointer-events: none;
  z-index: 1;
}

.mosaic-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 11, 22, 0.6) 0%,
    rgba(15, 11, 22, 0.35) 45%,
    rgba(15, 11, 22, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  filter: saturate(0.95) brightness(1.05);
}

.mosaic-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 12, 24, 0.15), rgba(16, 12, 24, 0.4));
  z-index: 1;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  background: rgba(16, 12, 20, 0.46);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.badge {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  color: #ffffff;
}

p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.actions a,
.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: filter 200ms ease, transform 200ms ease;
  border: none;
  cursor: pointer;
}

.actions .primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  color: #1d1626;
  box-shadow: 0 15px 40px rgba(238, 225, 255, 0.25);
}

.actions .secondary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.actions a:hover,
.actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.vacancies {
  position: relative;
  padding: 6rem 1.5rem 8rem;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 2;
}

.vacancies__intro {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vacancies__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
}

.vacancies__intro p {
  color: rgba(245, 243, 247, 0.78);
}

.vacancies__intro a {
  color: #f8f5ff;
  font-weight: 600;
  text-decoration: none;
}

.vacancies__eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.vacancies__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.vacancy-card {
  position: relative;
  padding: 2.5rem;
  background: rgba(16, 12, 24, 0.75);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(11, 6, 18, 0.35);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vacancy-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vacancy-card__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.vacancy-card__header h3 {
  margin: 0;
  font-size: 1.75rem;
  color: #ffffff;
}

.vacancy-card__summary {
  color: rgba(245, 243, 247, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.vacancy-card__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vacancy-card__section + .vacancy-card__section {
  margin-top: 1.5rem;
}

.vacancy-card__section h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.vacancy-card__section ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
  color: rgba(245, 243, 247, 0.78);
  font-size: 0.98rem;
  line-height: 1.7;
}

.vacancy-card__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vacancy-card__footer p {
  font-size: 0.95rem;
  color: rgba(245, 243, 247, 0.72);
}

.vacancy-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  color: #1d1626;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms ease, filter 200ms ease;
}

.vacancy-card__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 6, 14, 0.68);
  backdrop-filter: blur(12px);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.contact-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__card {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  background: rgba(19, 14, 28, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(11, 6, 18, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(12px);
  transition: transform 240ms ease;
}

.contact-modal[aria-hidden="false"] .contact-modal__card {
  transform: translateY(0);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 200ms ease;
}

.contact-modal__close:hover {
  filter: brightness(1.15);
}

.contact-modal__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.contact-modal__description {
  margin: 0;
  color: rgba(245, 243, 247, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-modal__highlight {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-align: center;
  word-break: break-word;
}

.contact-modal__copy {
  align-self: center;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  color: #1d1626;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease;
}

.contact-modal__copy:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

@media (max-width: 1024px) {
  .mosaic-layer {
    padding: clamp(1rem, 6vw, 2.25rem);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .mosaic-layer {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    padding: 1.5rem;
  }

  .mosaic-tile {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 3rem 1.25rem;
  }

  .content {
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }

  .vacancies {
    padding: 4.5rem 1.25rem 6rem;
  }

  .vacancy-card {
    padding: 2rem;
  }

  .contact-modal__card {
    padding: 2rem;
    gap: 1.25rem;
  }
}
