/* Общие стили для всех страниц */

:root {
  color-scheme: dark;
}

/* Предотвращение FOUC для мобильной панели навигации */
.mobile-bottom-nav {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

@media (max-width: 1024px) {
  .consultation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Исправление для мобильной навигации */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 80px !important;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(51, 51, 51, 0.9) 50%, rgba(26, 26, 26, 0.95) 100%) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-top: 3px solid #8B4513 !important;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.4), 0 -3px 15px rgba(139, 69, 19, 0.3) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 0 15px !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #e0e0e0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 2px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  min-width: 60px !important;
  min-height: 60px !important;
  position: relative !important;
  overflow: hidden !important;
}

.mobile-nav-item i {
  display: inline-block !important;
  font-size: 24px !important;
  margin-bottom: 5px !important;
  transition: all 0.3s ease !important;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transform: none !important;
  animation: none !important;
  line-height: 1 !important;
  vertical-align: baseline !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  text-indent: 0 !important;
  white-space: normal !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
  font-variant: normal !important;
  font-stretch: normal !important;
  font-size-adjust: none !important;
  font-synthesis: none !important;
  font-display: auto !important;
  font-language-override: normal !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  font-palette: normal !important;
  font-synthesis-weight: auto !important;
  font-synthesis-style: auto !important;
  font-synthesis-small-caps: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  -webkit-text-stroke-color: transparent !important;
  -webkit-text-stroke-width: 0 !important;
  -webkit-font-feature-settings: normal !important;
  -moz-font-feature-settings: normal !important;
  font-feature-settings: normal !important;
  font-kerning: auto !important;
  font-variant-ligatures: normal !important;
  font-variant-caps: normal !important;
  font-variant-numeric: normal !important;
  font-variant-east-asian: normal !important;
  zoom: 1 !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  transform-origin: 50% 50% !important;
  -webkit-transform-origin: 50% 50% !important;
  -moz-transform-origin: 50% 50% !important;
  -ms-transform-origin: 50% 50% !important;
  -o-transform-origin: 50% 50% !important;
  scale: 1 !important;
  -webkit-scale: 1 !important;
  -moz-scale: 1 !important;
  -ms-scale: 1 !important;
  -o-scale: 1 !important;
  rotate: 0 !important;
  -webkit-rotate: 0 !important;
  -moz-rotate: 0 !important;
  -ms-rotate: 0 !important;
  -o-rotate: 0 !important;
  translate: 0 0 !important;
  -webkit-translate: 0 0 !important;
  -moz-translate: 0 0 !important;
  -ms-translate: 0 0 !important;
  -o-translate: 0 0 !important;
  skew: 0 0 !important;
  -webkit-skew: 0 0 !important;
  -moz-skew: 0 0 !important;
  -ms-skew: 0 0 !important;
  -o-skew: 0 0 !important;
  matrix: 1 0 0 1 0 0 !important;
  -webkit-matrix: 1 0 0 1 0 0 !important;
  -moz-matrix: 1 0 0 1 0 0 !important;
  -ms-matrix: 1 0 0 1 0 0 !important;
  -o-matrix: 1 0 0 1 0 0 !important;
  color: #e0e0e0 !important;
}

.mobile-nav-item span {
  display: block !important;
  font-size: 10px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  color: #e0e0e0 !important;
}

.mobile-nav-item.active i {
  transform: scale(1.1) !important;
  color: #8B4513 !important;
}

.mobile-nav-item.active span {
  color: #8B4513 !important;
}

/* Скрыть мобильную навигацию на десктопе */
@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-nav-item i::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e0e0e0 !important;
  }

  /* Стили для иконок в навбаре на десктопе */
  .navbar-nav a i.fas {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-left: 5px !important;
    display: inline-block !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900 !important;
  }

  .mobile-nav-item.active i::before {
    color: #8B4513 !important;
  }

  .mobile-nav-item .fas.fa-home::before {
    content: "\f015" !important;
  }

  .mobile-nav-item .fas.fa-building::before {
    content: "\f1ad" !important;
  }

  .mobile-nav-item .fas.fa-shield-alt::before {
    content: "\f3ed" !important;
  }

  .mobile-nav-item .fas.fa-briefcase::before {
    content: "\f0b1" !important;
  }

  .mobile-nav-item .fas.fa-phone::before {
    content: "\f095" !important;
  }

  body .mobile-bottom-nav .mobile-nav-item i {
    font-size: 24px !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900 !important;
    color: #e0e0e0 !important;
    display: inline-block !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  html body .mobile-bottom-nav .mobile-nav-item i {
    font-size: 24px !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900 !important;
    color: #e0e0e0 !important;
    display: inline-block !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    vertical-align: middle !important;
  }
}


