.payment-page {
  --payment-ink: #251e19;
  --payment-dark: #40332b;
  --payment-accent: #975730;
  --payment-muted: #7c7875;
  --payment-soft: #f3f0ee;
  --payment-border: #d3d2d1;
  --payment-white: #fff;
  --payment-section-space: 2.5rem;
  color: var(--payment-ink);
  font-family: TTFors, sans-serif, Arial;
  padding: 0 0 1.5rem;
}

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

.payment-page h1,
.payment-page h2,
.payment-page h3,
.payment-page p,
.payment-page ul,
.payment-page ol {
  margin-top: 0;
}

.payment-page h2 {
  margin-bottom: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}

.payment-page h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.payment-page p {
  font-size: 1rem;
  line-height: 1.5;
}

.payment-page a {
  color: inherit;
}

.payment-page a:focus-visible,
.payment-page summary:focus-visible {
  outline: 0.125rem solid var(--payment-accent);
  outline-offset: 0.25rem;
}

.payment-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  min-height: 36rem;
  padding: clamp(3rem, 7vw, 6.25rem) 0 var(--payment-section-space);
}

.payment-page__hero-copy {
  max-width: 43rem;
}

.payment-page__hero-image {
  height: 27rem;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--payment-soft);
}

.payment-page__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.payment-page__title {
  max-width: 9ch;
  margin: 0 0 1.5rem;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}

.payment-page__lead {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: #514b47;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem) !important;
  line-height: 1.45 !important;
}

.payment-page__trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.payment-page__trust-list li {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #514b47;
  font-size: 0.875rem;
  line-height: 1.2;
}

.payment-page__trust-list svg,
.payment-page__icon-box svg,
.payment-page__visual-note svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.payment-page__visual {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--payment-soft);
  isolation: isolate;
}

.payment-page__visual::before {
  position: absolute;
  top: -4rem;
  right: -1rem;
  z-index: -1;
  color: rgba(64, 51, 43, 0.06);
  content: "D";
  font-family: KudryashevHeadline, Georgia, serif;
  font-size: 27rem;
  line-height: 1;
}

.payment-page__visual-orbit {
  position: absolute;
  border: 0.0625rem solid rgba(151, 87, 48, 0.22);
  border-radius: 50%;
}

.payment-page__visual-orbit_primary {
  top: -4.5rem;
  left: -6rem;
  width: 21rem;
  height: 21rem;
}

.payment-page__visual-orbit_secondary {
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
}

.payment-page__secure-payment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82%, 24rem);
  min-height: 14.4rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--payment-dark);
  box-shadow: 0 1.75rem 3.75rem rgba(64, 51, 43, 0.22);
  color: var(--payment-white);
  transform: translate(-50%, -54%) rotate(-4deg);
}

.payment-page__secure-payment-top,
.payment-page__secure-payment-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-page__secure-payment-top {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.payment-page__secure-payment-top svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: #daa889;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.payment-page__secure-payment-chip {
  display: block;
  width: 2.55rem;
  height: 1.9rem;
  margin: 2.3rem 0 1.1rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.45);
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #c9a777, #e2cba8);
}

.payment-page__secure-payment-number {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.payment-page__secure-payment-bottom {
  margin-top: 1.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.payment-page__visual-note {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  color: #514b47;
  font-size: 0.75rem;
  backdrop-filter: blur(0.5rem);
}

.payment-page__section {
  padding: var(--payment-section-space) 0;
}

.payment-page__section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.payment-page__methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.payment-page__method {
  overflow: hidden;
  border-radius: 1rem;
}

.payment-page__method-card,
.payment-page__installments-card {
  display: grid;
  grid-template-rows: auto 1fr 7.5rem 2.75rem;
  min-height: 30rem;
  padding: clamp(1.75rem, 3vw, 3rem);
  background: var(--payment-soft);
  color: var(--payment-ink);
}

.payment-page__method-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
}

.payment-page__method-main h3 {
  max-width: 15ch;
  min-height: 2.1em;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.05;
}

.payment-page__method-main p {
  max-width: 38rem;
  margin-bottom: 0;
  color: #514b47;
}

.payment-page__icon-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--payment-white);
  color: var(--payment-dark);
}

.payment-page__icon-box_dolyami img {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.payment-page__logos {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  align-items: center;
  min-height: 7.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--payment-white);
}

.payment-page__method-card .payment-page__logos {
  grid-row: 3;
  margin-top: 0;
}

.payment-page__logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.35rem;
  object-fit: contain;
}

.payment-page__logos img:first-child {
  max-width: 36%;
}

.payment-page__logos img:last-child {
  max-width: 60%;
}

