/* Apple-style layer over style.css for the home pages: keeps the ProMoney brand (navy, blue, green-to-blue gradient,
   Montserrat) and adds calmer typography, instant press feedback, translucent chrome and spring-like motion. */
:root {
  --pm-navy: #1e2b56;
  --pm-deep: #001a71;
  --pm-blue: #05508f;
  --pm-accent: #0a6cc2;
  --pm-green: #04b37f;
  --pm-surface: #f5f6fa;
  --pm-muted: #65666d;
  --pm-gradient: linear-gradient(90deg, rgb(4 179 127) 20%, rgba(0, 121, 163, 1) 55%, rgba(0, 39, 156, 1) 100%);
  --pm-ease: cubic-bezier(.3, 1, .4, 1); /* close to a critically damped spring, response ~0.35 s */
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Typography: tighter tracking as size grows, calm leading */
.sec-title { letter-spacing: -.02em; line-height: 1.12; }
.sec-subtitle { letter-spacing: .12em; font-size: 14px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Buttons: brand gradient stays, sentence case, feedback on press */
.vs-btn {
  border-radius: 980px; text-transform: none; letter-spacing: 0; font-weight: 600;
  transition: transform .12s ease-out, box-shadow .3s var(--pm-ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.vs-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(0, 57, 156, .25); }
.vs-btn:active { transform: scale(.97); }
:focus-visible { outline: 3px solid rgba(10, 132, 255, .6); outline-offset: 2px; }

/* Sticky header: a translucent material instead of a solid bar */
.header-layout2 .will-sticky .sticky-active {
  background-color: rgba(0, 26, 113, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  transition: top .45s var(--pm-ease);
}
.main-menu a { transition: color .2s, opacity .2s; }

/* Values block: same structure, cleaner list */
.list-style2 li { line-height: 1.6; margin-bottom: 14px; }
.list-style2 li i { color: var(--pm-green); }
.list-style2 li strong { color: var(--pm-navy); }
.exp-pill { border-radius: 24px; }

/* ---------- Testimonials: a swipeable row of cards, full review in a sheet ---------- */
.pm-testi { padding: 110px 0 80px; background: #fff; overflow: hidden; }
.pm-testi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.pm-testi-lead { font-size: 18px; line-height: 1.6; color: var(--pm-muted); max-width: 560px; margin: 12px 0 0; }
.pm-testi-nav { display: flex; gap: 10px; flex: none; }
.pm-testi-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30, 43, 86, .07); color: var(--pm-navy); font-size: 18px;
  transition: background-color .2s, transform .12s ease-out, opacity .2s;
}
.pm-testi-arrow:hover { background: rgba(30, 43, 86, .13); }
.pm-testi-arrow:active { transform: scale(.94); }
.pm-testi-arrow:disabled { opacity: .35; cursor: default; }

.pm-testi-track {
  --edge: 20px;
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 26px; scrollbar-width: none;
}
.pm-testi-track::-webkit-scrollbar { display: none; }
.pm-testi-track:focus-visible { outline: 3px solid rgba(10, 132, 255, .5); outline-offset: -3px; }
.pm-testi-card {
  flex: 0 0 min(380px, 84vw); scroll-snap-align: start;
  display: flex; flex-direction: column; min-height: 380px; padding: 28px;
  border-radius: 24px; background: var(--pm-surface);
  transition: transform .4s var(--pm-ease), box-shadow .4s var(--pm-ease), background-color .3s;
}
.pm-testi-card:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 2px 4px rgba(30, 43, 86, .05), 0 18px 40px rgba(30, 43, 86, .12); }
.pm-testi-event { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pm-accent); margin: 0; }
.pm-testi-quote { margin: 16px 0 10px; padding: 0; border: 0; background: none; font-style: normal; }
.pm-testi-quote::before { content: "\201C"; position: static; inset: auto; transform: none; width: auto; display: block; height: 34px; font: 800 64px/1 Georgia, serif; background: var(--pm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-testi-quote::after { display: none; }
.pm-testi-quote p { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; font-weight: 600; font-style: normal; color: var(--pm-navy); }
.pm-testi-more { align-self: flex-start; border: 0; background: none; padding: 4px 0; cursor: pointer; font: 600 14px var(--body-font); color: var(--pm-accent); }
.pm-testi-more::after { content: " \203A"; }
.pm-testi-more:hover { text-decoration: underline; }
.pm-testi-person { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(30, 43, 86, .08); }
.pm-testi-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.pm-testi-person b { display: block; font-size: 15px; color: var(--pm-navy); letter-spacing: -.01em; }
.pm-testi-person span { display: block; font-size: 13px; line-height: 1.4; color: var(--pm-muted); }
.pm-testi-note { font-size: 13px; color: var(--pm-muted); margin: 4px 0 0; }

/* Full review: a sheet that rises over the page and dims what is behind it */
.pm-testi-dialog {
  width: min(640px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 10, 40, .35); overflow: hidden;
}
.pm-testi-dialog[open] { display: flex; flex-direction: column; animation: pm-sheet .4s var(--pm-ease) both; }
.pm-testi-dialog::backdrop { background: rgba(10, 16, 40, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pm-testi-dialog-body { padding: 34px 36px 8px; overflow-y: auto; }
.pm-testi-dialog-body p { font-size: 17px; line-height: 1.65; color: #2d2f38; margin: 0 0 14px; }
.pm-testi-dialog-body .pm-testi-event { margin-bottom: 14px; }
.pm-testi-dialog-body .pm-testi-person { margin-top: 18px; padding-bottom: 6px; }
.pm-testi-close {
  margin: 12px 36px 28px; align-self: flex-end; border: 0; border-radius: 980px; padding: 12px 24px; cursor: pointer;
  font: 600 15px var(--body-font); color: #fff; background: var(--pm-navy); transition: transform .12s ease-out, filter .2s;
}
.pm-testi-close:hover { filter: brightness(1.15); }
.pm-testi-close:active { transform: scale(.97); }
@keyframes pm-sheet { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Ecosystem: partners and sponsors ---------- */
.pm-eco { padding: 110px 0 90px; background: var(--pm-surface); overflow: hidden; }
.pm-eco-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.pm-eco-lead { font-size: 18px; line-height: 1.6; color: var(--pm-muted); margin: 14px auto 0; max-width: 640px; }

/* Three rows drifting in alternate directions: many logos at once, more always arriving */
.pm-marquee { display: grid; gap: 16px; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pm-marquee-row { overflow: hidden; }
.pm-marquee-track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none; animation: pm-drift var(--pm-speed, 60s) linear infinite; }
.pm-marquee-row[data-reverse] .pm-marquee-track { animation-direction: reverse; }
.pm-marquee:hover .pm-marquee-track { animation-play-state: paused; }
@keyframes pm-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.pm-logo {
  flex: none; width: 176px; height: 88px; padding: 16px 20px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; list-style: none;
  background: #fff; box-shadow: 0 1px 2px rgba(30, 43, 86, .05), 0 6px 18px rgba(30, 43, 86, .06);
  transition: transform .35s var(--pm-ease), box-shadow .35s var(--pm-ease);
}
.pm-logo img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.pm-logo.is-light { background: var(--pm-navy); }
.pm-logo:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30, 43, 86, .06), 0 14px 30px rgba(30, 43, 86, .12); }

.pm-eco-more { text-align: center; margin-top: 40px; }
.pm-eco-toggle {
  border: 0; border-radius: 980px; padding: 13px 26px; cursor: pointer;
  font: 600 15px/1 var(--body-font); color: var(--pm-navy); background: rgba(30, 43, 86, .07);
  transition: background-color .2s, transform .12s ease-out;
}
.pm-eco-toggle:hover { background: rgba(30, 43, 86, .12); }
.pm-eco-toggle:active { transform: scale(.97); }
.pm-eco-toggle::after { content: '\203A'; display: inline-block; margin-left: 8px; transition: transform .35s var(--pm-ease); }
.pm-eco-toggle[aria-expanded="true"]::after { transform: rotate(90deg); }

.pm-eco-all { margin-top: 36px; animation: pm-rise .45s var(--pm-ease) both; }
.pm-wall-title { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pm-muted); text-align: center; margin: 28px 0 16px; }
.pm-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; }
.pm-wall .pm-logo { width: auto; }
@keyframes pm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Newsletter ---------- */
/* One continuous background from the newsletter down to the copyright line (the white footer card sits on it) */
.footer-layout2.footer-wrapper {
  background-image: radial-gradient(circle at 12% 8%, rgba(4, 179, 127, .35) 0, rgba(4, 179, 127, 0) 30%),
                    radial-gradient(circle at 88% 30%, rgba(10, 108, 194, .45) 0, rgba(10, 108, 194, 0) 35%),
                    linear-gradient(180deg, #001a71 0%, #1e2b56 55%, #05508f 100%);
}
.footer-layout2 .footer-top { background: none !important; }
.footer-layout2 .copyright-wrap { background-color: transparent; }
/* Below 992px the theme hides the white card; bring it back so the dark footer text stays readable */
@media (max-width: 991px) {
  .footer-layout2 .widget-area { background-color: #fff; border-radius: 16px; padding: 40px 24px 10px; margin: 40px 0 0; }
}
/* Legal links on one line */
.pm-legal-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.pm-legal-links .copyright-text { margin: 0; }

.pm-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 30px 0; text-align: left; }
.pm-news-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 980px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ff0d2; background: rgba(4, 179, 127, .16); }
.pm-news-title { color: #fff; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0 14px; }
.pm-news-text { color: rgba(255, 255, 255, .78); font-size: 18px; line-height: 1.6; margin-bottom: 22px; max-width: 520px; }
.pm-news-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pm-news-points li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.pm-news-points i { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #9ff0d2; }

/* The form: a frosted card over the gradient */
.pm-news-form {
  display: grid; gap: 12px; padding: 32px; border-radius: 28px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 60px rgba(0, 8, 40, .35);
}
.pm-field { position: relative; display: block; margin: 0; }
.pm-field input {
  width: 100%; height: 58px; padding: 22px 18px 6px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .94);
  font: 500 16px var(--body-font); color: var(--pm-navy); transition: border-color .2s, box-shadow .2s;
}
.pm-field input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 4px rgba(4, 179, 127, .35); }
.pm-field span {
  position: absolute; left: 18px; top: 19px; font-size: 16px; color: #7a7d89; pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--pm-ease), color .2s;
}
.pm-field input:focus + span, .pm-field input:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.75); color: var(--pm-blue); }
.pm-news-btn {
  margin-top: 6px; height: 56px; border: 0; border-radius: 980px; cursor: pointer;
  font: 700 16px var(--body-font); color: #fff; background: var(--pm-gradient);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .12s ease-out, filter .2s, box-shadow .3s var(--pm-ease);
}
.pm-news-btn:hover { filter: brightness(1.08); box-shadow: 0 12px 28px rgba(4, 179, 127, .3); }
.pm-news-btn:active { transform: scale(.97); }
.pm-news-btn i { transition: transform .35s var(--pm-ease); }
.pm-news-btn:hover i { transform: translateX(4px); }
.pm-news-note { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); text-align: center; }
.pm-news-note a { color: #fff; text-decoration: underline; }

@media (max-width: 991px) {
  .pm-news { grid-template-columns: 1fr; gap: 32px; }
  .pm-eco { padding: 80px 0 70px; }
}
@media (max-width: 575px) {
  /* Hero title: inline size is 45px, too wide for long RU/UA words on a phone */
  h1.mobile_style_size { font-size: clamp(26px, 8.4vw, 40px) !important; line-height: 1.15 !important; overflow-wrap: anywhere; hyphens: auto; }
  .pm-testi-head { align-items: flex-start; flex-direction: column; }
  .pm-testi-card { min-height: 0; padding: 24px; }
  .pm-testi-dialog-body { padding: 26px 22px 6px; }
  .pm-testi-close { margin: 10px 22px 22px; }
  .pm-logo { width: 140px; height: 72px; padding: 12px 14px; }
  .pm-logo img { max-height: 42px; }
  .pm-news-form { padding: 22px; border-radius: 22px; }
}

/* Reduced motion: no drifting, the full list is shown instead (see apple.js) */
@media (prefers-reduced-motion: reduce) {
  .pm-marquee { display: none; }
  .pm-eco-all, .pm-logo, .vs-btn, .pm-news-btn, .pm-field span, .pm-testi-card, .pm-testi-dialog[open] { animation: none; transition: none; }
  .pm-testi-card:hover { transform: none; }
  .pm-logo:hover, .vs-btn:active, .pm-news-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header-layout2 .will-sticky .sticky-active { background-color: var(--pm-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pm-news-form { background: #1e2b56; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
