:root {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0b0d0f;
  background-color: #f9fafc;
  line-height: 1.5;
}

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

body {
  margin: 0;
  background: #f9fafc;
  color: #10121a;
}

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

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

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.hero {
  background: #fff;
  padding: 32px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(8, 10, 20, 0.65), rgba(8, 10, 20, 0.4)),
    url("./images/Dnipropetrovsk.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  filter: saturate(0) contrast(1.3) brightness(0.95);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 40% -15% auto 30%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  z-index: 0;
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  color: #fff;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  gap: 24px;
  font-weight: 500;
}

.nav--desktop {
  display: flex;
}

.nav--mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav--desktop {
    display: none;
  }
}

.nav--mobile {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
}

.nav--mobile.nav--open {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 100%;
  height: 100vh;
  background: #11131c;
  padding: 80px 32px 32px;
  z-index: 99999 !important;
  color: #fff;
  gap: 32px;
  transform: translateX(100%) translateZ(0);
  animation: slideInFromRight 0.3s ease-out forwards;
  overflow-y: auto;
  will-change: transform;
  isolation: isolate;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5), -5px 0 20px rgba(0, 0, 0, 0.3);
}

.nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 0;
}

.nav__close span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
}

.nav__close span:first-child {
  transform: rotate(45deg);
}

.nav__close span:last-child {
  transform: rotate(-45deg);
}

.nav__close:hover span {
  opacity: 0.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%) translateZ(0);
  }
  to {
    transform: translateX(0) translateZ(0);
  }
}

body.menu-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99998 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav--open a {
  color: #fff;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease;
}

.nav--open a:hover {
  opacity: 0.7;
}

.hero__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 10001;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero__burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  pointer-events: none;
}

