.lead_popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lead-popup-in 0.35s ease;
}

.lead_popup_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

/* размеры и отступы сняты с эталонного окна: 912x610, поля по 49px */
.lead_popup_box {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 912px;
  max-width: 100%;
  height: 610px;
  max-height: 100%;
  padding: 78.5px 49px 33.5px;
  overflow: hidden;
  border: 1px solid rgba(140, 140, 140, 0.55);
  border-radius: 20px;
  background: #0B0D0F;
  outline: none;
}

/* фото стоит справа, слева его закрывает затемнение (оно лежит НАД фото) */
.lead_popup_photo {
  position: absolute;
  z-index: 0;
  top: -93px;
  left: 16px;
  width: 1188px;
  max-width: none;
  height: auto;
}

.lead_popup_shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #0B0D0F 0, #0B0D0F 28.6%, rgba(11, 13, 15, 0.2) 61.5%, rgba(11, 13, 15, 0.2) 100%);
}

.lead_popup_box > :not(.lead_popup_photo):not(.lead_popup_shade):not(.lead_popup_close) {
  position: relative;
  z-index: 2;
}

.lead_popup_close {
  position: absolute;
  z-index: 3;
  top: 48px;
  right: 50px;
  width: 31px;
  height: 31px;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lead_popup_close:hover {
  opacity: 1;
}

.lead_popup_close::before,
.lead_popup_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43px;
  height: 1px;
  background: #d9d9d9;
}

.lead_popup_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lead_popup_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lead_popup_title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead_popup_title span {
  color: #e2fc04;
}

.lead_popup_text {
  max-width: 340px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.lead_form_popup {
  gap: 0;
  margin-top: auto;
}

.lead_popup_fields {
  display: flex;
  gap: 10px;
  padding: 30px;
  border: 1px solid #8c8c8c;
  border-radius: 20px;
  background: rgba(11, 13, 15, 0.96);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* подсветка рамки, когда начали заполнять форму */
.lead_form_popup.is_filling .lead_popup_fields {
  border-color: #e2fc04;
  box-shadow: 0 0 28px rgba(226, 252, 4, 0.14);
}

.lead_form_popup .lead_input {
  flex: 0 0 270px;
  width: 270px;
  min-width: 0;
  background: #16181a;
  color: #ffffff;
}

.lead_form_popup .lead_input::placeholder {
  color: #8c8c8c;
}

.lead_popup_submit {
  flex: 0 0 190px;
  height: 55px;
  border: none;
  border-radius: 15px;
  background: #8c8c8c;
  color: #0B0D0E;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, opacity 0.2s ease;
}

.lead_form_popup.is_ready .lead_popup_submit {
  background: #e2fc04;
}

.lead_form_popup.is_ready .lead_popup_submit:hover {
  opacity: 0.85;
}

.lead_form_popup .lead_consent {
  margin-top: 20px;
}

.lead_form_popup .lead_done {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

@keyframes lead-popup-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .lead_popup_box {
    height: auto;
    padding: 70px 24px 24px;
  }

  .lead_popup_close {
    top: 24px;
    right: 24px;
  }

  .lead_popup_title {
    font-size: 32px;
  }

  .lead_form_popup {
    margin-top: 32px;
  }

  .lead_popup_fields {
    flex-direction: column;
    padding: 16px;
  }

  .lead_form_popup .lead_input,
  .lead_popup_submit {
    flex-basis: auto;
    width: 100%;
  }
}

/* окно с таблицей рассрочки */
.info_popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lead-popup-in 0.35s ease;
}

.info_popup_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.info_popup_box {
  position: relative;
  box-sizing: border-box;
  width: 886px;
  max-width: 100%;
  padding: 50px;
  background: #16181a;
  border: 1px solid rgba(140, 140, 140, 0.4);
  border-radius: 20px;
  outline: none;
}

.info_table_wrap {
  overflow-x: auto;
}

.info_table {
  width: 784px;
  min-width: 784px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #8c8c8c;
  border-radius: 20px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
}

.info_table th,
.info_table td {
  height: 45px;
  padding: 0 0 0 33px;
  font-weight: 400;
  text-align: left;
  border-top: 1px solid #8c8c8c;
  border-left: 1px solid #8c8c8c;
}

.info_table thead th {
  border-top: none;
}

.info_table tr > :first-child {
  border-left: none;
  padding-left: 19px;
}

.info_table th:nth-child(1) { width: 262px; }
.info_table th:nth-child(2) { width: 259px; }

.info_table tbody tr:nth-child(odd) > * {
  background: #0B0D0E;
}

.info_table td.is_center {
  padding-left: 0;
  text-align: center;
}

.info_popup_close {
  position: absolute;
  top: 3px;
  left: calc(100% + 19px);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.info_popup_close:hover {
  opacity: 1;
}

.info_popup_close::before,
.info_popup_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 1px;
  background: #d9d9d9;
}

.info_popup_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.info_popup_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1000px) {
  .info_popup_box {
    padding: 56px 20px 24px;
  }

  .info_popup_close {
    top: 14px;
    left: auto;
    right: 14px;
  }
}

