.payment-body { overflow-x: hidden; }

.payment-page {
  width: min(var(--container), calc(100% - (var(--page-padding) * 2)));
  margin: 26px auto 72px;
}

.payment-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.payment-breadcrumbs a:hover { color: var(--color-pink); }
.payment-breadcrumbs span[aria-hidden] { color: var(--color-pink); font-size: 20px; line-height: 1; }
.payment-breadcrumbs span:last-child { color: var(--color-text-muted); }

.payment-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy visual" "advantages visual";
  height: 365px;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(112deg, var(--color-surface-blush), var(--color-surface-soft));
}

.payment-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  grid-area: copy;
  padding: 42px 32px 35px 46px;
}

.payment-hero h1 {
  margin: 0;
  color: var(--color-green);
  font: 700 clamp(40px, 4vw, 60px)/.98 var(--font-display);
  letter-spacing: -1.8px;
}

.payment-hero__lead {
  max-width: 530px;
  margin: 17px 0 23px;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.4;
}

.payment-hero__advantages {
  grid-area: advantages;
  display: flex;
  align-self: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 32px 28px 46px;
}

.payment-hero__advantage {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.payment-hero__advantage-icon,
.payment-security__icon,
.payment-useful__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--color-pink);
  background: var(--color-pink-soft);
}

.payment-hero__advantage-icon .icon,
.payment-security__icon .icon,
.payment-useful__icon .icon { width: 20px; height: 20px; }
.payment-hero__advantage-copy { display: grid; gap: 2px; }
.payment-hero__advantage strong { color: var(--color-green); font-size: 13px; }
.payment-hero__advantage small { color: var(--color-text-muted); font-size: 13px; }

.payment-hero__visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.payment-hero__visual::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, var(--color-surface-blush), rgba(255,248,247,.8), transparent);
  content: '';
  pointer-events: none;
}

.payment-hero__visual img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.payment-hero__note { position: absolute; z-index: 2; right: 10%; bottom: 30px; padding: 12px 17px; border-radius: 8px; color: var(--color-green); background: rgba(255,255,255,.88); font: 700 16px/1.1 var(--font-display); transform: rotate(-3deg); }
.payment-petal { position: absolute; z-index: 3; width: 42px; height: 20px; border-radius: 100% 0 100% 0; background: rgba(244,137,157,.5); pointer-events: none; }
.payment-petal--one { top: 16%; right: 4%; transform: rotate(-24deg); }
.payment-petal--two { bottom: 12%; left: 7%; transform: rotate(35deg) scale(.74); opacity: .65; }

.payment-section { margin-top: 42px; }
.payment-section__heading { margin-bottom: 18px; }
.payment-section__heading h2,
.payment-process h2,
.payment-security h2,
.payment-useful h2,
.payment-faq h2,
.payment-support h2,
.payment-cta h2 { margin: 0; color: var(--color-green); font: 700 clamp(34px, 3.2vw, 48px)/1 var(--font-display); letter-spacing: -1px; }
.payment-section__heading p { margin: 10px 0 0; color: var(--color-text-soft); font-size: 15px; line-height: 1.4; }