/* Базовые стили для карточек */
.row.mt-5 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
  transition: all 0.3s ease;
}

.row.mt-5 .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  gap: 0.75rem; /* Единый отступ между элементами */
}

/* Единые стили для всех текстовых элементов */
.card-text-element {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Заголовки карточек */
.row.mt-5 .card h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Основное описание */
.row.mt-5 .card p.lead {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  min-height: 7rem;
  display: flex;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

/* Подзаголовки */
.row.mt-5 .card h3.card-heading {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Списки */
.row.mt-5 .card ul {
  margin: 0;
  padding-left: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 6rem;
}

.row.mt-5 .card ul li {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  padding: 0.1rem 0;
  position: relative;
}

.row.mt-5 .card ul li::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  color: #007bff;
}

/* Нижний текст */
.row.mt-5 .card p.card-text {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  min-height: 2.5rem;
  text-align: left;
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.row.mt-5 .card p.card-text strong {
  display: block;
  text-align: center;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

/* Контейнеры для выравнивания */
.card-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.75rem;
}

.card-top-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6rem;
}

.card-bottom-content {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Унификация всех карточек */
#ohrana-biznesa .card-body,
#ohrana-sotsialnykh-obektov .card-body,
#fizicheskaya-ohrana .card-body,
#ohrana-meropriyatiy .card-body {
  gap: 0.75rem;
}

/* Адаптивные стили с плавными переходами */
@media (max-width: 1400px) {
  .row.mt-5 .card {
    min-height: 430px;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.4rem;
    min-height: 3.2rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.95rem;
    min-height: 5.8rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 5.5rem;
  }
}

@media (max-width: 1200px) {
  .row.mt-5 .card {
    min-height: 420px;
  }
  
  .row.mt-5 .card-body {
    padding: 1.25rem;
    gap: 0.7rem;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.35rem;
    min-height: 3rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.92rem;
    min-height: 6.5rem;
    line-height: 1.45;
  }
  
  .row.mt-5 .card h3.card-heading {
    font-size: 1.05rem;
    min-height: 2rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 5rem;
  }
  
  .row.mt-5 .card ul li {
    font-size: 0.87rem;
  }
  
  .row.mt-5 .card p.card-text {
    font-size: 1.25rem;
    min-height: 2.3rem;
  }
}

@media (max-width: 992px) {
  .row.mt-5 .card {
    min-height: 400px;
  }
  
  .row.mt-5 .card-body {
    padding: 1.1rem;
    gap: 0.65rem;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.25rem;
    min-height: 2.8rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.88rem;
    min-height: 6.2rem;
  }
  
  .row.mt-5 .card h3.card-heading {
    font-size: 1rem;
    min-height: 6.8rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 4.5rem;
    padding-left: 1rem;
  }
  
  .row.mt-5 .card ul li {
    font-size: 0.84rem;
  }
  
  .row.mt-5 .card p.card-text {
    font-size: 1.1rem;
    min-height: 2.1rem;
  }
}

@media (max-width: 768px) {
  .row.mt-5 .card {
    min-height: 380px;
    margin-bottom: 1.5rem;
  }
  
  .row.mt-5 .card-body {
    padding: 1rem;
    gap: 0.6rem;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.2rem;
    min-height: 2.6rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.85rem;
    min-height: 7.9rem;
    line-height: 1.4;
  }
  
  .row.mt-5 .card h3.card-heading {
    font-size: 0.95rem;
    min-height: 4.5rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 4rem;
  }
  
  .row.mt-5 .card ul li {
    font-size: 0.82rem;
  }
  
  .row.mt-5 .card p.card-text {
    font-size: 1.1rem;
    min-height: 2rem;
  }
}

@media (max-width: 576px) {
  .row.mt-5 .card {
    min-height: 360px;
  }
  
  .row.mt-5 .card-body {
    padding: 0.9rem;
    gap: 0.55rem;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.1rem;
    min-height: 2.4rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.82rem;
    min-height: 2.8rem;
    line-height: 1.35;
  }
  
  .row.mt-5 .card h3.card-heading {
    font-size: 0.9rem;
    min-height: 1.4rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 3.8rem;
    padding-left: 0.9rem;
  }
  
  .row.mt-5 .card ul li {
    font-size: 0.78rem;
    padding: 0.05rem 0;
  }
  
  .row.mt-5 .card p.card-text {
    font-size: 0.95rem;
    min-height: 1.8rem;
  }
}

@media (max-width: 400px) {
  .row.mt-5 .card {
    min-height: 340px;
  }
  
  .row.mt-5 .card-body {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .row.mt-5 .card h2 {
    font-size: 1.2rem;
    min-height: 2.2rem;
  }
  
  .row.mt-5 .card p.lead {
    font-size: 0.84rem;
    min-height: 2.6rem;
  }
  
  .row.mt-5 .card h3.card-heading {
    font-size: 0.85rem;
    min-height: 1.3rem;
  }
  
  .row.mt-5 .card ul {
    min-height: 3.5rem;
  }
  
  .row.mt-5 .card ul li {
    font-size: 0.77rem;
  }
  
  .row.mt-5 .card p.card-text {
    font-size: 0.95rem;
    min-height: 1.6rem;
  }
}

/* Плавные переходы между медиа-запросами */
.row.mt-5 .card,
.row.mt-5 .card h2,
.row.mt-5 .card p,
.row.mt-5 .card h3,
.row.mt-5 .card ul,
.row.mt-5 .card ul li {
  transition: all 0.3s ease;
}

/* Гарантия одинаковой высоты карточек в строке */
.row.mt-5 {
  display: flex;
  flex-wrap: wrap;
}

.row.mt-5 > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* Адаптивные шрифты для секции "Почему выбирают нас" */
@media (max-width: 768px) {
  .row.mt-4 .col-12 p strong {
    font-size: 1.1rem;
  }
  .row.mt-4 .col-12 p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .row.mt-4 .col-12 p strong {
    font-size: 1rem;
  }
  .row.mt-4 .col-12 p {
    font-size: 1rem;
  }
}

/* Стили для кастомного модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: transparent;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.8) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: transparent;
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: linear-gradient(90deg, #8B4513, #A0522D, #8B4513);
  animation: shimmer 2s infinite;
}

.modal-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
  margin: 0 auto;
  width: auto;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 2rem;
  color: #e0e0e0;
  background: transparent;
}

.modal-body p {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 8px;
  background: #44444400;
  color: #e0e0e0;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.3);
}

.privacy-text {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  margin: 1rem 0;
}

.privacy-text a {
  color: #8B4513;
  text-decoration: none;
}

.privacy-text a:hover {
  text-decoration: underline;
}

/* Центрирование кнопки в модальном окне */
.modal-body .text-center .btn {
  display: block;
  margin: 0 auto;
  width: auto;
}

/* Адаптивность для модального окна */
@media (max-width: 576px) {
  .modal-body {
    padding: 1.5rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 0.9rem;
  }

  .modal-close {
    font-size: 1.5rem;
    width: 25px;
    height: 25px;
  }

  .text-center {
    text-align: center !important;
  }

  .modal-content {
    padding-bottom: 80px; /* Учитываем высоту мобильной панели навигации */
  }
}

/* Стили для модальных окон (из vacansy.php) */
.modal-backdrop {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(51, 51, 51, 0.9) 100%);
  backdrop-filter: blur(5px);
}

.custom-modal {
  background: linear-gradient(135deg, #6a587836 0%, #1a1a1a 100%);
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(111, 66, 193, 0.4);
  color: #e0e0e0;
  overflow: hidden;
  position: relative;
}

.custom-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(111, 66, 193, 0.1), transparent);
  transition: left 0.5s;
}

.custom-modal:hover::before {
  left: 100%;
}

.custom-modal-header {
  border-bottom: none;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #e0e0e0;
  background: transparent;
}

.custom-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: linear-gradient(90deg, #8B4513, #8B4513, #8B4513);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.custom-modal-body {
  padding: 2rem;
  color: #e0e0e0;
  background: transparent;
}

.text-purple {
  color: #8B4513 !important;
}

.custom-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #8B4513;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring:nth-child(3) { animation-delay: -0.15s; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-light {
  color: #e0e0e0 !important;
  font-weight: 500;
}

