@font-face {
  font-family: "Involve";
  src:
    url("/fonts/Involve-Regular.woff2") format("woff2"),
    url("fonts/Involve-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Involve", sans-serif;
}

.header_inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;

  background: #05050d;
  margin: 30px 30px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
}

.header_inner .logo {
  margin-left: 20px;
}

.header_menu {
  padding: 20px;
}

.header_menu a {
  font-family: "Involve";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 19px;
  /* identical to box height */
  text-transform: uppercase;

  text-decoration: none;
  color: #ffffff;
  margin-right: 20px;
}

.body_inner {
  padding: 50px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
}
/* Основные блоки */

.main_iner.main_bg {
  background: url(../images/main_bg.png) no-repeat;
  background-position: right; /* Прибивает к правому краю */
  /* или */
  background-position: 100% 50%; /* 100% по горизонтали = правый край */
}

.main_banner .main_title {
  font-style: normal;
  font-weight: 500;
  font-size: 64px;
  line-height: 85px;

  color: #000000;
  margin-bottom: 14px;
}

.main_banner .main_text_header {
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;

  color: #000000;
  margin-bottom: 30px;
}

.main_banner .main_text_description {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;

  color: #000000;
}

.main_text_description p {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;

  color: #000000;
}

.main_banner {
  padding: 50px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
}

.main_banner .main_left_block {
  width: 45%;
}

/* Блок 2 */

.production_inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
}

.production_items {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки равной ширины */
  gap: 20px; /* Отступы между элементами */
  max-width: 800px;
  margin: 0 auto;
}

.product_item {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;

  color: #000000;
}

.production_title {
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 53px;

  color: #000000;
  padding-bottom: 80px;
}

.production_right .product_image_text {
  position: absolute;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
  /* identical to box height */

  color: #ffffff;
  margin-left: 35px;
  margin-top: 35px;
}

.production_right .product_image_text div {
  margin-bottom: 8px;
}

.production_left {
  height: 100%;
  margin-top: 0;
  margin-bottom: auto;
}

/* Блок 3 */

.partner_title {
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 46px;
  /* or 115% */

  color: #000000;
}

.partner_text {
  margin-bottom: 78px;
}

.partner_text p {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;

  color: #000000;
}

.partner_button {
  background: #083672;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;

  text-align: center;

  color: #ffffff;
  padding: 10px 93px;
  text-decoration: none;
}

.partner_left {
  width: 22%;
}

.partner_items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  align-content: stretch;
}

.partner_inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
  margin-top: 140px;
}

.partner_item .partner_item_text {
  position: absolute;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;

  color: #000000;
  margin-left: 30px;
  margin-top: 32px;
}

.partner_item {
  margin-left: 20px;
}

/* Блоки с фото */

.gallery_inner {
  display: flex;
  position: relative;
  margin-top: 140px;
  overflow: hidden;
  margin-bottom: 140px;
}

.photo_info {
  position: absolute;
  /* top: 0; */
  width: 90%;
  color: #fff;
  bottom: 40px;
  left: 40px;
}

.photo_item1 {
  width: 680px;
  height: auto;
  margin-right: 20px;
  position: relative;
}

.parent_inner {
  display: flex;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
}

.photo_item2 {
  margin-bottom: 15px;
}

.photo_title {
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 53px;
  color: #ffffff;
}

.photo_description {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: #ffffff;
  width: 62%;
}

.photo_header_info {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
}

/* Миссия */
.mission_inner {
  text-align: center;
  padding-bottom: 140px;
  background: url(../images/mission_bg.png) no-repeat;
  background-size: cover;
  background-position: 50px -210px;
}

.mission_inner .mission_title {
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 53px;
  text-align: center;

  color: #000000;
  margin-bottom: 20px;
}

.mission_inner .mission_text {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  text-align: center;

  color: #000000;
  max-width: 23%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.mission_inner .mission_dop_text {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
  text-align: center;
  color: #000000;
  width: 25%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer_inner {
  background: radial-gradient(
    63.52% 182.54% at 50% 0%,
    #2e4151 0%,
    #010007 100%
  );
  padding-top: 50px;
  padding-bottom: 70px;
  padding-left: 70px;
  padding-right: 70px;
}

.footer_inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
}

.footer_logo {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #ffffff;
  margin-bottom: 26px;
}

.copyright {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;

  color: rgba(255, 255, 255, 0.5);
}

.footer_company_title {
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer_company_text {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;

  color: #ffffff;
}

.footer_info_phone a {
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;

  color: #ffffff;
  text-decoration: none;
}

.footer_address {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;

  color: #ffffff;
  margin-top: 10px;
}

.footer_menu_block a {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;

  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 5px;
}

.footer_menu_block::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 60px;
  left: -11px;
  top: 0;
  background: rgba(255, 255, 255, 0.15);
  /* border: 1px solid rgba(255, 255, 255, 0.15); */
}

.footer_menu {
  display: flex;
}

.footer_menu_block {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: stretch;
  margin-right: 50px;
  position: relative;
}

@media (max-width: 992px) {
  .main_banner .main_left_block {
    width: 100%;
  }

  .production_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
  }
  .production_right {
    margin-top: 20px;
  }
  .production_right img {
    max-width: 100%;
  }

  .partner_left {
    width: 100%;
  }

  .partner_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
    margin-top: 140px;
  }
  .partner_items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: stretch;
    overflow: scroll;
    width: 100%;
  }

  .partner_item {
    margin-left: 0;
  }
  .partner_right {
    display: block;
    position: relative;
    margin-top: 50px;
  }

  /* Page 2 */
  .garanty_banner {
    max-width: 100%;
  }
  .examination_block {
    display: flex;
    flex-wrap: wrap;
  }

  .exam_right img {
    max-width: 100%;
  }
}

