/* ==========================================================================
   Visa × EVA.UA — Click to Pay landing
   Брейкпоінти: mobile < 768 · tablet 768–1023 · desktop ≥ 1024 (як на eva.ua)
   ========================================================================== */

/* ---------- Шрифти (ті ж файли, що на eva.ua; CORS дозволено) ---------- */
@font-face { font-family: "ProximaNova"; font-weight: 400; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Regular.woff2") format("woff2"); }
@font-face { font-family: "ProximaNova"; font-weight: 600; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Semibold.woff2") format("woff2"); }
@font-face { font-family: "ProximaNova"; font-weight: 700 800; font-display: swap; src: url("https://eva.ua/nuxt_content/fonts/ProximaNova-Bold.woff2") format("woff2"); }

:root {
  --font: "ProximaNova", -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --c-text: #212121;
  --c-text-2: #333333;
  --c-muted: #595959;
  --c-border: #EBEBEB;
  --c-border-2: #D8D8D8;
  --c-red: #E50000;
  --c-blue: #0535D4;
  --c-page: #F3F2F9;
  --c-dark: #212121;
  --c-dark-2: #333333;

  --g-hero: linear-gradient(180deg, #EDEEF0 0%, #C1C8E7 100%);
  --g-info: linear-gradient(90deg, #CDD5F9 0%, #EEEEF0 49%, #CDD5F9 100%);
  --g-cta: radial-gradient(100% 90% at 50% 50%, #ECEDF4 66%, #FFFFFF 100%);

  --container: 1312px;
  --gutter: 32px;
  --radius: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.43; color: var(--c-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

.icon { flex: none; fill: none; color: inherit; }
.icon--15 { width: 15px; height: 15px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--24 { width: 24px; height: 24px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

@media (max-width: 767px) {
  :root { --gutter: 16px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 8px;
  font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, opacity .2s;
}
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { color: var(--c-dark); }
.btn--ghost:hover { background: rgba(33, 33, 33, .06); }
.btn--cta { width: 296px; background: var(--c-dark-2); color: #fff; padding: 0 40px; box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }
.btn--cta:hover { background: #000; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: #fff; }
.topbar__inner {
  max-width: 1600px; margin: 0 auto; padding: 3px 16px 1px; min-height: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__left { display: flex; align-items: center; gap: 80px; }
.topbar__contact { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.topbar__original { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; line-height: 1; }
.topbar__original .icon { color: var(--c-text-2); }
.topbar__right { display: flex; align-items: center; gap: 32px; }
.topbar__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; transition: opacity .2s; }
.topbar__link:hover { opacity: .7; }
.topbar__link--red { color: var(--c-red); }
.topbar__lang { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 14px; font-weight: 600; }
.topbar__lang a { color: var(--c-muted); text-transform: uppercase; }
.topbar__lang a.is-active { color: var(--c-text); }
.topbar__sep { width: 1px; height: 12px; background: var(--c-border-2); }

.header { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.header__inner {
  max-width: 1600px; margin: 0 auto; padding: 19px 16px;
  display: flex; align-items: center; gap: 24px;
}
.header__burger { display: none; }
.header__logo { flex: none; }
.header__logo img { width: 150px; height: auto; }
.header__catalog {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; margin-left: 16px; padding: 0 24px; border-radius: 100px;
  background: var(--c-dark); color: #fff; font-size: 16px; font-weight: 600;
  transition: background-color .2s;
}
.header__catalog:hover { background: #000; }

.search { position: relative; flex: 1; min-width: 0; }
.search__input {
  width: 100%; height: 34px; padding: 0 44px 0 40px;
  border: 1px solid var(--c-border-2); border-radius: 100px; background: #fff;
  font-size: 14px; outline: none; transition: border-color .2s;
}
.search__input::placeholder { color: var(--c-muted); }
.search__input:focus { border-color: var(--c-text); }
.search__icon, .search__mic { position: absolute; top: 50%; transform: translateY(-50%); color: #9E9E9E; pointer-events: none; }
.search__icon { left: 12px; }
.search__mic { right: 14px; }
.search__input::-webkit-search-cancel-button { display: none; }

.header__actions { flex: none; display: flex; align-items: center; gap: 21px; }
.header__action { display: flex; color: var(--c-text); transition: opacity .2s; }
.header__action:hover { opacity: .7; }

@media (min-width: 1024px) {
  .header { position: sticky; top: 0; z-index: 105; }
}

@media (max-width: 1023px) {
  .topbar__contact, .topbar__right { display: none; }
  .topbar__left, .topbar__original { width: 100%; justify-content: center; }

  .header__inner {
    display: grid; grid-template-columns: 40px 1fr 40px; row-gap: 12px; column-gap: 0;
    padding: 12px 16px;
  }
  .header__burger { display: flex; align-items: center; justify-content: flex-start; height: 40px; color: var(--c-text); }
  .header__logo { justify-self: center; }
  .header__logo img { width: 116px; }
  .header__catalog, .header__action--user, .header__action--fav { display: none; }
  .header__actions { justify-self: end; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search__input { height: 40px; font-size: 16px; }
}

/* ---------- Хлібні крихти ---------- */
.breadcrumbs__inner { max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter); font-size: 13px; line-height: 16px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__list li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__list li + li::before { content: ""; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.breadcrumbs__list a { color: var(--c-muted); }
.breadcrumbs__list a:hover { color: var(--c-text); }
.breadcrumbs__list [aria-current] { font-weight: 600; }
.breadcrumbs__back { display: none; align-items: center; gap: 4px; color: var(--c-muted); }

@media (max-width: 1023px) {
  .breadcrumbs__inner { padding: 8px 16px; }
  .breadcrumbs__list { display: none; }
  .breadcrumbs__back { display: inline-flex; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #EBEBEB; }

.adv { background: #F9F9F9; }
.adv__inner { max-width: 1600px; margin: 0 auto; padding: 40px 32px; display: flex; justify-content: space-between; gap: 16px; }
.adv__item, .adv__item a { display: flex; align-items: center; gap: 8px; }
.adv__icon { flex: none; width: 60px; height: 60px; }
.adv__item p { font-size: 13px; line-height: 16px; }
.adv__item sup { font-weight: 700; font-size: 13px; vertical-align: 5px; line-height: 0; }

.footer__inner {
  max-width: 1600px; margin: 0 auto; padding: 40px 16px 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 304px; column-gap: 32px;
}
.footer__title, .fcol__title { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 16px; font-size: 18px; line-height: 24px; font-weight: 600; text-align: left; }
.fcol__title { cursor: default; }
.fcol__title .icon { display: none; }
.fcol__links { display: flex; flex-direction: column; gap: 14px; }
.fcol__links a, .footer__contacts a, .footer__subscribe a { transition: opacity .2s; }
.fcol__links a { font-size: 14px; line-height: 20px; font-weight: 600; }
.fcol__links a:hover, .footer__bot:hover, .footer__phone:hover { opacity: .7; }

.footer__phone { display: inline-block; margin-top: 7px; font-size: 24px; line-height: 34px; font-weight: 600; }
.footer__hours { font-size: 13px; line-height: 25px; font-weight: 600; }
.footer__muted { font-size: 13px; line-height: 16px; color: var(--c-muted); }
.footer__bot { display: flex; align-items: center; justify-content: space-between; font-size: 18px; line-height: 24px; font-weight: 600; }
.footer__bot--desk { margin-top: 13px; }
.footer__bot--mob { display: none; }

.footer__note { margin-top: -8px; font-size: 13px; line-height: 16px; }
.subscribe { display: flex; height: 38px; margin-top: 16px; }
.subscribe__input { flex: 1; min-width: 0; padding: 0 12px; border: 0; border-radius: 8px 0 0 8px; background: #fff; font-size: 14px; outline: none; }
.subscribe__input::placeholder { color: var(--c-muted); }
.subscribe__btn { flex: none; display: flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 0 8px 8px 0; background: var(--c-dark); color: #fff; font-size: 14px; transition: background-color .2s; }
.subscribe__btn:hover { background: #000; }
.subscribe__btn .icon { display: none; }

.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.social a { display: flex; width: 27px; height: 27px; color: var(--c-muted); transition: color .2s; }
.social a:hover { color: var(--c-text); }
.social svg { width: 100%; height: 100%; }

.footer__apps-title { margin-top: 18px; font-size: 13px; line-height: 16px; font-weight: 600; }
.footer__apps { display: flex; gap: 10px; margin-top: 16px; }
.footer__apps img { width: 135px; height: 40px; }

.footer__logo-wrap { display: flex; justify-content: center; padding: 48px 16px 28px; }
.footer__logo { width: 120px; height: auto; }
.footer__logo--mob { display: none; }

.footer__bottom { padding: 9px 16px; background: #E0E0E0; font-size: 13px; line-height: 16px; color: var(--c-muted); text-align: center; }

/* Footer: tablet */
@media (max-width: 1279px) and (min-width: 1024px) {
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)) 290px; column-gap: 24px; }
}
@media (max-width: 1023px) {
  .adv__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 16px; }
  .adv__icon { width: 48px; height: 48px; }

  .footer__inner { display: flex; flex-direction: column; padding: 0; }
  .fcol { order: 1; border-bottom: 1px solid var(--c-border-2); }
  .fcol:nth-child(2) { order: 0; }
  .fcol__title { height: 48px; margin: 0; padding: 0 16px; cursor: pointer; }
  .fcol__title .icon { display: block; transition: transform .25s; }
  .fcol.is-open .fcol__title .icon { transform: rotate(180deg); }
  .fcol__links { display: none; padding: 4px 16px 20px; }
  .fcol.is-open .fcol__links { display: flex; }

  .footer__contacts { order: 2; }
  .footer__title--desk, .footer__bot--desk { display: none; }
  .footer__bot--mob { display: flex; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--c-border-2); }
  .footer__phone-block { padding: 24px 16px; border-bottom: 1px solid var(--c-border-2); }
  .footer__phone { margin-top: 0; font-size: 24px; line-height: 32px; }
  .footer__hours { margin-top: 8px; line-height: 17px; }
  .footer__muted { margin-top: 8px; line-height: 15px; }

  .footer__subscribe { order: 3; padding: 24px 16px 24px; }
  .footer__subscribe .footer__title { margin-bottom: 16px; }
  .subscribe { height: 48px; margin-top: 24px; }
  .subscribe__btn { width: 68px; padding: 0; }
  .subscribe__btn span { display: none; }
  .subscribe__btn .icon { display: block; }

  .footer__logo--mob { display: block; width: 128px; margin: 24px auto 0; }
  .social { justify-content: center; margin-top: 12px; gap: 16px; }
  .footer__apps-title { text-align: center; margin-top: 24px; }
  .footer__apps { justify-content: center; gap: 8px; }
  .footer__apps img { width: 137px; }

  .footer__logo-wrap { display: none; }
  .footer__bottom { padding: 8px 16px; }
}

/* ==========================================================================
   LANDING — Visa від Ощадбанку × EVA.UA (макет Figma)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:root {
  --c-card-border: #E4E7EC;
  --c-legal: #525252;
  --g-oschad: linear-gradient(154.68deg, #082F19 0%, #114226 45.455%, #062714 82.645%);
}

.landing { background: #fff; }

.btn--light { background: #fff; color: var(--c-text); }
.btn--light:hover { background: #F0F0F0; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }

/* ---------- Hero desktop ---------- */
.hero--desk { position: relative; overflow: hidden; background: #0B3A20; }
.hero__frame {
  position: relative; left: 50%; transform: translateX(-50%);
  width: max(1620px, 100%); aspect-ratio: 2624 / 774;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* клікабельна зона поверх кнопки «Як отримати знижку?» у креативі */
.hero__hit {
  position: absolute; left: 25.72%; top: 71.6%; width: 12.95%; height: 10.1%;
  border-radius: 8px; transition: box-shadow .2s, background-color .2s;
}
.hero__hit:hover { background: rgba(0, 0, 0, .04); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.hero__hit:focus-visible { outline: 2px solid #E5E32C; outline-offset: 2px; }

.hero--mob { display: none; }

/* ---------- Hero mobile / tablet ---------- */
@media (max-width: 1023px) {
  .hero--desk { display: none; }
  .hero--mob { display: block; overflow: hidden; background: var(--g-oschad); }
  .hero--mob .hero__inner {
    max-width: 720px; margin: 0 auto; padding: 24px 16px 28px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .lockup { display: flex; align-items: center; gap: 6.27px; height: 34px; }
  .lockup__oschad { width: 70px; height: 35px; object-fit: cover; }
  .lockup__visa { width: 65px; height: 21px; object-fit: cover; mix-blend-mode: plus-lighter; }
  .lockup__sep { width: 1px; height: 34px; background: #fff; flex: none; }
  .lockup__eva { position: relative; width: 96px; height: 34px; }
  .lockup__eva img { position: absolute; left: 0; top: 3.9%; width: 96px; height: 26px; }

  .hero--mob .hero__texts { display: flex; flex-direction: column; gap: 6px; }
  .hero--mob .hero__title { font-size: 32px; line-height: 1.02; font-weight: 800; color: #F4E6D4; }
  .hero__percent { font-size: 72px; line-height: .96; font-weight: 800; color: #E5E32C; }
  .hero--mob .hero__subtitle { font-size: 17px; line-height: 1.2; font-weight: 600; color: #F4E6D4; }

  .hero__art { position: relative; height: 224px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .hero__art img { flex: none; width: 818px; max-width: none; height: 766px; }
  .hero__btn { position: relative; width: 100%; }
  .hero--mob .hero__disclaimer { font-size: 10px; line-height: 1.3; color: rgba(217, 229, 222, .72); }

  /* легка поява креативу */
  @media (prefers-reduced-motion: no-preference) {
    .hero__art img { animation: heroFloat 6s ease-in-out infinite; }
    @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  }
}

/* ---------- Блоки ---------- */
.blocks { padding: 40px 0 48px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 767px) { .blocks { padding: 28px 0 32px; gap: 28px; } }

.section-title { max-width: 614px; margin: 0 auto; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--c-text); text-align: center; }
@media (max-width: 767px) { .section-title { font-size: 22px; line-height: 28px; text-align: center; } }

/* ---------- Кроки ---------- */
.steps { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 110px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step {
  display: flex; flex-direction: column; padding: 8px; min-height: 461px;
  border: 1px solid var(--c-card-border); border-radius: 16px; background: #fff;
}
.step__art { position: relative; height: 215px; overflow: hidden; border-radius: 12px; }
.step__art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s ease; }
.step__art--zoom img { inset: auto; left: -11.71%; top: -10.96%; width: 123.31%; height: 122.67%; }
.step__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.step__badge {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px;
  background: var(--c-dark); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600;
}
.step__body p { font-size: 16px; line-height: 22px; color: var(--c-text); }
.steps__hint { font-size: 12px; line-height: 16px; color: var(--c-legal); }

/* Ховер на десктопі: легке збільшення з пружиною (як у референсі) */
@media (hover: hover) and (min-width: 1024px) {
  .step {
    position: relative;
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    transition: transform .45s var(--spring), box-shadow .3s ease, border-color .3s ease;
  }
  @supports (transition-timing-function: linear(0, 1)) {
    .step {
      --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
      transition: transform .6s var(--spring), box-shadow .3s ease, border-color .3s ease;
    }
  }
  .step:hover {
    z-index: 1; transform: scale(1.03); border-color: transparent;
    box-shadow: 0 16px 32px rgba(17, 66, 38, .18);
  }
  .step:hover .step__art:not(.step__art--zoom) img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .step, .step:hover { transform: none !important; filter: none !important; }
  .step__art img { transition: none; transform: none !important; }
}

@media (max-width: 1023px) {
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 0; }
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}
@media (max-width: 767px) {
  .steps { gap: 16px; scroll-margin-top: 16px; }
  .steps__grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 8px; }
  .step__art { height: 174px; }
  .step__art--zoom img { left: -17.06%; top: -17.09%; width: 134.18%; height: 133.85%; }

  /* Стопка карток при скролі (як у референсі) */
  .step {
    position: sticky; top: calc(16px + var(--i, 0) * 10px);
    transform-origin: 50% 0; will-change: transform;
    box-shadow: 0 -4px 16px rgba(17, 66, 38, .08);
  }
  .step:nth-child(1) { --i: 0; } .step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; height: 124px; overflow: hidden; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; padding: 20px 32px;
  background: #0B3A20;
}
.cta__bg, .cta__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__bg img { object-fit: cover; object-position: center; transition: transform 1.2s ease; }
.cta:hover .cta__bg img { transform: scale(1.03); }
.cta .btn { position: relative; }
.btn--cta { width: 296px; padding: 0 20px; box-shadow: none; }
@media (max-width: 767px) {
  .cta { height: 160px; padding: 20px 16px; }
  .btn--cta { width: 100%; }
}

/* ---------- Умови ---------- */
.terms__list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; color: var(--c-legal); }
.terms__rules { font-weight: 600; color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; }
.terms__rules:hover { text-decoration: none; }
@media (max-width: 767px) { .terms__list { font-size: 13px; line-height: 20px; } }
@media (max-width: 767px) { .step:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; } }