.payment-page__installments-card {
  background: var(--payment-soft);
}

.payment-page__installments-note {
  margin: 0;
  color: #746d68;
  font-size: 0.875rem;
}

.payment-page__installments-card .payment-page__text-link {
  margin-top: 0;
  color: var(--payment-accent) !important;
}

.payment-page__installments-steps {
  display: grid;
  grid-row: 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-page__installments-step {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.5rem;
  padding: 0.9rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--payment-white);
}

.payment-page__installments-step > span:first-child {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.payment-page__installments-label {
  color: #746d68;
  font-size: 0.6875rem;
  line-height: 1.15;
}

.payment-page__installments-footer {
  display: flex;
  grid-row: 4;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-top: 1.25rem;
}

.payment-page__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  counter-reset: payment-step;
}

.payment-page__steps li {
  position: relative;
  min-height: 14rem;
  padding: 1.5rem 2rem 1rem 0;
  border-top: 0.0625rem solid var(--payment-ink);
}

.payment-page__steps li:not(:last-child) {
  margin-right: 2rem;
}

.payment-page__steps li::before {
  position: absolute;
  top: -0.25rem;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--payment-accent);
  content: "";
}

.payment-page__step-index {
  display: block;
  margin-bottom: 3rem;
  color: var(--payment-muted);
  font-size: 0.75rem;
}

.payment-page__steps p {
  max-width: 20rem;
  margin-bottom: 0;
  color: #514b47;
}

.payment-page__assurance {
  padding: var(--payment-section-space) 0;
}

.payment-page__assurance-intro {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: 2rem;
}

.payment-page__assurance-title {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.payment-page__assurance-title svg,
.payment-page__refund-copy > svg {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--payment-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.payment-page__assurance-intro > p {
  max-width: 43rem;
  margin-bottom: 0;
  color: #514b47;
}

.payment-page__assurance-intro a {
  color: var(--payment-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.payment-page__security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-page__security-list li {
  min-height: 7.5rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--payment-soft);
  color: #514b47;
  font-size: 0.875rem;
  line-height: 1.4;
}

.payment-page__security-list span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--payment-ink);
  font-size: 1rem;
  font-weight: 500;
}

.payment-page__refund-row {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 0.0625rem solid var(--payment-border);
  border-radius: 0.75rem;
}

.payment-page__refund-copy {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.payment-page__refund-copy h3 {
  margin-bottom: 0.35rem;
}

.payment-page__refund-copy p {
  margin-bottom: 0;
  color: #514b47;
  font-size: 0.875rem;
}

.payment-page__gift-card {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr);
  grid-column: 1 / -1;
  height: 34rem;
  background: var(--payment-soft);
}

.payment-page__gift-card-image {
  min-height: 0;
  height: 100%;
}

.payment-page__gift-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-page__gift-card-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.payment-page__gift-card-copy h3 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 2.3vw, 2rem);
  line-height: 1.05;
}

.payment-page__gift-card-copy > p {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: #514b47;
}

.payment-page__gift-card-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.payment-page__gift-card-values li {
  padding: 0.65rem 0.85rem;
  border: 0.0625rem solid var(--payment-border);
  border-radius: 0.5rem;
  background: var(--payment-white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.payment-page__text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 0.3rem;
  border-bottom: 0.0625rem solid currentColor;
  color: var(--payment-accent) !important;
  font-weight: 500;
  text-decoration: none;
}

.payment-page__faq-item {
  border-top: 0.0625rem solid var(--payment-border);
}

.payment-page__faq-item:last-child {
  border-bottom: 0.0625rem solid var(--payment-border);
}

.payment-page__faq-item summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5rem;
  padding: 1.25rem 4rem 1.25rem 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
}

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

.payment-page__faq-item summary span,
.payment-page__faq-item summary span::after {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 1.1rem;
  height: 0.0625rem;
  background: currentColor;
  content: "";
  transition: transform 0.25s ease;
}

