.page__vacancy-logo_footer a {
  align-items: center;
  display: flex;
  align-content: center;
  gap: 10px;
  color: #000;
  margin: 0 0 25px 35px;
}

.page__vacancy-logo_footer img {
  width: 50px;
  border-radius: 10px;
}

#map > ymaps > ymaps {
  border-radius: 20px;
}

#map > ymaps > ymaps > ymaps {
  border-radius: 20px;
}

.video-box iframe {
  border-radius: 10px;
}

.page {
  min-height: 100%;
  background: url('../images/new_bg.webp');
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-size: auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100vh;
  overflow-y: scroll;
  padding: 0;
}

.page__vacancy {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-width: 1100px;
  margin: 20px;
  box-shadow: 0 1px 7px #222;
  border-radius: 10px;
}

.page__vacancy-content {
  max-width: 1100px;
  margin: 0 20px 15px;
  padding: 10px 15px;
  box-shadow: 0 5px 7px #222;
  border-radius: 10px;
}

.page__vacancy-shadow-img img {
  object-fit: fill;
  border-radius: 10px;
  height: auto;
}

.vacancy_wrapper {
  display: flex;
  gap: 10px;
  padding: 15px 30px;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

.page__vacancy-shadow-img {
  z-index: 0;
}

.page__vacancy-content-skills-item {
  margin: 0 0 0 20px;
}

#map {
  padding: 0 20px 20px;
}

.left_inner {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  max-width: 80%;
  width: 80%;
}

.left_inner .page__vacancy-address {
  margin: 20px;
  font-size: 18px;
  color: #163444;
}
.right_inner .page__vacancy-address {
  flex-direction: column;
}

.left_inner .page__vacancy-info {
  margin: 15px;
  padding: 15px 65px;
  border: 1px solid #ded09f;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: #163444;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page__vacancy-title h2 {
  color: #163444;
  font-size: 30px;
}

.page__vacancy-salary h3 {
  font-size: 24px;
  color: #000;
  margin: 0 0 15px;
  font-family: 'Roboto', sans-serif;
}

.page__vacancy-content-time-item + .page__vacancy-content-time-item {
  margin: 0;
}

.page__vacancy-content-time-item p {
  text-transform: none;
}

.btn_wrapper {
  text-align: center;
}

.left_orientation {
  text-align: left;
}

.left_orientation button {
  margin-right: 10px;
}

.btn_wrapper a,
button {
  padding: 5px 10px !important;
  border: none;
  border-radius: 10px !important;
  font-size: 20px !important;
  text-transform: none !important;
}

.btn_wrapper a {
  color: #163444;
  background: #ded09f;
  margin: 14px 0 0;
}

.btn_wrapper a:hover {
  color: #fff;
  background-color: #ded09f;
  cursor: pointer;
}

.btn_wrapper button {
  color: #ded09f;
  background: #163444;
}

.btn_wrapper button:hover {
  color: #fff;
  background-color: #163444;
}

.page__vacancy-ftxt {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 20px;
}

.page__vacancy-content-skills h3 {
  color: #163444;
}

.page__vacancy-content-skills-item span {
  background: transparent;
  border-radius: 8px;
  border: 1px solid #163444;
}

.second_img {
  margin: 0 15px;
}

.special {
  color: #fff !important;
  font-weight: 600;
}

.img_group {
  display: flex;
  gap: 10px;
  height: 600px;
  margin: 0 15px;
  width: 95%;
  box-sizing: border-box;
  overflow: hidden;
}

.img_group > img:first-child {
  height: 100%;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.img_group .right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  flex-basis: 40%;
  height: 100%;
  box-sizing: border-box;
}

.img_group .right-column img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 10px;
}

.page__vacancy-ftxt p,
.page__vacancy-ftxt span,
.page__vacancy-ftxt ul,
.page__vacancy-ftxt li,
.page__vacancy-ftxt strong {
  background-color: transparent !important;
}

.page__vacancy-ftxt p,
.page__vacancy-ftxt span,
.page__vacancy-ftxt ul,
.page__vacancy-ftxt li {
  color: #000 !important;
  font-size: 20px !important;
  font-family: 'Raleway', sans-serif !important;
}

.page__vacancy-ftxt ul,
.page__vacancy-ftxt li {
  list-style: revert !important;
  margin-left: 10px;
}

.page__vacancy-ftxt strong {
  color: #163444 !important;
}

.right_inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  width: 20%;
}

.right_inner > * {
  display: flex;
  justify-content: center;
}

.page__vacancy-logo img {
  max-width: 200px;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
}

.page__vacancy-tooltip-inner h3 p {
  font-size: 32px;
  color: #163444;
  margin: 0 0 20px;
  text-align: center;
}

.page__vacancy-address a:hover {
  color: #ded09f;
}

.page__vacancy-address a {
  color: #163444;
  font-family: 'Raleway', sans-serif;
}