/* окно «Прикоснитесь к скорости» (кнопки «Купить» и «Прокат» в первом блоке) */
.deal_popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lead-popup-in 0.35s ease;
}

.deal_popup_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

/* ширина как у остальных окон (912), высота по макету */
.deal_popup_box {
  position: relative;
  box-sizing: border-box;
  width: 912px;
  max-width: 100%;
  height: 508px;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(140, 140, 140, 0.55);
  border-radius: 20px;
  background: #101213;
  outline: none;
}

.deal_popup_photo {
  position: absolute;
  
  left: -265px;
  width: 1500px;
  max-width: none;
  height: 100%;
}

.deal_popup_shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 19, 0) 0, rgba(16, 18, 19, 0.15) 38%, rgba(16, 18, 19, 0.85) 52%, #101213 60%);
}

.deal_popup_content {
  position: absolute;
  top: 41px;
  left: 521px;
  width: 351px;
}

.deal_popup_close {
  position: absolute;
  z-index: 3;
  top: 38px;
  right: 38px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.deal_popup_close:hover {
  opacity: 1;
}

.deal_popup_close::before,
.deal_popup_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1px;
  background: #d9d9d9;
}

.deal_popup_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.deal_popup_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.deal_popup_title {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.deal_popup_text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.deal_tabs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.deal_tab {
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.4);
  color: #0B0D0E;
  font-size: 15px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.deal_tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.deal_tab.is_on {
  background: #e2fc04;
}

.deal_form {
  gap: 12px;
  margin-top: 17px;
}

.deal_form .lead_input {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.deal_form .deal_submit {
  height: 44px;
  margin-top: 2px;
  border: none;
  border-radius: 12px;
  background: #8c8c8c;
  color: #0B0D0E;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease, opacity 0.2s ease;
}

.deal_form.is_ready .deal_submit {
  background: #e2fc04;
}

.deal_form.is_ready .deal_submit:hover {
  opacity: 0.85;
}

.deal_form .lead_consent {
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.deal_form .lead_done {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .deal_popup_box {
    height: auto;
    padding: 70px 24px 24px;
  }

  .deal_popup_photo,
  .deal_popup_shade {
    display: none;
  }

  .deal_popup_content {
    position: static;
    width: auto;
  }

  .deal_popup_close {
    top: 20px;
    right: 20px;
  }
}

.rub_short {
  display: none;
}

/* мобильная версия окна «Рассрочка»: та же карточка с рамкой, что на десктопе, крестик внутри в правом верхнем углу */
@media (max-width: 767px) {
  .info_popup {
    padding: 20px 10px;
  }

  .info_popup_box {
    width: 100%;
    max-width: 400px;
    padding: 56px 12px 12px;
  }

  .info_table_wrap {
    overflow: visible;
  }

  .info_table {
    width: 100%;
    min-width: 0;
    border-radius: 15px;
    font-size: 14px;
    line-height: 22px;
  }

  /* у окна больше нет своей карточки, поэтому фон задан самим строкам */
  .info_table th,
  .info_table td {
    height: 56px;
    padding: 0 6px 0 12px;
    background: #161819;
  }

  .info_table tbody tr:nth-child(odd) > * {
    background: #0B0D0E;
  }

  .info_table tr > :first-child {
    padding-left: 12px;
  }

  .info_table th:nth-child(1) {
    width: 38.2%;
  }

  .info_table th:nth-child(2) {
    width: 31.2%;
  }

  .info_table td.is_center {
    padding: 0;
  }

  .rub_full {
    display: none;
  }

  .rub_short {
    display: inline;
  }

  /* область нажатия крестика 44x44, сам крестик 20x20 */
  .info_popup_close {
    top: 6px;
    right: 6px;
    left: auto;
    width: 44px;
    height: 44px;
    opacity: 1;
  }

  .info_popup_close::before,
  .info_popup_close::after {
    width: 28px;
    height: 1.5px;
    background: #ffffff;
  }
}

/* совсем узкие экраны: чуть мельче шрифт, чтобы подписи не рвались на три строки */
@media (max-width: 340px) {
  .info_table {
    font-size: 13px;
  }

  .info_table th,
  .info_table td {
    padding-right: 4px;
    padding-left: 9px;
  }

  .info_table tr > :first-child {
    padding-left: 9px;
  }

  .info_table th:nth-child(1) {
    width: 41.5%;
  }

  .info_table th:nth-child(2) {
    width: 29.5%;
  }
}