.hero__headline {
  margin-top: 80px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero__tagline {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  margin: 0 0 16px;
}

.hero__description {
  max-width: 520px;
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  background: #0a0c14;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(6, 8, 18, 0.4);
  background: #070910;
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.form .btn {
  width: 100%;
}

.hero__cta .btn,
.hero__cta .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 20px 45px rgba(3, 6, 18, 0.35);
  backdrop-filter: blur(20px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero__cta .btn:hover,
.hero__cta .link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 30px 55px rgba(3, 6, 18, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
}

.btn--outline {
  background: transparent;
  color: #11131c;
  border: 1px solid rgba(17, 19, 28, 0.2);
}

.link {
  font-weight: 600;
  text-decoration: underline;
}

.section {
  padding: 96px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fallback: якщо JavaScript не працює, елементи будуть видимі через 2 секунди */
.reveal:not(.is-visible) {
  animation: reveal-fallback 0.1s ease 2s forwards;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Вимкнути fallback анімацію для елементів з класом is-visible */
.reveal.is-visible {
  animation: none;
}

.reveal-up {
  transform: translateY(90px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-pop {
  transform: scale(0.92);
}

.reveal--fast {
  transition-duration: 0.5s;
}

.reveal--slow {
  transition-duration: 1.1s;
}

.reveal--delay-1 {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

.reveal--delay-3 {
  transition-delay: 0.45s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-pop.is-visible {
  transform: none;
}

.section--dark {
  background: #11131c;
  color: #f7f7fb;
}

.section__header {
  margin-bottom: 32px;
}

.section__header h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(59, 63, 81, 0.8);
}

.section--dark .eyebrow {
  color: rgba(247, 247, 251, 0.6);
}

.vacancies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(16, 18, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.card--with-bg {
  color: #fff;
  padding: 40px;
}

.card--with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--card-bg-image);
  filter: brightness(0.65);
  z-index: 0;
}

.card--with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 17, 0.1), rgba(5, 7, 17, 0.85));
  z-index: 0;
}

.card--with-bg > * {
  position: relative;
  z-index: 1;
}

.card--with-bg ul,
.card--with-bg p,
.card--with-bg li {
  color: rgba(255, 255, 255, 0.92);
}

.card--with-bg ul li::marker {
  color: rgba(255, 255, 255, 0.7);
}

.card h3 {
  margin: 0 0 8px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b4f63;
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  box-shadow: none;
}

.about__text {
  max-width: 720px;
  color: rgba(247, 247, 251, 0.8);
}

.about__text--caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.about__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.about__office {
  margin-top: 48px;
}

.about__office-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}

.about__office h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.about__office-header p {
  max-width: 420px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.about__gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.about__gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.about__gallery--stacked {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about__gallery-wide {
  height: 280px;
}

@media (min-width: 768px) {
  .about__gallery--stacked .about__gallery-wide {
    grid-column: span 2;
  }
}

.stat {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.apply {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
}

.apply__benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apply__benefits li {
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 15px 30px rgba(16, 18, 26, 0.1);
  font-weight: 600;
}

.form {
  background: #fff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(16, 18, 26, 0.1);
  display: grid;
  gap: 18px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 6px;
}

.form input,
.form select,
.form textarea {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 26, 0.15);
  font: inherit;
  background: #f5f6fa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(16, 18, 26, 0.3);
  box-shadow: 0 0 0 3px rgba(16, 18, 26, 0.05);
}

.form input.error,
.form select.error,
.form textarea.error {
  border-color: #e63946;
  background: #fff5f5;
}

.form textarea {
  resize: vertical;
}

.form__error {
  display: none;
  font-size: 0.875rem;
  color: #e63946;
  margin-top: 4px;
  font-weight: 500;
}

.form__error.show {
  display: block;
}

.form__error--general {
  background: #fff5f5;
  border: 1px solid #e63946;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.form__note {
  font-size: 0.85rem;
  color: #6b6f82;
  margin: 0;
}

/* Стилі для intl-tel-input */
.form label .iti {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.iti {
  width: 100%;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  margin: 0;
}

.iti__flag-container {
  border-radius: 16px 0 0 16px;
  height: auto;
  flex-shrink: 0;
}

.iti input {
  border-radius: 0 16px 16px 0;
  border: 1px solid rgba(16, 18, 26, 0.15);
  border-left: none;
  padding: 12px 16px;
  height: auto;
  min-height: 44px;
  flex: 1;
  width: 0;
  min-width: 0;
  background: #f5f6fa;
}

.iti__selected-flag {
  border-radius: 16px 0 0 16px;
  padding: 12px 8px 12px 12px;
  background: #f5f6fa;
  border: 1px solid rgba(16, 18, 26, 0.15);
  border-right: none;
  height: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.iti__flag-container {
  border: none;
}

.iti input:focus {
  outline: none;
  border-color: rgba(16, 18, 26, 0.25);
}

.iti__selected-flag:focus-within {
  border-color: rgba(16, 18, 26, 0.25);
}

.iti__selected-dial-code {
  font-size: inherit;
  color: inherit;
  font-weight: 500;
}

.iti__country-list {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  border: 1px solid rgba(16, 18, 26, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
}

.iti__country {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iti__country:hover,
.iti__country.iti__highlight {
  background-color: #f5f6fa;
}

.iti__country-name,
.iti__dial-code {
  font-size: inherit;
  color: inherit;
}

.iti__flag-box {
  margin-right: 8px;
}

.iti__arrow {
  border-top-color: rgba(16, 18, 26, 0.5);
  margin-left: 4px;
}

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 20px 24px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}

.contact-list span {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card {
  background: #0f121a;
  color: #fff;
  border-radius: 24px;
  padding: 32px;
}

.footer {
  background: #0f121a;
  color: #d1d5e0;
  padding: 32px 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 18px;
}

@media (max-width: 768px) {
  .nav--mobile.nav--open {
    display: flex !important;
  }

  .hero__burger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 10001;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 72px 0;
  }
}

/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  width: calc(100% - 48px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  z-index: 1;
}

.modal.show .modal__content {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0d0f;
}

.modal__message {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b4f63;
}

.modal__button {
  width: 100%;
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  background: #0a0c14;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-size: 0.875rem;
}

.modal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(6, 8, 18, 0.4);
  background: #070910;
}

.modal__button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modal__content {
    padding: 24px;
    max-width: 90%;
  }

  .modal__header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .modal__title {
    font-size: 1.25rem;
  }

  .modal__message {
    font-size: 0.9375rem;
  }
}

