/* =========================================================
   Единый CSS для всего флоу «Денежный перевод осужденному»
   Файлы: payment-block, money-transfer-block, recipient-data-block,
          sender-data-block, confirm-transfer-block,
          payment-info-page, contacts-page, requisites-page
   ========================================================= */

@font-face {
  font-family: 'DINPro';
  src: local('PT Sans Narrow'), local('Arial Narrow');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
}

body {
  width: 100%;
  background: #F4F6FA;
  font-family: 'DINPro', 'Arial', sans-serif;
}

/* ===== Page wrapper ===== */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-bottom: 60px; /* шаги оплаты */
  background: #F4F6FA;
}

/* инфо-страницы (Оплата услуг / Контакты / Реквизиты) чуть выше отступ снизу */
.page:has(> .content > .breadcrumbs) {
  padding-bottom: 80px;
}

/* ===== Header ===== */
.header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px clamp(20px, 5vw, 345px);
  gap: clamp(16px, 3vw, 40px);
  background: #FFFFFF;
  height: 82px;
}

.header_block {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1230px;
  flex-direction: row-reverse;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.header a {
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.3;
  color: #57596A;
  text-decoration: none;
  white-space: nowrap;
}

.header a.active {
  color: #C42942;
}

.header .adult {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.3;
  color: #71839B;
}

/* ===== Content wrapper ===== */
.content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1230px;
  margin-top: 40px;
}

/* инфо-страницы: другой верхний отступ и gap между блоками */
.content:has(> .breadcrumbs) {
  gap: 32px;
  margin-top: 56px;
}

/* =========================================================
   ШАГИ ОПЛАТЫ / ПЕРЕВОДА (payment-block, money-transfer-block,
   recipient-data-block, sender-data-block, confirm-transfer-block)
   ========================================================= */

/* Title row */
.title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.title-row h1 {
  /* flex: 1 1 400px; */
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.2;
  color: #57596A;
}

.cell-icon {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 20px 24px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  flex-shrink: 0;
}

.cell-icon svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.cell-icon .phone-text {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.3;
  color: #57596A;
  white-space: nowrap;
}

/* Main card */
.main-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(24px, 5vw, 60px);
  gap: 24px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
}

/* Stepper */
.steps-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.step-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #DAE2EF;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #57596A;
}

.step-circle.active {
  background: #C42942;
  color: #F4F6FA;
}

.step-circle.completed {
  background: #64A666;
  color: #F4F6FA;
}

.step-line {
  flex: 1 1 auto;
  height: 3px;
  min-width: 12px;
  margin: 0 10px;
  background: #DAE2EF;
}

/* цвет заполненной линии зависит от кружка, из которого она выходит:
   красный — после активного шага, зелёный — после завершённого */
.step-circle.active + .step-line.filled {
  background: #C42942;
}

.step-circle.completed + .step-line.filled {
  background: #64A666;
}

.step-title {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  color: #57596A;
}

/* Form content */
.form-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* confirm-transfer-block использует более крупный gap между секциями */
.form-content:has(.amount-block) {
  gap: 32px;
}

/* Подписанные группы поле+label (money-transfer, recipient, sender, confirm) */
.field-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.field-label {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 28px;
  color: #57596A;
}

/* Текстовые поля и select оформлены одинаково */
.form-input,
.form-select {
  display: block;
  width: 100%;
  padding: 0 24px;
  height: 71px;
  background: #F4F6FA;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 28px;
  color: #57596A;
  outline: none;
  transition: border-color .15s ease, opacity .15s ease, background .15s ease;
}

.form-input::placeholder {
  color: #71839B;
  opacity: 1;
}

.form-input:focus,
.form-select:focus {
  border-color: #C42942;
  background: #FFFFFF;
}

/* узкое поле «Год рождения» */
.form-input.year-input {
  max-width: 200px;
}

/* Кастомный select (Регион / Учреждение) */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2371839B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  padding-right: 56px;
}

.form-select:disabled {
  color: #A9AFBD;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23C7CCD8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Чекбокс (капча на payment-block, «Иностранный паспорт» на sender-data-block) */
.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.2px solid #57596A;
  border-radius: 3.6px;
  background: #FFFFFF;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.checkbox:checked {
  background: #C42942;
  border-color: #C42942;
}

.checkbox:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Капча (payment-block) */
.captcha {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  max-width: 240px;
  cursor: pointer;
}

.captcha-text {
  display: flex;
  flex-direction: column;
}

.captcha-text .line1 {
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #57596A;
}

.captcha-text .line2 {
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  color: #57596A;
}

/* Паспорт + чекбокс «Иностранный паспорт» (sender-data-block) */
.passport-group {
  gap: 4px;
}

.passport-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  cursor: pointer;
}

.passport-check span {
  font-weight: 500;
  font-size: 18px;
  line-height: 23px;
  color: #57596A;
}