.payment-methods__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.payment-method { position: relative; min-width: 0; min-height: 278px; overflow: hidden; padding: 22px 20px 20px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-soft); }
.payment-method__head { display: flex; align-items: flex-start; gap: 12px; min-height: 49px; }
.payment-method__icon { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--color-pink); background: var(--color-pink-soft); }
.payment-method__icon .icon { width: 25px; height: 25px; }
.payment-method h3 { margin: 3px 0 0; color: var(--color-green); font: 700 22px/1.1 var(--font-display); }
.payment-method .ui-badge { min-height: 24px; margin-top: 7px; font-size: 13px; }
.payment-method p { max-width: 300px; margin: 17px 0 0; color: var(--color-text-soft); font-size: 14px; line-height: 1.4; }
.payment-method ul { display: grid; gap: 7px; margin: 15px 0 0; padding-left: 17px; color: var(--color-text-soft); font-size: 13px; line-height: 1.3; }
.payment-method li::marker { color: var(--color-pink); }
.payment-method__mark { position: absolute; right: 20px; bottom: 20px; color: #243f9b; font-size: 29px; font-weight: 800; letter-spacing: -.08em; }
.payment-method__logos { position: absolute; right: 20px; bottom: 21px; display: flex; align-items: center; gap: 12px; color: #1765a6; font-size: 18px; font-weight: 800; }
.payment-method__logos span:nth-child(2) { color: #f04b46; font-size: 22px; }
.payment-method__logos span:last-child { color: #188d5b; }
.payment-method__photo { position: absolute; right: -15px; bottom: -23px; width: 128px; height: 128px; overflow: hidden; border-radius: 50% 0 0 0; opacity: .9; }
.payment-method__photo img { width: 100%; height: 100%; object-fit: cover; }
.payment-empty { margin: 0; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text-soft); background: var(--color-white); }

.payment-process { margin-top: 42px; padding: 27px 28px 30px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-lg); background: linear-gradient(108deg, var(--color-surface-blush), var(--color-white)); }
.payment-process__subtitle { margin: 10px 0 24px; color: var(--color-text-soft); font-size: 15px; }
.payment-process__steps { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; gap: 10px; align-items: start; }
.payment-process__arrow { align-self: center; color: var(--color-text-muted); font-size: 22px; font-style: normal; text-align: center; }
.payment-process__step { display: grid; grid-template-columns: 35px 44px minmax(0, 1fr); gap: 9px; align-items: center; }
.payment-process__number { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--color-pink); background: var(--color-pink-soft); font-weight: 700; }
.payment-process__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-pink); background: var(--color-white); }
.payment-process__icon .icon { width: 23px; height: 23px; }
.payment-process__step h3 { grid-column: 1 / -1; margin: 7px 0 0; color: var(--color-green); font: 700 16px/1.1 var(--font-display); }
.payment-process__step p { grid-column: 1 / -1; margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.35; }

.payment-security { display: grid; grid-template-columns: minmax(250px, 1.1fr) minmax(0, 1.9fr); gap: 32px; align-items: center; margin-top: 14px; padding: 24px 28px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-soft); }
.payment-security__copy p { max-width: 520px; margin: 10px 0 0; color: var(--color-text-soft); font-size: 14px; line-height: 1.4; }
.payment-security__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.payment-security__item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; padding-left: 18px; border-left: 1px solid var(--color-border); }
.payment-security__item strong { display: block; color: var(--color-green); font-size: 13px; line-height: 1.25; }
.payment-security__item small { display: block; margin-top: 5px; color: var(--color-text-muted); font-size: 13px; line-height: 1.3; }

.payment-useful { display: none; }

.payment-faq { margin-top: 14px; padding: 24px 28px 26px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-soft); }
.payment-faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 15px; }
.payment-faq .faq-item { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-white); }
.payment-faq .faq-item:nth-child(n + 3) { margin-top: 8px; }
.payment-faq .faq-item--active { border-color: var(--color-border-accent); background: var(--color-surface-blush); }
.payment-faq .faq-item__button { min-height: 52px; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; padding: 8px 13px; }
.payment-faq .faq-item--active .faq-item__button { padding-inline: 13px; }
.payment-faq .faq-item__number { display: none; }
.payment-faq .faq-item__question { font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.3; }
.payment-faq .faq-item__toggle { width: 26px; height: 26px; border-color: transparent; color: var(--color-pink); background: var(--color-pink-soft); }
.payment-faq .faq-item__toggle span { width: 10px; }
.payment-faq .faq-item__answer { margin: 0 13px 14px; padding: 0; font-size: 13px; line-height: 1.4; }