.text-muted {
  color: #ccc !important;
}

input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #555 100%) !important;
}

/* Анимация появления модального окна */
.custom-modal {
  transform: scale(0.8) translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal.animate-in {
  transform: scale(1) translateY(0);
  opacity: 1;
  display: block;
  margin: 0 auto;
  width: auto;
  color: #00000066;
  background: #00000099;
}

/* Адаптивность */
@media (max-width: 576px) {
  .custom-modal-body {
    padding: 1.5rem;
  }
  .custom-modal-header {
    padding: 1rem;
  }
  .custom-spinner {
    width: 50px;
    height: 50px;
  }
}

/* Стили для окна просмотра файлов */
#file-window {
  border: 1px solid #8B4513;
  padding: 15px;
  background: #6a587836;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#file-list {
  max-height: 150px;
  overflow-y: auto;
}

/* Кастомный скроллбар */
#file-list::-webkit-scrollbar {
  width: 8px;
}

#file-list::-webkit-scrollbar-track {
  background: #6a587836;
}

#file-list::-webkit-scrollbar-thumb {
  background: #8B4513;
  border-radius: 4px;
}

#file-list::-webkit-scrollbar-thumb:hover {
  background: #8B4513;
}

/* Адаптивность для file-window на мобильных и планшетах */
@media (max-width: 992px) {
  #file-window {
    width: 100% !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

/* Стили для крестика удаления файлов */
.remove-file {
  cursor: pointer;
  color: #8B4513;
  float: right;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  margin-left: 8px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 24px;
  min-height: 24px; 
  border: 1px solid rgba(139, 69, 19, 0.3);  
  position: absolute;
  margin-top: auto;
  right: 10px;
}

/* Увеличенный размер для мобильных устройств и планшетов */
@media (max-width: 992px) {
  .remove-file {
    font-size: 24px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
	position: absolute;
    right: 6px;
  }
}

/* Hover эффекты для крестика */
.remove-file:hover {
  color: #ff4444;
  background: rgba(255, 0, 0, 0.1);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Активное состояние для touch устройств */
.remove-file:active {
  transform: scale(0.95);
  background: rgba(255, 0, 0, 0.2);
}

/* Стили для элементов файлов для поддержки свайпа */
.file-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scaleX(0.98);
}

/* Hover эффект для элементов файлов */
.file-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Адаптивность для мобильных */
@media (max-width: 992px) {
  .file-item {
    padding: 21px 20px;
    margin-bottom: 10px;
    border-radius: 55px;
  }
}

/* Отступ между рядами вакансий */
.row.mt-5 > [class*='col-'] {
  margin-bottom: 15px;
}

/* Стили для текста согласия на мобильных устройствах */
.mobile-consent {
  display: none;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 1025px) {
  .mobile-consent {
    display: block;
  }
  .form-control.mb-3 {
    margin-bottom: 1.5rem !important;
  }
}

/* Центрирование кнопки относительно текста согласия на мобильных и планшетах */
@media (max-width: 1024px) {
  .consent-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mobile-consent {
    margin-bottom: 10px;
  }
  .btn-consent {
    margin: 0 auto;
  }
}

/* Стили для test-form.html */
body {
  padding: 0px;
}

.test-form {
  max-width: 500px;
  margin: 0 auto;
}

/* Адаптивные стили для текстовых блоков на планшетах */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  p.lead {
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 1rem;
  }
  ul.lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  ul.lead li {
    margin-bottom: 0.5rem;
  }
}