/* Сумма перевода + чипы (confirm-transfer-block) */
.amount-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.chips-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  min-width: 114px;
  height: 52px;
  background: rgba(244, 246, 250, 0.5);
  border: 1px solid #DAE2EF;
  border-radius: 12px;
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 22px);
  color: #57596A;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.chip:hover {
  border-color: #C42942;
}

.chip.selected {
  border-color: #C42942;
  color: #C42942;
  background: rgba(196, 41, 66, 0.06);
}

/* Сводка «Регион / Получатель / Отправитель» (confirm-transfer-block) */
.summary-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 24px;
  gap: 24px;
  width: 100%;
  background: #F4F6FA;
  border-radius: 12px;
}

.summary-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 240px;
}

.summary-col h3 {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 28px;
  color: #57596A;
}

.summary-col p {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 22px);
  line-height: 28px;
  color: #57596A;
}

/* Кнопка «Далее / Оплатить» — один по центру (payment-block, money-transfer-block) */
.submit-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 32px;
  width: 100%;
  max-width: 328px;
  height: 71px;
  background: #C42942;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background: #AD2138;
}

.submit-btn:disabled {
  background: #DAE2EF;
  cursor: not-allowed;
}

input[type="submit"].submit-btn {
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;
  color: #FFFFFF;
}

.submit-btn span {
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;
  color: #FFFFFF;
}

/* Кнопки «Назад / Далее» в ряд (recipient, sender, confirm-transfer-block) */
.btns-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 32px;
  width: 100%;
  max-width: 328px;
  height: 71px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;
  color: #FFFFFF;
  text-align: center;
}

.btn-back {
  background: #71839B;
}

.btn-back:hover {
  background: #5F6F84;
}

.btn-next {
  background: #C42942;
}

.btn-next:hover {
  background: #AD2138;
}

/* =========================================================
   ИНФО-СТРАНИЦЫ (payment-info-page, contacts-page, requisites-page)
   ========================================================= */

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  color: #71839B;
  flex-wrap: wrap;
}

.breadcrumbs .sep {
  color: #DAE2EF;
}

.breadcrumbs .current {
  color: #57596A;
}

/* Заголовок инфо-страницы */
.content h1 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  color: #57596A;
}

.company-name {
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: #57596A;
}

/* Текстовые блоки (payment-info-page) */
.text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 980px;
}

.text-block h2 {
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: #57596A;
}

.text-block p {
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: #57596A;
}

.text-block h3 {
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: #57596A;
  margin-top: 4px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 24px;
  color: #57596A;
}

.process-list li {
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  padding-left: 4px;
}

.requisites-title {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: #57596A;
}

/* Сетки карточек реквизитов/контактов */
.requisites-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.requisites-grid.row-2 {
  grid-template-columns: repeat(5, 1fr);
}

.req-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #FFFFFF;
  border-radius: 16px;
}

.req-card h4 {
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.3;
  color: #57596A;
}

.req-card p {
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.4;
  color: #71839B;
}

.req-card a {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.4;
  color: #C42942;
  text-decoration: none;
}

.req-card a:hover {
  text-decoration: underline;
}

.req-card .hint {
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.4;
  color: #71839B;
  margin-top: 2px;
}

/* =========================================================
   MOBILE HEADER (бургер-меню)
   ========================================================= */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #57596A;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .requisites-grid,
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .requisites-grid.row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header {
    justify-content: center;
    height: auto;
    padding: 16px 20px;
  }

  .header_block {
    position: relative;
    align-items: center;
  }

  .burger {
    display: flex;
    order: 1;
  }

  .header_block .adult {
    order: 2;
    /* margin-left: auto; */
    position: absolute;
    left: 0px;
  }



  .header_block .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;

    /* display: none; */
  }

  .header_block .nav-links.open {
    max-height: 400px;
    margin-top: 16px;
  }

  .header_block .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-top: 1px solid #F4F6FA;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cell-icon {
    width: 100%;
  }

  .summary-box {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header a,
  .header .adult {
    font-size: 14px;
  }

  .content {
    margin-top: 24px;
  }

  .content:has(> .breadcrumbs) {
    margin-top: 32px;
    gap: 24px;
  }

  .main-card {
    border-radius: 16px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .step-line {
    margin: 0 6px;
  }

  .form-input,
  .form-select {
    height: 60px;
    padding: 0 16px;
  }

  .form-select {
    padding-right: 44px;
    background-position: right 16px center;
  }

  .chip {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
  }

  .btns-row {
    flex-direction: column-reverse;
  }

  .btn,
  .submit-btn {
    max-width: 100%;
    height: 60px;
  }

  .requisites-grid,
  .requisites-grid.row-2,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}


  .header_block.open .adult {
    display: none;
  }

  @media (max-width:1250px) {
    .content {
      padding-left: 20px;
      padding-right: 20px;
    }
  }