.page__vacancy-content-contact {
  flex-direction: column;
  text-align: center;
  color: #163444;
  margin-top: 30px;
}

.page__vacancy-content-contact-inner {
  flex-direction: column;
}

.page__vacancy-content-contact-info {
  font-family: 'Raleway', sans-serif;
}

.page__vacancy-content-contact-info p {
  font-family: 'Roboto', sans-serif;
}

.page__vacancy-content-contact-img img {
  margin: 0;
  border-radius: 15px;
}

.page__vacancy-content-contact-info h4 {
  margin: 10px 0 0;
}

.mini_wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 25px;
  margin-top: 40px;
  max-height: 800px;
  overflow-y: auto;
  justify-content: flex-start;
}

.mini_wrapper h3 {
  color: #163444;
  font-size: 20px;
}

.mini_wrapper a {
  text-decoration: none;
  color: #163444;
}

.mini_wrapper p {
  margin: 10px 0;
}

.mini_item_img img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.mini_item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 0 0 5px;
  border: 1px solid #ded09f;
}

/* Стили модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
}

.modal-form {
background: linear-gradient(90deg, #e0e5e9, #f8f7f0);
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 10px;
  display: flex;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 1000px;
  flex-wrap: wrap;
}

.close_span {
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.modal-left {
  flex: 1;
}

.modal-left h2 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 25px;
  color: #1f2d3d;
}

.modal-left form input[type='text'],
.modal-left form input[type='email'],
.modal-left form input[type='tel'],
.modal-left form input[type='url'],
.modal-left form input[type='file'] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #999;
  margin-bottom: 18px;
  padding: 8px 5px;
  font-size: 16px;
  background: transparent;
  outline: none;
  color: #555;
}

.modal-left form label {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.modal-left form input[type='file'] {
  border: none;
  margin-top: -10px;
}

.modal-left form .file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  width: 50%;
}

.modal-left form .file-label svg {
  width: 18px;
  height: 18px;
  fill: #555;
}

.modal-left form button {
  background-color: #163440;
  color: #ded09f;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.modal-right {
  flex: 0 0 280px;
  border-radius: 10px;
}

.modal-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Текст под кнопкой */
.modal-footer {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.modal-footer a {
  color: #ded09f;
  text-decoration: none;
  font-weight: 600;
}

/* Скрываем стандартный инпут файла */
input[type='file'] {
  display: none;
}

/* Стили кастомного лейбла для файла */
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  user-select: none;
  padding: 6px 12px;
  border: 2px solid #163440;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.file-label svg {
  width: 20px;
  height: 20px;
  fill: #163440;
  transition: fill 0.3s ease;
}

.file-label:hover {
  color: #ded09f;
}

.file-label:hover svg {
  fill: #ded09f;
}

/* Отображение выбранного файла */
.file-name {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #333;
  font-style: italic;
}

/* Капча */
.captcha-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #1f2d3d;
}

.captcha-block label {
  min-width: 220px;
}

.captcha-block input[type='text'] {
  width: 60px;
  padding: 6px 8px;
  font-size: 16px;
  border: 2px solid #163440;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.captcha-block input[type='text']:focus {
  border-color: #ded09f;
}

/* Кнопка */
.modal-left form button {
  background-color: #163440;
  color: #ded09f;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.modal-left form button:hover {
  color: #fff;
}

#captcha_input {
  width: 20%;
}

@media (max-width: 1400px) {
    .page__vacancy-tooltip-inner h3 p {
        font-size: 27px;
    }
}

@media (max-width: 1100px) {
    .vacancy_wrapper {
        flex-direction: column;
        padding: 15px;
    }

    .left_inner {
        max-width: 100%;
        width: 100%;
    }

    .right_inner {
        width: 100%;
    }

    .page__vacancy-content-contact {
        margin-top: 30px;
    }

    .mini_wrapper {
        margin-top: 0;
    }
}

@media (max-width: 800px) {
    .left_inner .page__vacancy-info {
        padding: 15px;
    }
}

@media (max-width: 700px) {
    .modal-form {
        flex-direction: column;
    }

    .modal-left,
    .modal-right {
        width: 100%;
    }

    .modal-right {
        max-width: 70%;
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .page__vacancy-ftxt p,
    .page__vacancy-ftxt span,
    .page__vacancy-ftxt ul,
    .page__vacancy-ftxt li {
        font-size: 16px !important;
    }

    .page__vacancy-title h2 {
        font-size: 27px;
    }

    .page__vacancy-salary h3 {
        font-size: 20px;
    }

    .left_inner .page__vacancy-info {
        margin: 0 5px 15px;
        gap: 10px;
    }

    .left_inner .page__vacancy-address {
        font-size: 12px;
        color: #163444;
        line-height: 1.3;
    }

}

@media (max-width: 400px) {
    .page__vacancy-ftxt p,
    .page__vacancy-ftxt span,
    .page__vacancy-ftxt ul,
    .page__vacancy-ftxt li {
        font-size: 14px !important;
    }
}