/* Dedicated template: "Оплата". Loaded only on the payment page. */

.page--payment {
  background: var(--bg);
}

.page--payment .payment-page,
.page--payment .payment-page *,
.page--payment .payment-page *::before,
.page--payment .payment-page *::after {
  box-sizing: border-box;
}

.payment-page {
  padding: 42px 0 92px;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 11% 0%, rgba(8, 118, 133, .10) 0, transparent 34%),
    linear-gradient(180deg, var(--surface-soft) 0%, var(--bg) 100%);
}

.payment-page :where(section, article, div, nav, aside, header, figure, a, button, ul, ol, li, h1, h2, h3, p, img) {
  min-width: 0;
}

.payment-page__container {
  display: grid;
  gap: 58px;
}

.payment-page .breadcrumbs {
  margin-bottom: -28px;
}

.payment-page__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 13px;
  color: var(--accent-hover);
  background: rgba(8, 118, 133, .10);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.payment-page__eyebrow--dark {
  color: #b9f2f6;
  background: rgba(130, 231, 240, .12);
}

.payment-page__section-head {
  display: grid;
  gap: 7px;
  max-width: 850px;
  margin-bottom: 25px;
}

.payment-page__section-head > .payment-page__eyebrow {
  margin-bottom: 2px;
}

.payment-page__section-head > p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.payment-page__section-head--dark .payment-page__title {
  color: #fff;
}

.payment-page__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.035em;
}

.payment-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 38px;
  align-items: center;
  min-height: 450px;
  padding: 62px 66px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 42%, rgba(8, 118, 133, .36), transparent 34%),
    radial-gradient(circle at 13% 0%, rgba(255, 255, 255, .10), transparent 31%),
    linear-gradient(135deg, #10395e 0%, #08243c 55%, #06192b 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.payment-hero::before {
  position: absolute;
  inset: -60px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .42;
  content: "";
}

.payment-hero__content,
.payment-hero__visual {
  position: relative;
  z-index: 1;
}

.payment-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.048em;
}

.payment-hero__lead {
  max-width: 680px;
  margin: 21px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

.payment-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 29px;
}

.payment-hero .btn--secondary {
  color: var(--text);
  background: #fff;
  border-color: rgba(255, 255, 255, .56);
}

.payment-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 25px;
}

.payment-hero__facts span {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.payment-hero__facts span::before {
  position: absolute;
  top: .5em;
  left: 0;
  width: 8px;
  height: 8px;
  background: #72d9e3;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(114, 217, 227, .12);
  content: "";
}

.payment-hero__visual {
  min-height: 320px;
}

.payment-hero__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

.payment-document {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 28px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
  transform: rotate(1.5deg);
}

.payment-document::before {
  position: absolute;
  right: -18px;
  bottom: -22px;
  z-index: -1;
  width: 84%;
  height: 86%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  content: "";
}

.payment-document__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfeaf0;
}

.payment-document__head span {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.payment-document__head i {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(#fff, #fff) center / 17px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 17px no-repeat,
    var(--accent);
  border-radius: 12px;
}

.payment-document__row,
.payment-document__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e8f0f4;
}

.payment-document__row span,
.payment-document__total span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.payment-document__row b {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.payment-document__total {
  margin-top: 8px;
  border-bottom: 0;
}

.payment-document__total strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.payment-document__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #1d5b43;
  background: #ebf8f1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.payment-document__status i {
  position: relative;
  width: 18px;
  height: 18px;
  background: #36a36f;
  border-radius: 50%;
}

.payment-document__status i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

.payment-process,
.payment-formats,
.payment-documents,
.payment-related {
  display: grid;
}

.payment-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.payment-step {
  position: relative;
  min-height: 250px;
  padding: 25px 23px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.payment-step::after {
  position: absolute;
  right: -32px;
  bottom: -40px;
  width: 112px;
  height: 112px;
  background: rgba(8, 118, 133, .07);
  border-radius: 50%;
  content: "";
}

.payment-step > span,
.payment-format-card > span,
.payment-document-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  margin-bottom: 24px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.payment-step h3,
.payment-format-card h3,
.payment-document-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.24;
  font-weight: 700;
}

.payment-step p,
.payment-format-card p,
.payment-document-card p {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 400;
}

.payment-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.payment-format-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(8, 118, 133, .30), transparent 34%),
    linear-gradient(145deg, #10395e, #08243c);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: var(--shadow-light);
}

.payment-format-card h3 {
  color: #fff;
  font-size: 22px;
}

.payment-format-card p {
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.payment-format-card strong {
  display: block;
  margin-top: auto;
  padding-top: 25px;
  color: #b9f2f6;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.payment-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: center;
  padding: 40px 42px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
}

.payment-check__content > p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.payment-check__content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.payment-check__content li {
  position: relative;
  padding-left: 27px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.payment-check__content li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 46%, #fff 46% 57%, transparent 57%) 5px 6px / 7px 5px no-repeat,
    var(--accent);
  border-radius: 50%;
  content: "";
}

.payment-check__preview {
  padding: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 118, 133, .28), transparent 34%),
    linear-gradient(145deg, #10395e, #08243c);
  border-radius: 16px;
}

.payment-check__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.payment-check__preview-head strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.payment-check__preview-head span {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 400;
}

.payment-check__preview-row {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.payment-check__preview-row i {
  position: relative;
  width: 17px;
  height: 17px;
  background: var(--accent);
  border-radius: 50%;
}

.payment-check__preview-row i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

.payment-check__preview-row span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 400;
}

