/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0b0f19;
  color: #fff;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.container-second {
  max-width: 1100px;
  margin: auto;
}

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #ccc;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.btn.big {
  padding: 16px 28px;
  font-size: 18px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #555;
}

.phone-btn {
  padding: 0;
  border: none;
  background: none;
  color: #4da6ff;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
}

.hero p {
  color: #aaa;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* =========================
   SECTIONS
========================= */
.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 60px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cta {
  padding: 80px 20px;
  text-align: center;
}

.footer {
  padding: 30px;
  text-align: center;
  color: #888;
}

/* =========================
   FILTERS
========================= */
.filters {
  margin: 20px 0;
}

.filters button {
  margin-right: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   CARDS
========================= */
.glass {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.glass-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.job-card {
  cursor: pointer;
  transition: 0.2s;
}

.job-card:hover {
  transform: scale(1.02);
}

/* =========================
   CONTACT
========================= */
.contact-box {
  margin-top: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.contact-card {
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.name {
  margin-bottom: 8px;
  font-weight: 600;
}

.phone {
  display: inline-block;
  color: #00bcd4;
  text-decoration: none;
  font-weight: 500;
}

.phone:hover {
  text-decoration: underline;
}

/* =========================
   MODALS
========================= */
.modal,
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
}

.modal {
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
}

.contact-modal {
  z-index: 10000;
  padding: 20px;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  margin: 10% auto;
  padding: 30px;
  overflow-y: auto;
  border-radius: 16px;
  background: #0f172a;
}

.contact-modal-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 30px 20px;
  border-radius: 24px;
  background: #08142f;
  color: #fff;
  text-align: center;
}

.close,
.close-contact {
  position: absolute;
  cursor: pointer;
}

.close {
  top: 10px;
  right: 15px;
  font-size: 24px;
}

.close-contact {
  top: 12px;
  right: 18px;
  font-size: 30px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-links a {
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3d5afe, #5a4bff);
}

/* =========================
   ANIMATIONS
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade 1s forwards;
}

.delay {
  animation-delay: 0.3s;
}

.delay2 {
  animation-delay: 0.6s;
}

@keyframes fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .features,
  .pricing {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    flex-direction: column;
    background: #111;
  }

  .nav.active {
    display: flex;
  }

  .burger {
    display: block;
  }
}



.jobs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;        /* расстояние между карточками */
  justify-content: center;
  margin-top: 20px;
}

.job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1a1a1a;
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  max-width: 340px;
  transition: transform 0.2s;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.job-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.job-card p,
.job-card .salary {
  margin: 4px 0;
  font-size: 14px;
}

.job-card .more {
  display: inline-block;
  margin-top: 8px;
  color: #0af;
  font-weight: 500;
}

/* адаптация под телефоны */
@media (max-width: 480px) {
  .jobs-grid {
    flex-direction: column;
    gap: 12px;
  }

  .job-card {
    max-width: 100%;
  }
}


/* для всей страницы вакансии */
.vacancy-page {
  padding: 20px;
}

/* карточка вакансии — пусть растёт по высоте */
.vacancy-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 16px;
  background: #1a1a1a;
  color: #fff;
  overflow-y: auto;   /* добавляет скролл если контент большой */
}

/* сам текст описания */
.vacancy-card .description {
  white-space: pre-wrap; /* перенос строк */
  line-height: 1.6;
  margin-top: 15px;
}

.vacancy-card {
  max-height: none;
  overflow: visible;
}


html,
body {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
}


.vacancy-page {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}


.vacancy-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}


.description {
    max-height: none !important;
    overflow: visible !important;
}



.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 30px;

  color: #9ca3af;
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  padding: 10px 18px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;

  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);

  transition: all .3s ease;
}

.back-link span {
  font-size: 20px;
  transition: transform .3s ease;
}


.back-link:hover {
  color: white;

  border-color: rgba(255,255,255,0.2);

  background: rgba(255,255,255,0.08);

  transform: translateX(-3px);
}


.back-link:hover span {
  transform: translateX(-4px);
}


.manager-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 25%;
    margin-bottom: 15px;
    border: 3px solid rgba(255,255,255,0.3);
}


.contact-card {
    text-align: center;
    padding: 25px;
}


.role {
    font-size: 14px;
    opacity: 0.7;
    margin-top: -10px;
    margin-bottom: 15px;
}

.manager-photo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
}