.payment-page__faq-item summary span::after {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.payment-page__faq-item[open] summary span {
  transform: rotate(45deg);
}

.payment-page__faq-item > div {
  max-width: 47rem;
  padding: 0 4rem 1.5rem 0;
  color: #514b47;
}

.payment-page__faq-item p {
  margin-bottom: 0;
}

.payment-page__help {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
  margin: var(--payment-section-space) 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1rem;
  background: var(--payment-dark);
  color: var(--payment-white);
}

.payment-page__help-copy {
  max-width: 42rem;
}

.payment-page__help h2 {
  margin-bottom: 1rem;
}

.payment-page__help p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.payment-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.payment-page__button:hover {
  transform: translateY(-0.125rem);
}

.payment-page__button_light {
  background: var(--payment-white);
  color: var(--payment-ink) !important;
}

.payment-page__button_dark {
  background: var(--payment-dark);
  color: var(--payment-white) !important;
}

.payment-page__button_dark:hover {
  background: var(--payment-ink);
}

.payment-page__button_light:hover {
  background: var(--payment-soft);
}

.payment-page__links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.payment-page__links-grid a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 7.5rem;
  padding: 1.25rem;
  border: 0.0625rem solid transparent;
  border-radius: 1rem;
  background: var(--payment-soft);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.payment-page__links-grid a:hover {
  border-color: var(--payment-dark);
  background: var(--payment-dark);
  color: var(--payment-white);
  transform: translateY(-0.25rem);
}

.payment-page__link-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--payment-white);
  color: var(--payment-dark);
}

.payment-page__link-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-page__link-copy {
  min-width: 0;
}

.payment-page__link-copy strong,
.payment-page__link-copy > span {
  display: block;
}

.payment-page__link-copy strong {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
}

.payment-page__link-copy > span {
  margin-top: 0.35rem;
  color: var(--payment-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.payment-page__link-arrow {
  font-size: 1.15rem;
  font-style: normal;
}

.payment-page__links-grid a:hover .payment-page__link-copy > span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1023px) {
  .payment-page__hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
  }

  .payment-page__visual {
    min-height: 23rem;
  }

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

  .payment-page__method-card,
  .payment-page__installments-card {
    min-height: 26rem;
  }

  .payment-page__logos {
    justify-content: flex-start;
  }

  .payment-page__assurance-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .payment-page__gift-card {
    grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 767px) {
  .payment-page {
    --payment-section-space: 1.5rem;
    padding-bottom: 0;
  }

  .payment-page__hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.5rem 0 var(--payment-section-space);
  }

  .payment-page__hero-image {
    height: 22rem;
  }

  .payment-page__title {
    font-size: 2rem;
    line-height: 1;
  }

  .payment-page__visual {
    min-height: 21rem;
  }

  .payment-page__secure-payment {
    width: min(84%, 21rem);
    min-height: 12.8rem;
  }

  .payment-page__visual-note {
    right: 0.75rem;
    bottom: 0.75rem;
  }

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

  .payment-page__method-card,
  .payment-page__installments-card {
    grid-template-rows: auto;
    min-height: 0;
    padding: 1.75rem 1.5rem;
  }

  .payment-page__method-main h3 {
    min-height: 0;
  }

  .payment-page__method-card .payment-page__logos,
  .payment-page__installments-steps,
  .payment-page__installments-footer {
    grid-row: auto;
  }

  .payment-page__installments-steps {
    margin-top: 2.5rem;
  }

  .payment-page__installments-step {
    min-height: 5.75rem;
  }

  .payment-page__logos {
    min-height: 0;
    margin-top: 2.5rem;
    padding: 1.25rem;
  }

  .payment-page__logos img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .payment-page__installments-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 1.25rem;
    padding-top: 0;
  }

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

  .payment-page__steps li {
    min-height: auto;
    padding: 1.25rem 0 2.5rem 3.5rem;
    border-top: 0;
    border-left: 0.0625rem solid var(--payment-ink);
  }

  .payment-page__steps li:not(:last-child) {
    margin-right: 0;
  }

  .payment-page__steps li::before {
    top: 0;
    right: auto;
    left: -0.28rem;
  }

  .payment-page__step-index {
    position: absolute;
    top: -0.2rem;
    left: 1rem;
    margin-bottom: 0;
  }

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

  .payment-page__security-list li {
    min-height: auto;
  }

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

  .payment-page__refund-copy {
    align-items: flex-start;
  }

  .payment-page__gift-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .payment-page__gift-card-image {
    height: 24rem;
    min-height: 0;
    max-height: none;
  }

  .payment-page__gift-card-copy {
    padding: 2rem 1.5rem 2.5rem;
  }

  .payment-page__faq-item summary {
    min-height: 4.5rem;
    padding-right: 3rem;
    font-size: 1rem;
  }

  .payment-page__faq-item > div {
    padding-right: 2rem;
  }

  .payment-page__help {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-page__button {
    width: 100%;
    min-height: 3.25rem;
  }

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

  .payment-page__links-grid a {
    min-height: 7rem;
  }

  .payment-page__trust-list{
    flex-direction: column;
  }
}

@media (max-width: 479px) {
  .payment-page__trust-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-page__method,
  .payment-page__assurance,
  .payment-page__help {
    border-radius: 0.75rem;
  }

  .payment-page__logos img {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-page *,
  .payment-page *::before,
  .payment-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