/* Адаптивные стили для текстовых блоков на мобильных */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  p.lead {
    font-size: 0.9rem; /* Минимальный 16px для читаемости */
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.8rem;
    padding: 0 0.625rem; /* 10px в rem */
 	margin-top: 1.5rem;
 	font-weight: bold;
  }
  ul.lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    padding-left: 1.25rem; /* 20px в rem */
  }
  ul.lead li {
    margin-bottom: 0.4rem;
  }
  .container {
    padding-left: 0.9375rem; /* 15px в rem */
    padding-right: 0.9375rem;
  }
  /* Обеспечить sans-serif шрифт */
  body, h1, h2, p, ul {
    font-family: 'Montserrat', sans-serif;
  }
}

/* Новые стили для карточек вакансий */
.vacancy-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  flex-direction: column;
}

/* Равная высота карточек на десктопах и планшетах */
@media (min-width: 769px) {
  .vacancy-card {
    flex: 1;
  }

  .row.mt-5 {
    align-items: stretch;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vacancy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a, #374151, #1e3a8a);
}

.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1e1e1e 0%, #333 50%, #1e1e1e 100%);
}

.vacancy-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.vacancy-icon {
  font-size: 1.5rem;
  color: #8b4513;
}

img.vacancy-icon {
  width: 40px;
  height: auto;
}