.payment-support { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.7fr); gap: 30px; align-items: center; margin-top: 14px; padding: 24px 28px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-lg); background: var(--color-surface-blush); }
.payment-support__copy p { max-width: 380px; margin: 10px 0 0; color: var(--color-text-soft); font-size: 14px; line-height: 1.4; }
.payment-support__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.payment-support__action { display: flex; min-width: 0; align-items: center; gap: 9px; min-height: 56px; padding: 0 13px; border: 1px solid var(--color-border); border-radius: 13px; color: var(--color-green); background: var(--color-white); }
.payment-support__action:hover { border-color: var(--color-pink); }
.payment-support__action .icon { width: 23px; height: 23px; color: var(--color-pink); }
.payment-support__action span { display: grid; gap: 3px; min-width: 0; }
.payment-support__action strong { font-size: 13px; white-space: nowrap; }
.payment-support__action small { color: var(--color-text-muted); font-size: 13px; white-space: nowrap; }

.payment-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .5fr); min-height: 190px; overflow: hidden; margin-top: 14px; border-radius: var(--radius-lg); background: linear-gradient(104deg, var(--color-surface-blush), var(--color-surface-soft)); }
.payment-cta__copy { position: relative; z-index: 1; padding: 27px 28px; }
.payment-cta h2 { font-size: clamp(30px, 3vw, 43px); }
.payment-cta p { max-width: 480px; margin: 9px 0 17px; color: var(--color-text-soft); font-size: 14px; line-height: 1.4; }
.payment-cta .ui-button { min-height: 46px; padding-inline: 20px; font-size: 14px; }
.payment-cta__visual { position: relative; min-height: 190px; overflow: hidden; }
.payment-cta__visual img { position: absolute; right: -4%; bottom: -30%; width: 110%; height: 145%; object-fit: contain; object-position: center bottom; }

@media (max-width: 1179px) and (min-width: 768px) {
  .payment-hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); }
  .payment-hero__copy { padding-left: 30px; }
  .payment-methods__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-method:last-child { grid-column: 1 / -1; }
  .payment-security { grid-template-columns: 1fr; gap: 22px; }
  .payment-support { grid-template-columns: 1fr; gap: 18px; }
  .payment-support__actions { justify-content: start; }
}

