/* =============== COMPANY: SECTION 1 (Hero) =============== */
.page--company .site-main{
  padding: 0;
}


.comp-hero{
  padding: 110px 0 64px;
  background: #fff;
  overflow: hidden;
}

.comp-hero__inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 0px;
}

.comp-hero__subtitle{
  margin: 18px 0 0;
  max-width: 520px;
}

.company-why__btn,
.company-help__btn,
.company-careers__btn {
    background: #1A83D4;
    color: #ffffff; /* Текст кнопки */
}

.comp-hero__visual{
  position: relative;
  width: min(520px, 100%);
  width: 100%;
  height: 420px;
  margin-left: auto;
  display: grid;
}

/* Картинка человека в hero компании — в потоке сетки, внутри белой рамки */
.comp-hero__visual .hero-person{
  z-index: 3;
  width: 90%;
  min-height: 331px;
  height: auto;
  display: block;
}

.comp-hero__person{
  position: relative;
  z-index: 3;
  width: min(390px, 88%);
  height: auto;
  display: block;
  transform: translateY(8px);
}

.comp-hero__shape{
  position: absolute;
  z-index: 1;
  border-radius: 28px;
}

.comp-hero__shape--top{
  width: 220px;
  height: 220px;
  right: 18px;
  top: 32px;
  background: linear-gradient(180deg, #2f6df6 0%, #6aa2ff 100%);
}

.comp-hero__shape--bottom{
  width: 260px;
  height: 260px;
  left: 0;
  bottom: 12px;
  background: linear-gradient(180deg, #2f6df6 0%, #6aa2ff 100%);
  overflow: hidden;
}

.comp-hero__shape--bottom::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 52%, rgba(255,255,255,0.95) 100%);
}

.comp-hero__shape--outline{
  z-index: 2;
  width: 190px;
  height: 190px;
  right: 10px;
  bottom: 0;
  border-radius: 28px;
  border: 6px solid #ffffff;
  background: transparent;
}

/* mobile */
@media (max-width: 980px){
  .comp-hero{
    padding: 84px 0 80px;
  }

  .comp-hero__inner{
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .comp-hero__subtitle{
    max-width: 360px;
  }

  .comp-hero__visual{
    width: min(420px, 100%);
    height: 361px;
    margin-left: 0;
    place-items: end start;
  }

  .comp-hero__visual .hero-person,
  .comp-hero__person{
    width: min(360px, 92%);
    transform: translateY(10px);
  }

  .comp-hero__shape--top{
    width: 210px;
    height: 210px;
    right: 0;
    top: 32px;
  }

  .comp-hero__shape--bottom{
    width: 250px;
    height: 250px;
    left: 0;
    bottom: 14px;
  }

  .comp-hero__shape--outline{
    width: 178px;
    height: 178px;
    right: 0;
    bottom: 6px;
  }
}


/* ===== HERO: make person photo big like Figma ===== */

/* контейнер с фигурами/картинкой (правый визуал) — только product/about, не company */
.product-hero__visual,
.company-hero__visual{
  position: relative;
  overflow: visible;
  min-height: 420px; /* дает место для большого персонажа как в Figma */
}

/* сама картинка человека — только product/about; company использует свой hero выше */
.product-hero__visual .hero-person,
.company-hero__visual .hero-person{
  position: absolute;
  right: 18px;
  bottom: 0;
  width: clamp(300px, 32vw, 560px);
  height: auto;
  max-width: none;
  z-index: 3;
  transform: none !important;
  pointer-events: none;
  display: block;
}

/* mobile: компания — центрируем картинку под текстом */
@media (max-width: 980px){
  .product-hero__visual,
  .company-hero__visual{
    min-height: 0;
  }

  .product-hero__visual .hero-person,
  .company-hero__visual .hero-person{
    position: relative;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) !important;
    width: min(88vw, 380px);
    margin-top: 18px;
  }

  .comp-hero__visual .hero-person{
    position: relative;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) !important;
    width: min(88vw, 380px);
    margin-top: 18px;
  }
}