.payment-check__preview-row b {
  color: #b9f2f6;
  font-size: 12px;
  font-weight: 600;
}

.payment-check__preview > p {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.payment-documents__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.payment-document-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 190px;
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.payment-document-card > span {
  width: 46px;
  margin: 0;
}

.payment-document-card p {
  margin-top: 10px;
}

.payment-safety {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  padding: 37px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 118, 133, .30), transparent 34%),
    linear-gradient(145deg, #10395e, #08243c);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.payment-safety__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
}

.payment-safety__icon::before {
  width: 34px;
  height: 40px;
  background: #fff;
  clip-path: polygon(50% 0, 92% 15%, 86% 72%, 50% 100%, 14% 72%, 8% 15%);
  content: "";
}

.payment-safety__icon i {
  position: absolute;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.payment-safety h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
}

.payment-safety p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.payment-safety .btn--secondary {
  color: var(--text);
  background: #fff;
  border-color: #fff;
  white-space: nowrap;
}

.payment-editor {
  padding: 34px 38px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-light);
}

.payment-editor > :first-child {
  margin-top: 0;
}

.payment-editor > :last-child {
  margin-bottom: 0;
}

.payment-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.payment-related__grid a {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 23px 54px 23px 23px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.payment-related__grid a:hover,
.payment-related__grid a:focus-visible {
  border-color: rgba(8, 118, 133, .38);
  box-shadow: 0 18px 38px rgba(44, 74, 91, .12);
  transform: translateY(-2px);
}

.payment-related__grid strong {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.payment-related__grid span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.payment-related__grid i {
  position: absolute;
  top: 23px;
  right: 23px;
  color: var(--accent);
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
}

.payment-faq {
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 118, 133, .24), transparent 33%),
    linear-gradient(145deg, #08243c, #10395e);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.payment-faq__list {
  display: grid;
  gap: 10px;
}

.payment-faq__item {
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px;
}

.payment-faq__item summary {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.payment-faq__item summary::-webkit-details-marker {
  display: none;
}

.payment-faq__item summary span {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transform: translateY(-50%);
}

.payment-faq__item summary span::before,
.payment-faq__item summary span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  content: "";
}

.payment-faq__item summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .18s ease;
}

.payment-faq__item[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.payment-faq__item > div {
  padding: 0 22px 21px;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

.payment-faq__item > div > :first-child {
  margin-top: 0;
}

.payment-faq__item > div > :last-child {
  margin-bottom: 0;
}

.payment-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(8, 118, 133, .30), transparent 34%),
    linear-gradient(145deg, #10395e, #08243c);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.payment-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.payment-cta p {
  max-width: 760px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.payment-cta .btn {
  white-space: nowrap;
}

.payment-faq__item summary:focus-visible,
.payment-related__grid a:focus-visible,
.payment-safety button:focus-visible,
.payment-cta button:focus-visible {
  outline: 3px solid rgba(115, 214, 225, .36);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .payment-page {
    padding-top: 34px;
    padding-bottom: 78px;
  }

  .payment-hero {
    grid-template-columns: 1fr;
    padding: 50px 42px;
  }

  .payment-hero__visual {
    width: min(100%, 520px);
    min-height: 0;
  }

  .payment-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-step {
    min-height: 220px;
  }

  .payment-check {
    grid-template-columns: 1fr;
  }

  .payment-check__preview {
    width: min(100%, 520px);
  }

  .payment-documents__grid,
  .payment-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-safety {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .payment-safety .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .payment-page {
    padding: 28px 0 62px;
  }

  .payment-page__container {
    width: min(calc(100% - 24px), var(--container));
    gap: 42px;
  }

  .payment-page .breadcrumbs {
    margin-bottom: -16px;
  }

  .payment-hero {
    padding: 34px 22px 28px;
    border-radius: 18px;
  }

  .payment-hero h1 {
    font-size: 36px;
  }

  .payment-hero__lead {
    font-size: 15px;
  }

  .payment-hero__actions {
    display: grid;
  }

  .payment-hero__actions .btn {
    width: 100%;
  }

  .payment-hero__facts {
    display: grid;
  }

  .payment-hero__visual {
    width: 100%;
  }

  .payment-hero__image {
    height: 245px;
  }

  .payment-document {
    width: 100%;
    padding: 22px;
    transform: none;
  }

  .payment-process__grid,
  .payment-formats__grid,
  .payment-documents__grid,
  .payment-related__grid {
    grid-template-columns: 1fr;
  }

  .payment-step,
  .payment-format-card {
    min-height: 0;
  }

  .payment-check {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .payment-check__content ul {
    grid-template-columns: 1fr;
  }

  .payment-check__preview {
    width: 100%;
    padding: 21px;
  }

  .payment-document-card {
    min-height: 0;
  }

  .payment-safety {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    border-radius: 16px;
  }

  .payment-safety .btn {
    grid-column: auto;
    width: 100%;
  }

  .payment-editor {
    padding: 27px 21px;
    border-radius: 15px;
  }

  .payment-faq,
  .payment-cta {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .payment-cta {
    grid-template-columns: 1fr;
  }

  .payment-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .payment-hero h1 {
    font-size: 32px;
  }

  .payment-page__title {
    font-size: 29px;
  }

  .payment-document__row,
  .payment-document__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .payment-document-card {
    grid-template-columns: 1fr;
  }

  .payment-check__preview-row {
    grid-template-columns: 17px minmax(0, 1fr);
  }

  .payment-check__preview-row b {
    grid-column: 2;
  }
}