@media (max-width: 767px) {
  .payment-page { display: flex; flex-direction: column; margin-top: 19px; margin-bottom: 34px; }
  .payment-breadcrumbs { order: 1; }
  .payment-hero { order: 2; }
  .payment-methods { order: 3; }
  .payment-process { order: 4; }
  .payment-security { order: 5; }
  .payment-faq { order: 6; }
  .payment-useful { order: 7; }
  .payment-support { order: 8; }
  .payment-cta { order: 9; }
  .payment-breadcrumbs { margin-bottom: 16px; font-size: 12px; }
  .payment-hero { display: flex; height: auto; min-height: 0; flex-direction: column; border-radius: 18px; }
  .payment-hero__copy { order: 1; padding: 23px 17px 16px; }
  .payment-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .payment-hero__lead { margin: 12px 0 16px; font-size: 16px; }
  .payment-hero__visual { order: 2; min-height: 255px; }
  .payment-hero__advantages { order: 3; gap: 16px 10px; justify-content: space-between; padding: 0 17px 20px; }
  .payment-hero__advantage { flex: 1 1 30%; align-items: flex-start; gap: 7px; }
  .payment-hero__advantage-icon { width: 32px; height: 32px; }
  .payment-hero__advantage-icon .icon { width: 18px; height: 18px; }
  .payment-hero__advantage strong, .payment-hero__advantage small { font-size: 13px; }
  .payment-hero__note { right: 8%; bottom: 20px; font-size: 14px; }
  .payment-section { margin-top: 29px; }
  .payment-section__heading h2, .payment-process h2, .payment-security h2, .payment-useful h2, .payment-faq h2, .payment-support h2 { font-size: 34px; }
  .payment-section__heading p, .payment-process__subtitle { font-size: 14px; }
  .payment-methods__grid { grid-template-columns: 1fr; gap: 10px; }
  .payment-method { min-height: 0; padding: 17px 14px 20px; }
  .payment-method h3 { font-size: 21px; }
  .payment-method p { font-size: 14px; }
  .payment-method ul { font-size: 13px; }
  .payment-method__mark, .payment-method__logos { position: static; margin: 16px 0 0; }
  .payment-method__photo { width: 112px; height: 112px; }
  .payment-process { margin-top: 29px; padding: 20px 14px; }
  .payment-process__subtitle { margin-bottom: 21px; }
  .payment-process__steps { display: grid; grid-template-columns: 35px 44px minmax(0, 1fr); gap: 8px 9px; }
  .payment-process__arrow { grid-column: 1 / -1; justify-self: center; height: 18px; font-size: 0; }
  .payment-process__arrow::after { content: '↓'; font-size: 20px; }
  .payment-process__step { grid-column: 1 / -1; }
  .payment-process__step h3, .payment-process__step p { grid-column: 3; }
  .payment-process__step h3 { grid-row: 1; margin: 0; }
  .payment-process__step p { grid-row: 2; }
  .payment-process__step .payment-process__number, .payment-process__step .payment-process__icon { grid-row: 1 / span 2; }
  .payment-security { display: block; margin-top: 10px; padding: 20px 14px; }
  .payment-security__copy p { font-size: 14px; }
  .payment-security__items { grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
  .payment-security__item { grid-template-columns: 38px minmax(0, 1fr); padding: 0; border-left: 0; }
  .payment-security__item strong { font-size: 14px; }
  .payment-security__item small { font-size: 13px; }
  .payment-useful { display: block; margin-top: 10px; padding: 20px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-soft); }
  .payment-useful__list { display: grid; gap: 10px; margin-top: 17px; }
  .payment-useful__item { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 10px; padding: 13px 10px; border: 1px solid var(--color-border); border-radius: 15px; }
  .payment-useful__icon { width: 35px; height: 35px; }
  .payment-useful__item strong { display: block; color: var(--color-green); font: 700 16px/1.15 var(--font-display); }
  .payment-useful__item p { margin: 6px 0 0; color: var(--color-text-soft); font-size: 13px; line-height: 1.4; }
  .payment-faq { margin-top: 10px; padding: 20px 14px 15px; }
  .payment-faq__list { display: block; margin-top: 12px; }
  .payment-faq .faq-item, .payment-faq .faq-item:nth-child(n + 3) { margin-top: 8px; }
  .payment-faq .faq-item__button, .payment-faq .faq-item--active .faq-item__button { min-height: 58px; padding: 9px 10px; }
  .payment-faq .faq-item__question { font-size: 14px; }
  .payment-faq .faq-item__answer { margin: 0 10px 13px; font-size: 13px; }
  .payment-support { display: block; margin-top: 10px; padding: 20px 14px; }
  .payment-support__copy p { font-size: 14px; }
  .payment-support__actions { grid-template-columns: 1fr; gap: 8px; margin-top: 17px; }
  .payment-support__action { min-height: 54px; }
  .payment-cta { display: flex; min-height: 0; flex-direction: column; margin-top: 10px; border-radius: 18px; }
  .payment-cta__copy { order: 1; padding: 24px 17px 0; }
  .payment-cta h2 { font-size: 34px; }
  .payment-cta p { margin: 10px 0 16px; font-size: 14px; }
  .payment-cta .ui-button { width: 100%; }
  .payment-cta__visual { order: 2; min-height: 170px; }
  .payment-cta__visual img { right: -10%; bottom: -35%; width: 120%; height: 145%; }
}

@media (max-width: 359px) {
  .payment-hero h1 { font-size: 35px; }
  .payment-hero__advantages { gap: 8px; }
  .payment-hero__advantage { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
  .payment-hero__advantage strong, .payment-hero__advantage small { font-size: 13px; }
  .payment-method h3 { font-size: 20px; }
  .payment-process__step h3 { font-size: 16px; }
}