@media (min-width: 981px){
  .company-tabs__content{
    align-items: flex-start;
  }

  .company-tabs__media{
    align-self: flex-start;
    margin-top: 0;
  }

  .company-tabs__media img{
    display: block;
  }
}

/* Company — Section 2: align image block with text (top aligned) */
.company-tabs__body,
.company-tabs__content,
.company-tabs__grid,
.company-about__content,
.company-about__grid,
.company-story__content{
  align-items: flex-start;
}

.company-tabs__media,
.company-tabs__image,
.company-about__media,
.company-about__image,
.company-story__media{
  margin: 0 !important;        /* reset <figure> default margin */
  margin-top: 0 !important;    /* remove any manual offset */
  align-self: flex-start;      /* top-align item inside grid/flex */
}

.company-tabs__media img,
.company-tabs__image img,
.company-about__media img,
.company-about__image img,
.company-story__media img{
  display: block;
}

/* Company — Section 2: align image with text */
.company-why__content{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* одинаковая ширина */
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.company-panels{
  align-self: start;
}

.company-why__media{
  margin: 0;
  align-self: start;

  position: relative;
  width: 100%;
  overflow: hidden;

  border-radius: 0;              /* без скруглений */
  background: transparent;
  border: 0;

  aspect-ratio: 8 / 5;           /* размер/пропорция ближе к макету */
  min-height: 340px;             /* чтобы блок не был слишком низким */
}

.company-why__media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* заполняет блок полностью */
  object-position: center;
  border-radius: 0;    /* без скруглений */
}

.company-why__btn{
  box-shadow: none;
}

/* ===== Company WHY section — mobile layout fix (no overlap) ===== */
@media (max-width: 980px){

  /* 1) Одна колонка + фиксируем порядок */
  .company-why__content{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  /* На мобиле сначала картинка */
  .company-why__media{
    order: 1;

    margin: 0 !important;
    width: 100%;
    min-height: 0 !important;    /* убираем старый min-height:240px */
    height: auto;
    aspect-ratio: 16 / 10;       /* аккуратная пропорция как в макете */
    overflow: hidden;

    border-radius: 12px;         /* в мобильном макете есть скругление */
    position: relative;
    align-self: start;
  }

  /* Потом текст */
  .company-panels{
    order: 2;
    align-self: start;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .company-panel{
    position: relative;
    z-index: 1;
  }

  /* 2) Картинки внутри figure должны заполнять блок и не ломать поток */
  .company-why__img,
  .company-why__media img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
  }

  /* 3) Только активная картинка занимает место, остальные не влияют на высоту */
  .company-why__img{
    display: none;
    position: absolute;
    inset: 0;
  }

  .company-why__img.is-active{
    display: block;
  }

  /* 4) Если в мобильной версии нужен текст ниже картинки без лишнего отступа */
  .company-why__media + .company-panels{
    margin-top: 0;
  }

  /* 5) Кнопка как в макете — под текстом, без наезда */
  .company-why__btn{
    display: inline-flex;
    position: relative;
    z-index: 2;
  }
}


/* =============== COMPANY: SECTION 3 (Help form) =============== */
.company-help{
  padding: 110px 0 120px;
  background: var(--surface-soft);
}

.company-help__head{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}


.company-help__subtitle{
  margin: 12px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
}

.company-help__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center; /* ключевое — выравнивание картинки с формой */
}

/* LEFT media block */
.company-help__media{
  margin: 0;                 /* сброс дефолтных margin у figure */
  position: relative;
  min-height: 460px;
}

.company-help__img{
  display: block;
  width: 100%;
  height: auto;
}

.company-help__img--back{
  width: 66%;
  margin-left: auto;
  overflow: hidden;
}

.company-help__img--front{
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 66%;
}

/* RIGHT card */
.company-help__card{
  background: #ffffff;
  border: 1px solid rgba(12,22,48,0.14);
  border-radius: 18px;
  padding: 28px 28px 22px;
}

