/* ==========================================================================
   Сторінка «Для банку»
   IT focus · Targeted cashback · Economics · P&L · Points
   Sense Bank case · Pricing · Адаптив
   ========================================================================== */

/* Іконка в колі (48px) */
.bank-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text-on-light-mute);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.bank-icon--line { border-color: var(--line); }
.bank-icon img { width: 24px; height: 24px; }

/* IT focus -------------------------------------------------------------- */
.bank-it { padding-top: var(--space-64); }
.bank-it__title { max-width: 1000px; }
.bank-it__tiles { display: flex; gap: var(--space-24); }
.bank-it__copy { display: flex; flex-direction: column; gap: var(--space-24); }

.bank-it__access {
  position: relative;
  flex: 1 1 0; /* як у Figma: внутрішні відступи плитки + рівна частка вільного місця */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-48);
  padding: var(--space-48) var(--space-48) 0;
  border-radius: var(--radius-l);
  background: var(--surface-ink);
  overflow: hidden;
  isolation: isolate;
}
.bank-it__access::before {
  /* мʼяке світло, що слідує за курсором */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 70%) var(--my, 60%), rgba(84, 127, 242, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.bank-it__access:hover::before { opacity: 1; }
.bank-it__access > .bank-it__copy { position: relative; z-index: 1; }

/* Мережа партнерів: поле точок, від точки входу періодично проходить хвиля.
   Координати поля (972×528) — від лівого нижнього кута плитки; рамки й підпис стоять у тих самих координатах. */
.it-field {
  --wave: 5.2s;
  position: relative; z-index: 1;
  flex: 1 1 auto;
  min-height: 420px;
  overflow: hidden;
  margin: 0 calc(var(--space-48) * -1);
}
.it-field__mesh {
  position: absolute; inset: 0;
  /* точки світяться від входу й розчиняються до тексту та правого краю */
  -webkit-mask-image: radial-gradient(farthest-side at 48px calc(100% - 99px), #000 45%, transparent);
  mask-image: radial-gradient(farthest-side at 48px calc(100% - 99px), #000 45%, transparent);
}
.it-field__dots { position: absolute; left: 0; bottom: 0; display: block; max-width: none; overflow: visible; }
/* блок за кадром — анімації на паузі (bank.js), хвиля на canvas іде за тим самим годинником */
.it-field.is-paused .it-field__ring,
.it-field.is-paused .it-frame,
.it-field.is-paused .it-frame .logo-mark { animation-play-state: paused; }
.it-field__canvas { position: absolute; left: 0; bottom: 0; display: block; width: 972px; height: 528px; max-width: none; }
.it-field__node { fill: var(--accent-pale-2); filter: drop-shadow(0 0 6px rgba(124, 155, 255, 0.9)); }
.it-field__ring { fill: none; stroke: var(--accent-soft); stroke-opacity: 0.5; transform-box: fill-box; transform-origin: center; }
.it-field.is-live .it-field__ring { animation: it-ping var(--wave) infinite var(--ease-out); }
@keyframes it-ping {
  0% { transform: scale(1); stroke-opacity: 0.7; }
  30%, 100% { transform: scale(3.2); stroke-opacity: 0; }
}
/* «Одна інтеграція» — головний акцент поля */
.it-field__label {
  position: absolute;
  translate: 22px 50%;
  font-size: 22px; line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(84, 127, 242, 0.55);
}

/* Рамки партнерів: підсвічуються, коли до них доходить хвиля (затримка = відстань до входу) */
.it-field__partners { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.it-frame {
  --x: var(--x-d); --y: var(--y-d); --d: var(--d-d);   /* значення для десктопа й телефона — у style з шаблону */
  position: absolute;
  left: calc(var(--x) * 1px);
  bottom: calc((528 - var(--y)) * 1px);
  translate: -50% 50%;
}
/* кругла іконка мережі (.brand-logo, sections.css); хвиля підсвічує кільце навколо */
.it-field .it-frame { width: 72px; height: 72px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(0, 0, 0, 0.8); }
.it-field .it-frame .logo-mark { max-width: 54px; }
.it-field.is-live .it-frame,
.it-field.is-live .it-frame .logo-mark {
  animation: it-frame var(--wave) calc(var(--d) * 3.2ms) infinite ease-in-out;
}
.it-field.is-live .it-frame .logo-mark { animation-name: it-logo; }
@keyframes it-frame {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(0, 0, 0, 0.8); transform: none; }
  6% { box-shadow: 0 0 0 5px rgba(159, 182, 255, 0.4), 0 0 36px -2px rgba(84, 127, 242, 0.8); transform: scale(1.06); }
  30% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(0, 0, 0, 0.8); transform: none; }
}
@keyframes it-logo { 0%, 100% { opacity: 1; } }
.no-motion .it-field .it-field__ring,
.no-motion .it-field .it-frame { animation: none; }

.bank-it__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.bank-it__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
  padding: var(--space-48);
  border-radius: var(--radius-l);
  background: var(--surface-lavender);
  transition: box-shadow 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.bank-it__card:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgba(10, 11, 20, 0.35); }
.bank-it__card:hover .bank-icon,
.bank-point:hover .bank-icon {
  border-color: var(--brand-blue);
  box-shadow: 0 0 24px -4px rgba(84, 127, 242, 0.6);
  transform: rotate(-8deg);
}

/* Targeted cashback ------------------------------------------------------ */
.bank-targeted__head { display: flex; flex-direction: column; gap: var(--space-32); }
.bank-targeted__head .display-l { max-width: 1000px; }
.bank-targeted__lead { max-width: 792px; }

/* Сцена: ліворуч перемикач і показники, праворуч чек, що виходить з нижнього краю */
.tg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--space-48);
  padding: var(--space-48) var(--space-48) 0;
  border-radius: var(--radius-l);
  background: var(--surface-dark-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
}
/* сітка на тлі — як у схемах на сторінці ритейлу, світиться за чеком */
.tg__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(159, 182, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 182, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  -webkit-mask-image: radial-gradient(55% 80% at 72% 70%, #000 20%, transparent 80%);
  mask-image: radial-gradient(55% 80% at 72% 70%, #000 20%, transparent 80%);
}
.tg::after {
  content: "";
  position: absolute; z-index: -1;
  right: 4%; bottom: -30%;
  width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(47, 91, 239, 0.22), transparent);
  pointer-events: none;
}
.tg__side { display: flex; flex-direction: column; gap: var(--space-48); padding-bottom: var(--space-48); }

/* Перемикач — спільний компонент .ops-switch (sections.css); тут лише трохи вужчі кнопки */
.tg-switch .ops-switch__opt { padding-inline: 18px; }

.tg-metrics { display: flex; flex-direction: column; margin: 0; }
.tg-metric { display: flex; flex-direction: column; gap: var(--space-8); padding-block: var(--space-24); border-top: 1px solid var(--line); }
.tg-metric:last-child { border-bottom: 1px solid var(--line); }
.tg-metric dt { font-size: 15px; line-height: 22px; color: var(--fg-2); }
.tg-metric dd {
  margin: 0;
  font-size: 48px; line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.6s var(--ease-out);
}
.tg[data-mode="target"] .tg-metric:first-child dd { color: var(--accent-soft); }
/* «з них — за пальне»: у режимі «1% на весь чек» це майже весь бюджет */
.tg[data-mode="all"] .tg-metric--waste dd { color: var(--fg); }
.tg[data-mode="target"] .tg-metric--waste dd { color: var(--fg-3); }

.tg-case { display: flex; flex-direction: column; gap: var(--space-12); margin-top: auto; }
.tg-case .heading-s { font-size: 16px; }

/* Чек */
.tg__visual { display: flex; justify-content: center; align-items: flex-end; min-width: 0; padding-top: var(--space-24); }
.tg-receipt {
  width: min(440px, 100%);
  padding: 26px 26px 32px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ui-ink);
  font-size: 16px;
  line-height: 22px;
  box-shadow: 0 40px 80px -30px rgba(5, 6, 20, 0.7);
  transition: transform 0.6s var(--ease-out);
}
.tg:hover .tg-receipt { transform: translateY(-6px); }
.tg-receipt__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px dashed #dfe2ea; }
.tg-receipt .tg-receipt__logo { width: 46px; height: 46px; }
.tg-receipt .tg-receipt__logo .logo-mark { max-width: 36px; }
.tg-receipt__title { display: flex; flex-direction: column; min-width: 0; }
.tg-receipt__title b { font-weight: 600; letter-spacing: -0.01em; }
.tg-receipt__title small { font-size: 13.5px; color: var(--ui-mute); }
.tg-receipt__items { margin: 10px -14px 0; padding: 0; list-style: none; }
.tg-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "name cb";
  column-gap: 16px; row-gap: 6px;
  padding: 15px 14px;
  border-radius: 16px;
  transition: background-color 0.6s var(--ease-out);
}
.tg-item + .tg-item { margin-top: 4px; }
.tg-item + .tg-item::after { content: ""; position: absolute; left: 14px; right: 14px; top: -2px; border-top: 1px solid var(--ui-line); transition: opacity 0.4s; }
.tg-item__name { grid-area: name; display: flex; flex-direction: column; min-width: 0; }
.tg-item__name b { font-weight: 500; }
.tg-item__name small { font-size: 13.5px; color: var(--ui-mute); }
.tg-item__price { grid-area: price; justify-self: end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ui-text-2); }
.tg-item__cb { grid-area: cb; display: grid; justify-items: end; }
.tg-cb {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 13.5px; line-height: 18px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: #f1f2f6;
  color: var(--ui-text-2);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.tg-cb--target { background: rgba(47, 91, 239, 0.1); color: var(--theme-accent); }
.tg-cb--none { background: none; padding-right: 0; color: #a0a6ba; font-weight: 400; }
/* перемикання: в одному місці дві мітки, видно лише мітку поточного режиму */
.tg[data-mode="all"] .tg-cb--target,
.tg[data-mode="target"] .tg-cb--all { opacity: 0; transform: translateY(4px); }
.tg[data-mode="target"] .tg-item--target { background: #f4f6ff; }
.tg[data-mode="target"] .tg-item--target::after,
.tg[data-mode="target"] .tg-item--target + .tg-item::after { opacity: 0; }
.tg[data-mode="target"] .tg-item--base .tg-item__name,
.tg[data-mode="target"] .tg-item--base .tg-item__price { opacity: 0.55; }
.tg-item__name, .tg-item__price { transition: opacity 0.5s var(--ease-out); }

.tg-receipt__row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; color: var(--ui-text-2); }
.tg-receipt__row:first-of-type { margin-top: 8px; border-top: 1px dashed #dfe2ea; }
.tg-receipt__row b { font-weight: 500; color: var(--ui-ink); font-variant-numeric: tabular-nums; }
.tg-receipt__row--cb { padding-top: 10px; }
.tg-receipt__row--cb b { font-size: 26px; line-height: 32px; letter-spacing: -0.02em; color: var(--theme-accent); }

/* Хто виграє */
.tg-foot { display: flex; flex-direction: column; gap: var(--space-32); }
.tg-wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-48); }
.tg-win { display: flex; flex-direction: column; gap: var(--space-12); padding-top: var(--space-24); border-top: 1px solid var(--line); }
.tg-win__who { align-self: flex-start; }
.tg-win .heading-s { font-size: 18px; line-height: 26px; letter-spacing: -0.01em; }

/* Economics: таблиця ----------------------------------------------------- */
.bank-econ__title { max-width: 1100px; }
.bank-econ__body { display: flex; align-items: flex-start; gap: var(--space-24); }
.bank-econ__text { flex: 0 0 384px; display: flex; flex-direction: column; gap: 28px; }
.bank-econ__table-wrap { flex: 1 1 auto; min-width: 0; }

.econ-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: left;
}
.econ-table th,
.econ-table td {
  position: relative;
  height: 84px;
  padding: var(--space-16) var(--space-16) var(--space-16) 0;
  vertical-align: middle;
  font-weight: 400;
}
.econ-table thead th { height: 72px; padding-top: var(--space-24); border: 0; }
.econ-table thead th:nth-child(2) { width: 248px; }
.econ-table thead th:nth-child(3) { width: 280px; }
.econ-table tbody th { font-weight: 500; color: var(--fg); transition: color 0.35s var(--ease-out); }
.econ-table tbody th,
.econ-table tbody .econ-table__self { border-top: 1px solid var(--line); }
.econ-table .econ-table__self { color: var(--fg-2); }
.econ-table thead .econ-table__self { color: var(--fg-mute); font-weight: 500; }

