:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;

  --bg: var(--black);
  --bg-elevated: var(--gray-950);
  --bg-matte: #0d0d0d;
  --bg-matte-hover: #141414;
  --text: var(--white);
  --text-secondary: var(--gray-400);
  --text-tertiary: var(--gray-500);
  --orange: #f97316;
  --orange-hover: #fb923c;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
  --container-max: 1120px;
  --edge-padding: var(--space-6);
  --section-gap: var(--space-12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--black);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-hover);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav__cta {
  color: var(--white) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--white);
}

.burger span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(var(--header-h) + var(--space-12)) var(--edge-padding) var(--section-gap);
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
}

.hero__video-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--black);
  display: none;
}

.hero__video-wrap.has-poster .hero__video-poster {
  display: block;
}

.hero__video-wrap.video-error .hero__video {
  display: none;
}

.hero__video-wrap.video-error .hero__video-poster {
  display: block;
}

.hero__video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: none;
}

.hero__video-fallback {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  pointer-events: none;
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 680px;
  width: 100%;
  text-align: left;
}

.hero__contacts {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
}

.hero__contacts-heading {
  margin-bottom: var(--space-8);
}

.hero__contacts-heading .section__label {
  margin-bottom: var(--space-5);
}

.hero__contacts-heading .section__title {
  margin-bottom: -10px;
}

.hero__contacts-heading .section__lead {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.4;
  margin-left: 2px;
}

.hero__label,
.section__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e37a35;
  margin-bottom: var(--space-5);
}

.hero__title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.75rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero__subtitle {
  margin: 0 0 var(--space-10);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-height: 700px) {
  .hero {
    padding: calc(var(--header-h) + var(--space-6)) var(--edge-padding) var(--space-6);
  }


  .hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--space-3);
  }

  .hero__subtitle {
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
    line-height: 1.5;
  }

  .hero__actions {
    gap: var(--space-3);
  }

  .hero__actions .btn {
    padding: var(--space-3) var(--space-5);
    font-size: 0.875rem;
  }

  .hero__contacts-heading {
    margin-bottom: var(--space-5);
  }


  .hero__contacts-heading .section__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
  }

  .hero__contacts-heading .section__lead {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .contact-card {
    padding: var(--space-2) var(--space-4);
  }

  .contact-card__icon {
    width: 28px;
    height: 28px;
  }

  .contact-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .contact-card__label {
    font-size: 0.8125rem;
  }

  .contact-card__status {
    font-size: 0.6875rem;
  }
}

.hero__contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.contact-card {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.85;
}

.contact-card__icon svg,
.contact-card__icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-card__label {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

.contact-card__status--online .contact-card__dot {
  background: #34c759;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gray-200);
  color: var(--black);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  background: var(--bg-matte);
  border-color: var(--gray-500);
}

.btn--wide {
  width: 100%;
  max-width: 280px;
}

.section {
  padding: var(--section-gap) 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--edge-padding);
  box-sizing: border-box;
}


.section__title {
  margin: 0 0 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.section__lead {
  margin: 0 0 var(--space-12);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
}

.vacancies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) and (min-width: 1000px) {
  .vacancies {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 999px) {
  .vacancies {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vacancy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: var(--space-5);
  transition: background 0.2s ease;
}

.vacancy:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vacancy__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-secondary);
  opacity: 0.9;
}

.vacancy__icon svg,
.vacancy__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.vacancy__header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
}

.vacancy__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.vacancy__badge {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px var(--space-2);
  background: rgb(227 122 53);
  color: var(--white);
  border-radius: 4px;
}

.vacancy__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.vacancy__meta {
  display: flex;
  gap: var(--space-4);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: auto;
}

.vacancy__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--black);
  background: var(--white);
  border-radius: 6px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.vacancy__link:hover {
  opacity: 0.9;
  background: var(--gray-200);
  color: var(--black);
}

.faq {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.faq__item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.faq__item[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.faq__question:hover {
  color: var(--white);
}

.faq__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  color: var(--white);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer p {
  margin: 0;
  padding: 0 var(--space-6) var(--space-5);
  padding-top: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer {
  padding: var(--space-16) var(--edge-padding);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.footer__logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer__tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__nav {
  display: flex;
  gap: var(--space-6);
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer__logo {
    display: none;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
  }
}

body.menu-open {
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 50;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.back-to-top:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 1199px) {
  .header .container,
  .section .container,
  .footer .container {
    max-width: calc(100vw - 2 * var(--edge-padding));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --section-gap: var(--space-16);
    --edge-padding: var(--space-4);
  }

  .hero__contacts-heading {
    display: none;
  }

  .hero {
    padding-bottom: var(--section-gap);
  }

  .hero__contacts-grid {
    gap: var(--space-4);
  }

  .contact-card {
    padding: var(--space-2) var(--space-3);
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.25rem;
  }

  .burger {
    display: flex;
  }

  .burger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__actions .btn--outline {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn--wide {
    max-width: none;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section__lead {
    margin-bottom: var(--space-10);
  }

  .vacancies {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancy {
    padding: var(--space-4);
  }

  .faq__question {
    padding: var(--space-5) var(--space-6);
  }

  .faq__answer p {
    padding: 0 var(--space-6) var(--space-5);
  }

}

@media (max-width: 767px) {
  .vacancies {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-h) + var(--space-6)) var(--edge-padding) var(--section-gap);
  }

  .hero__content-wrap {
    padding-top: 0;
  }

  .hero__content {
    max-width: none;
  }

  .hero__label {
    display: none;
  }

  .hero__title {
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
  }

  .hero__subtitle {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: var(--space-6);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .btn--primary {
    font-size: 0.875rem;
    padding: var(--space-3) var(--space-5);
  }

  .hero__contacts-grid {
    flex-direction: column;
    gap: var(--space-3);
  }

  .contact-card__icon {
    width: 22px;
    height: 22px;
  }

  .contact-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .vacancies {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .vacancy {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .vacancy__meta {
    flex-direction: column;
    gap: var(--space-1);
  }

  .hero__content {
    text-align: center;
  }
}