.vacancy-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  flex: 1;
}

.vacancy-salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.salary-icon {
  color: #d4af37;
  font-size: 1.2rem;
}

.salary-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4af37;
}

.vacancy-details {
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.detail-icon {
  color: #6b7280;
  font-size: 1rem;
  width: 16px;
}

.vacancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vacancy-tag {
  background: #374151;
  color: #e0e0e0;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #4b5563;
}

.vacancy-benefits {
  background: rgba(30, 58, 138, 0.1);
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-size: 0.9rem;
  flex: 1;
}

.vacancy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.urgent-badge {
  background: #dc2626;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.housing-badge {
  background: #059669;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.food-badge {
  background: #f59e0b;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.vacancy-button {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.vacancy-button:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

/* Адаптивность для карточек вакансий */
@media (max-width: 768px) {
  .vacancy-card {
    padding: 1rem;
  }

  .vacancy-title {
    font-size: 1.1rem;
  }

  .salary-amount {
    font-size: 1.3rem;
  }

  .detail-item {
    font-size: 0.9rem;
  }

  .vacancy-benefits {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Styles extracted from company.php */

/* Button styles for .btn.btn-green.btn-lg */
/* Базовые стили кнопки */
.btn.btn-yellow {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  min-width: 0;
}

/* Анимация блеска */
.btn.btn-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

/* Состояние при наведении */
.btn.btn-yellow:hover {
  color: #fff;
  background: linear-gradient(135deg, #A0522D 0%, #CD853F 50%, #A0522D 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(111, 66, 193, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn.btn-yellow:hover::before {
  left: 100%;
}

/* Состояние при нажатии */
.btn.btn-yellow:active {
  color: #fff;
  background: linear-gradient(135deg, #A0522D 0%, #CD853F 50%, #A0522D 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(111, 66, 193, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn.btn-yellow:active::before {
  left: 100%;
}

/* Состояние при фокусе для accessibility */
.btn.btn-yellow:focus {
  outline: none;
}

/* Стили для span */
.btn.btn-yellow span {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  min-width: 0; /* Важно для правильного переноса в grid */
  word-wrap: break-word;
}

/* Стили для иконки */
.btn.btn-yellow i {
  flex-shrink: 0; /* Запрещаем сжатие иконки */
}

/* Медиа-запросы для кнопок */
@media (min-width: 1025px) {
  .btn.btn-yellow {
    flex-direction: row;
    gap: 0.5rem;
    min-height: 3rem;
  }
}

@media (max-width: 1024px) {
  .btn.btn-yellow {
    padding: 0.6rem 0.8rem;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
}

@media (max-width: 768px) {
  .btn.btn-yellow {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .btn.btn-yellow {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .btn.btn-yellow {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .btn.btn-yellow {
    font-size: 9px;
  }
}

@media (max-width: 320px) {
  .btn.btn-yellow {
    font-size: 10px;
  }
}

/* Остальные ваши стили остаются без изменений */
.mission-text {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

p[style*="display: flex"] {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}

#modal {
  display: none;
}

a[style*="color: #ccc"] {
  color: #ccc !important;
}

.d-block.d-lg-none {
  overflow-y: auto;
  max-height: 30vh;
  background-color: #e9ecef;
  color: #212529;
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Убрать голубые точки перед всеми пунктами списка */
.row.mt-5 .card ul li::before {
  content: "";
}

/* Стили для нового футера */
.footer {
  background: transparent;
  color: #e0e0e0;
  padding: 20px 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B4513, #A0522D, #8B4513);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #8B4513;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-section h3.special {
  color: #8B4513;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  display: flex;
  justify-content: flex-end;
}

.footer-section h3 i {
  color: #8B4513;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.footer-section ul li.new {
  margin-bottom: 0px;
  align-items: center;
  gap: 8px;
  display: flex;
  justify-content: flex-end;
}

.footer-section ul li i {
  color: #8B4513;
  width: 16px;
  text-align: center;
}

.footer-section ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #8B4513;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
  filter: brightness(0.9);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.footer-logo:hover {
  transform: none;
  box-shadow: none;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(139, 69, 19, 0.3);
  padding-top: 10px;
  margin-top: -30px;
}

.footer-bottom p {
  margin: 0px 0;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Специальные стили для класса special */
.special {
  color: #A0522D !important;
}

/* Стили для класса new */
.new {
  color: #e0e0e0;
  font-weight: 500;
}

/* Анимация fade-in-up */
.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
  .footer {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-section {
    min-width: auto;
    width: 100%;
  }

  .footer-section h3 {
    justify-content: center;
  }

  .footer-section ul li {
    justify-content: center;
  }

  .footer-brand {
    order: -1;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 0;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-section ul li {
    font-size: 0.9rem;
  }

  .footer-tagline {
    font-size: 1rem;
  }
}
.custom-bold {
    font-weight: 700 !important; /* Или другие стили */
    color: #91491b;
	    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Стили для admin-vacansy.html */

/* Общие стили для админ-панели */
#admin-panel, #login-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
}

/* Заголовки */
#admin-panel h2, #login-form h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#admin-panel h3 {
    color: #8B4513;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 0.5rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #8B4513;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.3);
    color: #fff;
}

.form-control::placeholder {
    color: #ccc;
}

/* Кнопки */
.btn-green {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.btn-green:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 50%, #A0522D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
}

.btn-green:active {
    transform: translateY(0);
}

/* Чекбоксы */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    margin-right: 0.5rem;
}

.form-check-input:checked {
    background-color: #8B4513;
    border-color: #8B4513;
}

.form-check-label {
    color: #e0e0e0;
    font-weight: 500;
}

/* Карточка предварительного просмотра */
.card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #2c2c2c 100%);
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #8B4513;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.card strong {
    color: #fff;
}

/* Список вакансий */
#current-vacancies {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#current-vacancies .d-flex {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#current-vacancies .d-flex:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#current-vacancies span {
    color: #e0e0e0;
    font-weight: 500;
}

/* Кнопки редактирования и удаления */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-left: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s 
    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Адаптивность для планшетов */
@media (max-width: 1199px) {
    #admin-panel, #login-form {
        padding: 1.75rem;
        margin: 1.5rem auto;
        max-width: 95%;
        box-sizing: border-box;
    }

    .row .col-md-6 {
        width: 100%;
        margin-bottom: 2rem;
    }

    #admin-panel h2, #login-form h2 {
        font-size: 1.6rem;
    }

    #admin-panel h3 {
        font-size: 1.3rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .btn-green {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #admin-panel, #login-form {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    #admin-panel h2, #login-form h2 {
        font-size: 1.5rem;
    }

    #admin-panel h3 {
        font-size: 1.2rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .btn-green {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .col-md-6 {
        margin-bottom: 2rem;
    }

    #current-vacancies .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-sm {
        align-self: flex-end;
    }

    .card {
        margin: 0;
    }
}

@media (max-width: 576px) {
    #admin-panel, #login-form {
        padding: 1rem;
        margin: 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    #admin-panel h2, #login-form h2 {
        font-size: 1.3rem;
    }

    #admin-panel h3 {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .btn-green {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    #current-vacancies {
        padding: 0.5rem;
    }

    #current-vacancies .d-flex {
        padding: 0.5rem;
    }
}

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 480px) {
    #admin-panel, #login-form {
        padding: 0.75rem;
        margin: 0.25rem;
    }

    #admin-panel h2, #login-form h2 {
        font-size: 1.2rem;
    }

    #admin-panel h3 {
        font-size: 1rem;
    }

    .form-control {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .btn-green {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    #admin-panel, #login-form {
        padding: 0.5rem;
        margin: 0.1rem;
    }

    #admin-panel h2, #login-form h2 {
        font-size: 1.1rem;
    }

    #admin-panel h3 {
        font-size: 0.95rem;
    }

    .form-control {
        font-size: 0.75rem;
        padding: 0.3rem;
    }

    .btn-green {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 0.5rem;
    }

    .card-title {
        font-size: 0.9rem;
    }
}

/* Анимации */
#admin-panel, #login-form, .card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скролинг и плавная прокрутка для мобильных и планшетов */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    #admin-panel, #login-form {
        overflow: visible;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 100vh;
    }

    #admin-panel, #login-form {
        overflow: visible;
        min-height: auto;
        padding-bottom: 100px; /* Учитываем мобильную панель навигации */
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #current-vacancies {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Перемещение кнопок редактирования ниже на десктопе */
@media (min-width: 769px) {
    #current-vacancies .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    #current-vacancies .d-flex > div {
        margin-top: 0;
        align-self: flex-start;
    }

    #current-vacancies .d-flex > span {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}
@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
}