/* Колонка «З DEEPLOYALTY» — темна картка */
.econ-table .econ-table__dl {
  padding-left: var(--space-24);
  padding-right: var(--space-24);
  background: var(--surface-ink);
  color: var(--text-on-dark);
  transition: background-color 0.35s var(--ease-out);
}
.econ-table thead .econ-table__dl {
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  font-weight: 500;
  white-space: nowrap;
}
.econ-table tbody tr:last-child .econ-table__dl {
  height: 92px;
  padding-bottom: var(--space-24);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.econ-table tbody .econ-table__dl::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-24);
  right: var(--space-8);
  height: 1px;
  background: var(--line-on-dark);
}
.econ-table__mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 var(--space-8) 0 0;
  vertical-align: 3px;
  background: var(--brand-blue);
}
.econ-table tbody tr:hover th { color: var(--theme-accent); }
.econ-table tbody tr:hover .econ-table__dl { background: #0c0f1f; }

/* Рядки зʼявляються по черзі */
.js:not(.no-motion) .econ-table tbody tr { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js:not(.no-motion) .econ-table tbody tr:nth-child(2) { transition-delay: 0.08s; }
.js:not(.no-motion) .econ-table tbody tr:nth-child(3) { transition-delay: 0.16s; }
.js:not(.no-motion) .econ-table tbody tr:nth-child(4) { transition-delay: 0.24s; }
.js:not(.no-motion) .econ-table tbody tr:nth-child(5) { transition-delay: 0.32s; }
.js:not(.no-motion) .econ-table.is-live tbody tr { opacity: 1; transform: none; }

/* P&L model ------------------------------------------------------------- */
.bank-pl__inner { display: flex; flex-direction: column; gap: var(--space-32); }
.bank-pl__lead { max-width: 792px; }
.bank-pl .bank-points { margin-top: var(--space-32); background: var(--surface-white); }

/* Рядок карток з номером та іконкою (P&L і кейс) */
.bank-points {
  position: relative;
  z-index: 1;
  display: flex;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bank-point {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  padding: var(--space-32);
  transition: background-color 0.5s var(--ease-out);
}
.bank-point + .bank-point { border-left: 1px solid var(--line); }
.bank-point:hover { background: rgba(84, 127, 242, 0.04); }
.bank-point__top { display: flex; justify-content: space-between; align-items: flex-start; }
.bank-point__copy { display: flex; flex-direction: column; gap: var(--space-12); }

/* Sense Bank case ------------------------------------------------------- */
.bank-case { overflow: hidden; }
.bank-case__beam { width: 1800px; left: calc(100% - 1190px); top: 260px; }
.bank-case__beam .beam__wide { height: 350px; }
.bank-case__beam .beam__mid { height: 120px; }
.bank-case__beam .beam__inner { height: 32px; }
.bank-case__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-96); }
.bank-case__top { display: flex; gap: var(--space-24); }
.bank-case__head {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}
.bank-case__head .display-l { max-width: 1000px; }
.bank-case__text { max-width: 690px; }
.bank-case__visual { position: relative; flex: 0 0 384px; }

/* Візуал кейсу: телефон із картками лояльності + світла стрічка автонарахувань поверх нього */
.case-vis.sc-phone { flex: 0 0 540px; height: 740px; }
/* пропорції iPhone 15 Pro (≈ 1 : 2,17): корпус 300 × 650, рамка 9 px */
.case-vis .sc-phone__body { left: auto; right: 16px; top: 0; translate: none; width: 300px; height: 650px; padding: 9px; border-radius: 52px; }
.case-vis .sc-phone__screen { border-radius: 44px; padding: 0 12px; font-size: 13px; line-height: 18px; }
.case-vis .sc-phone__island { width: 88px; height: 26px; }
.case-vis .sc-phone__status { height: 46px; padding: 0 14px; font-size: 13px; }
.case-screen__back { display: grid; place-items: center; width: 28px; height: 28px; margin: 4px 0 6px -4px; color: var(--ui-text-on-dark); }
.case-screen__title { margin: 0 0 14px 2px; font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; }
.case-rows { display: flex; flex-direction: column; gap: 8px; }
.case-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #17181f;
}
.case-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.case-row__body b { font-size: 13.5px; line-height: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.case-row__bal { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 14px; color: var(--ui-mute-dark); }
.case-row__bal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.case-row__pill { padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; line-height: 14px; font-weight: 500; color: var(--ui-mute-dark); background: rgba(255, 255, 255, 0.08); }   /* «не додана» — нейтральний статус */
.case-row__qr { flex: none; color: #e6e8f0; opacity: 0.85; }
.case-screen__home { position: absolute; left: 50%; bottom: 8px; width: 108px; height: 4px; translate: -50% 0; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }

.case-feed {
  position: absolute; z-index: 3;
  /* під списком карток: перекриває лише низ телефона, назви карток лишаються видимими */
  left: 0; top: 492px;
  width: 316px;
  padding: 16px 18px 6px;
  border-radius: 20px;
  background: #fff;
  color: var(--ui-ink);
  box-shadow: 0 0 0 1px rgba(13, 15, 23, 0.04), 0 40px 70px -30px rgba(0, 0, 0, 0.75);
  transition: transform 0.8s var(--ease-out) 1s, opacity 0.6s ease 1s;
}
.case-feed__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; font-size: 14px; }
.case-feed__head b { font-weight: 600; letter-spacing: -0.01em; }
.case-feed li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ui-line);
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease;
  transition-delay: calc(1.5s + var(--i) * 0.22s);
}
.case-feed__name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 18px; }
.case-feed__name b { font-weight: 600; }
.case-feed__name small, .case-feed__plus small { font-size: 12px; color: var(--ui-mute); white-space: nowrap; }
.case-feed__plus { display: flex; flex-direction: column; align-items: flex-end; line-height: 18px; }
.case-feed__plus b { font-size: 15px; font-weight: 600; color: var(--theme-accent); }
.js:not(.no-motion) .case-vis:not(.is-live) .case-feed { transform: translateY(16px); opacity: 0; }
.js:not(.no-motion) .case-vis:not(.is-live) .case-feed li { transform: translateY(8px); opacity: 0; }
.no-motion .case-feed, .no-motion .case-feed li { transition: none !important; }
.bank-case .bank-points { background: var(--overlay-ink-60); }
.bank-case .bank-point:hover { background: rgba(255, 255, 255, 0.03); }