.company-help__card-title{
  margin: 0;
  text-align: center;
}

.company-help__card-subtitle{
  margin: 10px 0 18px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
}

.company-help__form{
  display: grid;
  gap: 14px;
}

.company-help__label{
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
}

.company-help__control{
  position: relative;
}

.company-help__input,
.company-help__textarea{
  width: 100%;
  border: 1px solid rgba(11,26,55,0.16);
  border-radius: 10px;
  padding: 12px 44px 12px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #0b1a37;
  font-weight: 400;
}

.company-help__textarea{
  min-height: 96px;
  padding-right: 14px;
  resize: vertical;
}

.company-help__input:focus,
.company-help__textarea:focus{
  border-color: rgba(37,99,235,0.55);
}

.company-help__icon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(11,26,55,0.48);
  pointer-events: none;
}

.company-help__btn{
  margin-top: 4px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

@media (hover:hover){
  .company-help__btn:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }
}

.company-help__msg{
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.company-help__msg.is-err{
  color: #b42318;
}

.company-help__msg.is-ok{
  color: #067647;
}

.company-help__note{
  margin: 10px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
}

.company-help__note a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* mobile */
@media (max-width: 980px){
  .company-help{
    padding: 78px 0 88px;
  }

  .company-help__head{
    margin-bottom: 26px;
  }

  .company-help__subtitle{
    font-size: 16px;
  }

  .company-help__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .company-help__media{
    min-height: 340px;
    max-width: 520px;
    position: relative;
    z-index: 1;
    margin-bottom: 12px; /* отступ до формы */
  }

  .company-help__img--back{
    width: 92%;
  }

  .company-help__img--front{
    width: 72%;
    bottom: -8px;
    border-width: 0 !important;
  }

  .company-help__card{
    padding: 22px 18px 18px;
  }

  /* 1) Делаем нормальный вертикальный поток секции */
  .company-help__grid{
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  /* 3) Форма всегда ниже и поверх по потоку */
  .company-help__form {
    position: relative;
    z-index: 2;
    margin-top: 8px;
  }

  .company-help__subtitle br,
  .company-help__card-subtitle br{
    display: none;
  }

  .company-help__subtitle br::after,
  .company-help__card-subtitle br::after{
    content: " ";
  }
}

/* =============== COMPANY: SECTION 4 (Trusted by text) =============== */
.company-trusted{
  background: #fff;
  padding: 80px 10px; /* большой нижний отступ как в Figma */
}

.company-trusted__inner{
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}


.company-trusted__subtitle{
  margin: 18px auto 0;
  max-width: 860px;
  font-size: 18px;
}

.company-trusted__subtitle span{
  display: block; /* даёт перенос строк как в Figma */
  max-width: 1000px;
}

.company-trusted__subtitle span + span{
  margin-top: 6px;
}

/* mobile */
@media (max-width: 980px){
  .company-trusted{
    padding: 40px 0 40px;
  }


  .company-trusted__subtitle{
    font-size: 16px;
    max-width: 330px;
  }
}



/* mobile */
@media (max-width: 980px){
  .company-careers{
    padding: 84px 0 76px;
  }

  .company-careers__subtitle{
    font-size: 15px;
  }

  .company-careers__blocks{
    margin-top: 34px; /* на мобилке меньше отступ */
  }

  .company-careers__block{
    padding: 26px 0 22px;
  }

  .company-careers__block-title{
    font-size: 33px;
  }

  .company-careers__list{
    font-size: 14px;
    line-height: 1.65;
  }
}


/* ===== Company tabs: show only active panel / image ===== */
.company-panel { display: none; }
.company-panel.is-active { display: block; }

.company-why__img { display: none; }
.company-why__img.is-active { display: block; }



/* если будем использовать hidden атрибут */
.company-panel[hidden],
.company-why__img[hidden] { display: none !important; }

.company-panel__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
}

/* просто чтобы было понятно, что кликабельно */
.company-tab { cursor: pointer; }

/* =============== COMPANY: Careers section (Figma) =============== */
.company-careers{
  padding: 120px 0 120px;
  background: #fff;
}

.company-careers__head{
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(54px, 4.8vw, 81px);
}

.company-careers__subtitle{
  margin: 16px auto 0;
  max-width: 980px;
  font-size: 18px;
  line-height: 1.65;
}

.company-careers__btn{
  margin: 26px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}

.company-careers__actions{
  margin-top: 26px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.company-careers__actions .company-careers__btn{
  margin-top: 0;
}

.company-careers__contact{
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
}

.company-careers__contact-text{
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.company-careers__email{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-careers__copy{
  min-width: 112px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(11,26,55,0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #0b1a37;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.company-careers__copy-status{
  min-height: 20px;
  color: #067647;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@media (hover:hover){
  .company-careers__btn:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  .company-careers__copy:hover{
    background: #f8fafc;
  }
}

/* rows */
.company-careers__rows{
  --row-gap: 92px;
  margin: 96px auto 0;
  max-width: 1180px;
  display: grid;
  row-gap: var(--row-gap);
}

.company-careers__row{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  column-gap: clamp(44px, 6vw, 90px);
  align-items: start;
}


.company-careers__hint{
  margin: 14px 0 0;
  max-width: 520px;
  color: rgba(11,26,55,0.72);
  font-size: 18px;
  line-height: 1.55;
}

/* right column (dot + vertical line + text) */
.company-careers__col--right{
  display: flex;
  gap: 34px;
  align-items: flex-start;
}

.company-careers__rail{
  position: relative;
  width: 24px;
  flex: 0 0 24px;
  align-self: stretch;
}

/* dot */
.company-careers__rail::before{
  content:"";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #1A83D4;
}

/* connector line to next row */
.company-careers__row:not(:last-child) .company-careers__rail::after{
  content:"";
  position: absolute;
  top: 26px;
  bottom: calc(-1 * var(--row-gap));
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  border-radius: 2px;
  background: rgba(12,22,48,0.16);
}

.company-careers__row-text{
  margin: 14px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
}

/* mobile */
@media (max-width: 980px){
  .company-careers{
    padding: 84px 0 86px;
  }

  .company-careers__subtitle{
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
  }

  .company-careers__rows{
    --row-gap: 56px;
    margin-top: 54px;
  }

  .company-careers__row{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .company-careers__hint{
    font-size: 16px;
  }

  .company-careers__col--right{
    gap: 22px;
  }

  .company-careers__rail{
    width: 20px;
    flex-basis: 20px;
  }

  .company-careers__rail::before{
    top: 6px;
    width: 10px;
    height: 10px;
  }

  .company-careers__row:not(:last-child) .company-careers__rail::after{
    top: 18px;
    bottom: calc(-1 * var(--row-gap));
  }
}

.company-careers__mobile{
  display: none;
}

@media (min-width: 980px){
  /* чтобы конец линии совпал с концом текста (убираем нижний отступ у последнего абзаца) */
  .company-careers__row:last-child .company-careers__row-text{
    margin-bottom: 0;
  }

  /* растягиваем "рейл" (колонку с линией) по высоте правого текста */
  .company-careers__row:last-child .company-careers__rail{
    align-self: stretch;
  }

  /* если линия рисуется через ::before — дотягиваем её до низа */
  .company-careers__row:last-child .company-careers__rail::before{
    bottom: 0 !important;
  }
}

@media (max-width: 980px){
  /* hide desktop careers content */
  .company-careers > .container > .company-careers__head,
  .company-careers > .container > .company-careers__rows{
    display: none !important;
  }

  /* show mobile careers content */
  .company-careers__mobile{
    display: block;
  }
}

/* ===== Careers mobile layout (match mobile mock) ===== */
@media (max-width: 980px){
  .company-careers{
    padding: 72px 0 70px;
    background: #fff;
  }

  .company-careers__mobile{
    max-width: 360px;
    margin: 0 auto;
  }

  .company-careers__mobile-head{
    text-align: center;
  }


  .company-careers__mobile-subtitle{
    margin: 16px auto 0;
    font-size: 15px;
    line-height: 1.38;
    font-weight: 400;
  }

  .company-careers__btn--mobile{
    margin: 22px auto 0;
    min-width: 116px;
    height: 38px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .company-careers__mobile-blocks{
    margin-top: 34px;
  }

  .company-careers__mobile-block{
    padding: 22px 0 18px;
    border-bottom: 1px solid rgba(12,22,48,0.16);
  }

  .company-careers__mobile-block-title{
    margin: 0;
    color: #0b1a37;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 22px;
    line-height: 1.25;
  }

  .company-careers__mobile-list{
    margin: 12px 0 0;
    padding-left: 18px;
    color: rgba(11,26,55,0.78);
    font-size: 14px;
    line-height: 1.45;
  }

  .company-careers__mobile-list li{
    margin: 5px 0;
  }
}

/* === Careers rail: stretch + tail cap (desktop + mobile) === */

/* 1) ВАЖНО: растягиваем rail по высоте правой колонки,
      чтобы низ линии совпал с концом текста */
.company-careers__col--right {
  align-items: stretch;
}

.company-careers__rail {
  align-self: stretch;
  overflow: visible; /* чтобы "кончик" не обрезался */
}

/* чтобы линия была под текстом, а не поверх */
.company-careers__body {
  position: relative;
  z-index: 1;
}

/* 2) "Кончик" только у последнего пункта (и на десктопе, и на мобилке) */
.company-careers__rows .company-careers__row:last-child .company-careers__rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  /* центрируем по оси точки */
  left: 50%;
  transform: translateX(-50%);

  /* делаем ширину больше 2px, чтобы можно было нарисовать горизонтальный "кончик" */
  width: 34px;

  /* вертикаль + горизонтальный кончик снизу вправо */
  background:
    linear-gradient(#0C163029, #0C163029) 50% 0 / 2px 100% no-repeat,
    linear-gradient(#0C163029, #0C163029) 50% 100% / 2px 2px no-repeat;

  pointer-events: none;
  z-index: 0;
}

/* ===== Careers mobile: use desktop markup only ===== */
.company-careers__mobile{
  display: none !important;
}

@media (max-width: 980px){
  /* Keep desktop careers structure visible on mobile */
  .company-careers > .container > .company-careers__head,
  .company-careers > .container > .company-careers__rows{
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .company-careers{
    padding: 72px 0 70px;
    background: #fff;
  }

  .company-careers__head{
    max-width: 328px;
    margin: 0 auto;
    text-align: center;
  }

  .company-careers__subtitle{
    margin: 16px auto 0;
    max-width: 328px;
    font-size: 15px;
    line-height: 1.38;
  }

  .company-careers__btn{
    min-width: 116px;
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .company-careers__actions{
    margin-top: 22px;
    gap: 10px;
  }

  .company-careers__contact{
    max-width: 328px;
    gap: 8px;
  }

  .company-careers__contact-text{
    font-size: 13px;
    line-height: 1.45;
  }

  .company-careers__copy{
    min-width: 104px;
    height: 36px;
    font-size: 13px;
  }

  .company-careers__rows{
    margin: 34px auto 0;
    max-width: 328px;
    row-gap: 24px;
  }

  .company-careers__row{
    position: relative;
    display: block;
    padding-left: 22px;
  }

  .company-careers__row::before{
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #1A83D4;
  }

  .company-careers__row::after{
    content: "";
    position: absolute;
    left: 4px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: rgba(12,22,48,0.16);
    border-radius: 2px;
  }

  .company-careers__col--right{
    display: block;
    margin-top: 10px;
  }

  .company-careers__rail{
    display: none;
  }

  .company-careers__kicker{
    margin: 0;
    font-size: 22px !important;
    line-height: 1.25;
  }

  .company-careers__hint{
    margin: 8px 0 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.38;
  }

  .company-careers__row-title{
    margin: 0;
    font-size: 20px !important;
    line-height: 1.25;
    font-family: var(--font-body);
  }

  .company-careers__row-text{
    margin: 8px 0 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }
}

/* ===== Careers desktop: line only inside each right text block ===== */
@media (min-width: 981px){
  .company-careers__row:not(:last-child) .company-careers__rail::after,
  .company-careers__row:last-child .company-careers__rail::after{
    content: "";
    position: absolute;
    top: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 2px;
    background: rgba(12,22,48,0.16);
  }

  /* Disable special tail cap from old rule */
  .company-careers__rows .company-careers__row:last-child .company-careers__rail::after{
    top: 26px;
    width: 2px;
    background: rgba(12,22,48,0.16);
  }

  /* Keep last-row dot aligned exactly like previous rows */
  .company-careers__row:last-child .company-careers__rail::before{
    top: 10px;
    bottom: auto !important;
  }
}

/* =========================
   SUBSCRIBE BRIDGE (Company)
========================= */

.subscribe-bridge {
  padding: 52px 0 70px;
}

.subscribe-bridge__card {
  position: relative;
  background: #1A83D4;
  border-radius: 22px;

  /* layout like mock */
  text-align: center;
  padding: 34px 28px 92px; /* bottom space reserved for the overlapping form */
  overflow: visible; /* чтобы десктопная форма не обрезалась */
}

/* soft background shapes (no external image) */
.subscribe-bridge__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  pointer-events: none;
  z-index: 0;

  background: url("../images/subscribe/frame-13.png") no-repeat left center / contain;
  transform-origin: left center;
}

.subscribe-bridge__card::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  pointer-events: none;
  z-index: 0;

  background: url("../images/subscribe/subR.png") no-repeat right center / contain;
  transform-origin: right center;
}

.subscribe-bridge__badge,
.subscribe-bridge__copy,
.subscribe-bridge__form {
  position: relative;
  z-index: 1;
}

.subscribe-bridge__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  margin: 0 auto 18px;
}

.subscribe-bridge__text {
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.95;
  max-width: 720px;
}

/* Desktop vs Mobile copy */
.subscribe-bridge__copy--mobile {
  display: none;
}

/* ---- FORM (DESKTOP) overlaps the bottom edge ---- */
.subscribe-bridge__form {
  position: absolute;
  left: 50%;
  bottom: 0;                 /* stick to bottom edge */
  transform: translate(-50%, 50%); /* <-- center of form exactly on the bottom border */

  width: min(360px, calc(100% - 64px)); /* было 420px */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;

  background: #fff;
  border-radius: 12px;
  padding: 8px;

  border: 2px solid #1a83d4; /* ✅ синяя граница */
}

.subscribe-bridge__input {
  width: 100%;
  height: 34px; /* фиксируем аккуратную высоту */
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.subscribe-bridge__btn {
  height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: #1a83d4;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe-bridge__btn:hover {
  background: #1a83d4;
}

.subscribe-bridge__status {
  grid-column: 1 / -1;
  font-size: 11px;
  text-align: center;
  margin-top: 6px;
  color: #5b6b7c;
}

.subscribe-bridge__status:empty {
  display: none;
}

/* ===== Company subscribe bridge: mobile final fix ===== */
@media (max-width: 960px) {
  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__copy--desktop {
    display: none !important;
  }

  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__copy--mobile {
    display: block !important;
  }

  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__card {
    padding: 24px 16px 18px !important;
    border-radius: 18px;
    overflow: visible;
  }


  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__text {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.5;
  }

  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__form {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    margin: 18px auto 0 !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__btn {
    width: 100%;
    justify-content: center;
  }

  /* на мобильном макете company кнопка без иконки-стрелки */
  .subscribe-bridge:not(.subscribe-bridge--mobile-only) .subscribe-bridge__btn-ico {
    display: none;
  }
}