/* ==========================================================
   MANTOR — company page partner network block
   Новый визуальный блок "Партнёрская сеть" на странице /company/
   Стили вынесены в page1.css, иконки на карточках не используются.
   ========================================================== */

.company-partner-network {
  width: 100%;
  max-width: 1380px;
  margin: 110px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  gap: 46px;
  align-items: stretch;
  color: #000000;
}

.company-partner-network__content {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.company-partner-network__title {
  margin: 0 0 34px;
  color: #000000;
  font-size: clamp(42px, 3.65vw, 60px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.company-partner-network__text {
  max-width: 330px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 18px;
  line-height: 1.38;
  font-weight: 400;
}

.company-partner-network__text p {
  margin: 0 0 26px;
}

.company-partner-network__text p:last-child {
  margin-bottom: 0;
}

.company-partner-network__button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  max-width: 100%;
  min-height: 68px;
  padding: 18px 28px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0a5be7 0%, #083672 100%);
  color: #ffffff !important;
  border-radius: 7px;
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  box-shadow: 0 18px 34px rgba(8, 54, 114, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.company-partner-network__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(8, 54, 114, 0.26);
  background: linear-gradient(135deg, #1268ff 0%, #083672 100%);
}

.company-partner-network__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 520px;
}

/* Desktop alignment: сдвигаем блок карточек вправо, чтобы правая граница
   совпадала с правой границей нижнего блока "Фото и видео". */
@media (min-width: 1025px) {
  .company-partner-network__cards {
    transform: translateX(24px);
  }
}

.company-partner-card {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b1524;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 18px 45px rgba(8, 54, 114, 0.12);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(8, 54, 114, 0.22);
}

.company-partner-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.45s ease;
}

.company-partner-card:hover .company-partner-card__image {
  transform: scale(1.045);
}

.company-partner-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 12, 24, 0.03) 0%, rgba(3, 12, 24, 0.18) 48%, rgba(3, 12, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 12, 24, 0.16) 0%, rgba(3, 12, 24, 0) 55%);
  pointer-events: none;
}

.company-partner-card__icon {
  display: none !important;
}

.company-partner-card__title {
  position: absolute;
  left: 28px;
  right: 22px;
  bottom: 34px;
  z-index: 3;
  display: block;
  max-width: calc(100% - 50px);
  color: #ffffff;
  font-size: clamp(22px, 1.45vw, 28px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1280px) {
  .company-partner-network {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 34px;
    padding: 0 20px;
  }

  .company-partner-network__content,
  .company-partner-network__cards,
  .company-partner-card {
    min-height: 470px;
  }

  .company-partner-network__title {
    font-size: clamp(40px, 4vw, 54px);
  }

  .company-partner-card__title {
    left: 24px;
    right: 20px;
    bottom: 30px;
    max-width: calc(100% - 44px);
    font-size: 24px;
    line-height: 1.12;
  }
}

@media (max-width: 1100px) {
  .company-partner-network {
    grid-template-columns: minmax(240px, 285px) minmax(0, 1fr);
    gap: 24px;
  }

  .company-partner-card__title {
    font-size: 22px;
  }
}

@media (max-width: 1024px) {
  .company-partner-network {
    margin-top: 80px;
    grid-template-columns: 1fr;
  }

  .company-partner-network__content {
    min-height: auto;
  }

  .company-partner-network__title {
    margin-bottom: 22px;
  }

  .company-partner-network__button {
    margin-top: 26px;
  }

  .company-partner-network__cards {
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .company-partner-card {
    min-height: 390px;
  }

  .company-partner-card__title {
    left: 22px;
    right: 18px;
    bottom: 28px;
    max-width: calc(100% - 40px);
    font-size: 21px;
    line-height: 1.12;
  }
}

@media (max-width: 768px) {
  .company-partner-network {
    margin-top: 64px;
    padding: 0 20px;
  }

  .company-partner-network__text {
    font-size: 16px;
    max-width: 100%;
  }

  .company-partner-network__button {
    width: 100%;
    min-height: 58px;
    font-size: 16px;
  }

  .company-partner-network__cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .company-partner-card {
    min-height: 360px;
  }

  .company-partner-card__title {
    left: 22px;
    right: 22px;
    bottom: 28px;
    max-width: calc(100% - 44px);
    font-size: 28px;
    line-height: 1.12;
  }
}

@media (max-width: 480px) {
  .company-partner-network {
    padding: 0 16px;
  }

  .company-partner-network__title {
    font-size: 40px;
  }

  .company-partner-card {
    min-height: 320px;
  }

  .company-partner-card__title {
    left: 18px;
    right: 18px;
    bottom: 24px;
    max-width: calc(100% - 36px);
    font-size: 26px;
  }
}

/* ==========================================================
   End MANTOR company page partner network block
   ========================================================== */



/* ==========================================================
   FIX: точное центрирование блока "Почему MANTOR?" на странице company
   Предыдущий сдвиг был слишком сильным вправо. Оставляем лёгкий
   десктопный сдвиг, чтобы слева и справа было визуально одинаково.
   ========================================================== */
@media (min-width: 1281px) {
  .why_mantor_inner {
    transform: translateX(clamp(20px, 4.5vw, 82px));
    transition: transform 0.2s ease;
  }
}

@media (min-width: 1600px) {
  .why_mantor_inner {
    transform: translateX(78px);
  }
}

@media (max-width: 1280px) {
  .why_mantor_inner {
    transform: none;
  }
}