/* Адаптив --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bank-it__tiles { flex-direction: column; }
  .tg { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  /* кейс — першим, далі перемикач, показники й чек унизу панелі */
  .tg__side { display: contents; }
  .tg-case { order: -1; }
  .tg-switch { justify-self: start; width: fit-content; }
  .tg-metrics { flex-direction: row; }
  .tg-metric { flex: 1 1 0; border-bottom: 1px solid var(--line); }
  .tg-metric + .tg-metric { padding-left: var(--space-24); border-left: 1px solid var(--line); }
  .tg-case { margin-top: 0; max-width: 640px; }
  .tg-wins { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tg-win { flex-direction: row; gap: var(--space-24); padding-block: var(--space-24); }
  .tg-win__who { flex: 0 0 96px; padding-top: 3px; }
  .bank-it__access,
  .bank-it__col { flex: none; }

  .bank-econ__body { flex-direction: column; gap: var(--space-48); }
  .bank-econ__text { flex-basis: auto; max-width: 640px; }
  .bank-econ__table-wrap { width: 100%; }

  .bank-points { flex-direction: column; }
  .bank-point { gap: var(--space-32); }
  .bank-point + .bank-point { border-left: 0; border-top: 1px solid var(--line); }

  .bank-case__inner { gap: var(--space-64); }
  .bank-case__top { flex-direction: column; gap: var(--space-48); }
  .bank-case__visual {
    flex-basis: auto;
    height: 440px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .case-vis.sc-phone { flex: none; height: 740px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .case-vis .sc-phone__body { right: auto; left: calc(50% + 10px); top: 0; }
  .case-vis .case-feed { left: calc(50% - 300px); top: 492px; }
  /* Промінь проходить за телефоном, а не через текст */
  .bank-case__beam { --beam-angle: -28deg !important; left: calc(50% - 900px); top: auto; bottom: 940px; }

}

/* Заголовок → лід → кнопка: на вузьких екранах кнопка йде після тексту */
@media (max-width: 960px) {
  .bank-pl .section-head { display: contents; }
  .bank-pl .section-head__aside--action { order: 2; padding-bottom: 0; }
  .bank-pl__lead { order: 1; }
  .bank-pl .bank-points { order: 3; margin-top: var(--space-16); }
}

@media (max-width: 760px) {
  .bank-it__access { padding: var(--space-32) var(--space-24) 0; }
  /* вхід — на лінії лівого краю тексту */
  .it-field { margin: 0 calc(var(--space-24) * -1); }
  .it-field { min-height: 330px; }
  .it-field__mesh {
    -webkit-mask-image: radial-gradient(farthest-side at 24px calc(100% - 99px), #000 45%, transparent);
    mask-image: radial-gradient(farthest-side at 24px calc(100% - 99px), #000 45%, transparent);
  }
  .it-field__dots, .it-field__canvas { left: -24px; }
  .it-field__label { margin-left: -24px; translate: 20px 50%; font-size: 19px; }
  /* на телефоні рамки менші й стоять компактніше */
  .it-frame {
    --x: var(--x-m); --y: var(--y-m); --d: var(--d-m);
    margin-left: -24px;
  }
  .it-field .it-frame { width: 56px; height: 56px; }
  .it-field .it-frame .logo-mark { max-width: 42px; }
  .bank-it__card { gap: var(--space-24); padding: var(--space-32) var(--space-24); }

  .tg { padding: var(--space-32) var(--space-24) 0; }
  .tg-switch { width: 100%; }
  .tg-switch .ops-switch__opt { padding: 9px 10px; font-size: 13px; line-height: 18px; }
  /* компактно: кейс дрібнішим текстом, дві цифри поруч, чек нижче */
  .tg { gap: var(--space-24); }
  .tg-case { gap: var(--space-8); }
  .tg-case .heading-s { font-size: 15px; line-height: 20px; }
  .tg-case .body-m { font-size: 14px; line-height: 21px; }
  .tg-metrics { flex-direction: row; }
  .tg-metric { gap: 6px; padding-block: var(--space-16); }
  .tg-metric + .tg-metric { padding-left: var(--space-16); border-left: 1px solid var(--line); }
  .tg-metric dt { font-size: 12.5px; line-height: 17px; }
  .tg-metric dd { margin-top: auto; font-size: 28px; }
  .tg-win .heading-s { font-size: 16px; line-height: 23px; }
  .tg-wins .tg-win { padding-block: var(--space-16); }
  .tg-receipt { padding: 20px 16px 24px; font-size: 14.5px; line-height: 20px; }
  .tg-receipt .tg-receipt__logo { width: 40px; height: 40px; }
  .tg-cb { font-size: 12.5px; padding: 3px 8px; }
  .tg-receipt__row--cb b { font-size: 22px; }
  .tg-receipt__items { margin-inline: -8px; }
  .tg-item { padding: 12px 8px; column-gap: 10px; }
  .tg-win { flex-direction: column; gap: var(--space-8); }
  .tg-win__who { flex: none; padding-top: 0; }

  /* Таблиця на телефоні — так само порівняння у два стовпці:
     ліворуч «Самостійно» (параметр + значення), праворуч суцільна темна колонка «З DEEPLOYALTY» */
  .econ-table, .econ-table thead, .econ-table tbody { display: block; }
  .econ-table thead tr,
  .econ-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .econ-table thead th:first-child { display: none; }
  .econ-table th, .econ-table td { width: auto !important; height: auto; }
  .econ-table thead th { height: auto; padding: 14px 12px 12px 0; display: flex; align-items: flex-end; }
  .econ-table thead .econ-table__dl { align-items: center; gap: 8px; padding: 14px 14px 12px; font-size: 14px; line-height: 20px; white-space: normal; }
  .econ-table thead .econ-table__mark { margin: 0; vertical-align: 0; }
  .econ-table tbody tr { grid-template-areas: "param dl" "self dl"; }
  .econ-table tbody th { grid-area: param; padding: 14px 12px 4px 0; border: 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
  .econ-table tbody .econ-table__self { grid-area: self; padding: 0 12px 14px 0; border: 0; font-size: 13px; line-height: 18px; }
  .econ-table tbody .econ-table__dl,
  .econ-table tbody tr:last-child .econ-table__dl {
    grid-area: dl; display: flex; align-items: center;
    height: auto; padding: 14px; border: 0;
    font-size: 13px; line-height: 18px;
  }
  .econ-table tbody .econ-table__dl::before { left: 14px; right: 14px; }
  .econ-table tbody tr:last-child .econ-table__dl { border-radius: 0 0 var(--radius-m) var(--radius-m); }

  /* пункти результатів компактно: номер і іконка в рядку, під ними заголовок */
  .bank-point { gap: var(--space-16); padding: 20px var(--space-24); }
  .bank-point .bank-icon { width: 40px; height: 40px; }
  .bank-point .bank-icon img { width: 20px; height: 20px; }
  .bank-point .heading-m { font-size: 18px; line-height: 24px; }

  .bank-case__beam { bottom: 900px; }
  /* телефон і стрічка — та сама композиція, зменшена на 20 % (zoom масштабує й розміри блоку) */
  .case-vis.sc-phone { zoom: 0.8; width: 100%; height: 710px; }
  .case-vis .sc-phone__body { left: auto; right: 0; width: 276px; height: 598px; border-radius: 48px; }
  .case-vis .sc-phone__screen { border-radius: 40px; }
  .case-vis .case-feed { left: 0; top: 474px; width: 300px; padding: 14px 14px 4px; }
}

@media (max-width: 600px) {
  .bank-it__copy { gap: var(--space-16); }
}
