/* =========================================================
   Взаимно! — лендинг программы лояльности БНБ-Банка
   ========================================================= */

@font-face {
  font-family: "Mazzard Soft M";
  src: url("../fonts/MazzardSoftM-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mazzard Soft M";
  src: url("../fonts/MazzardSoftM-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #9e97f5;
  --purple-soft: rgba(158, 151, 245, 0.2);
  --cyan-soft: rgba(31, 194, 225, 0.2);
  --orange: #ffb143;
  --peach: #ffefd9;
  --gray: #f5f5f5;
  --ink: #000;
  --muted: #6b6b6b;
  --violet: #4b20bd;
  --footer-ink: #2b1468;
  --chip: #d4d0fb;

  --g-btn: linear-gradient(90deg, #8c6eff 0.4%, #08d5dc 99.6%);
  --g-purple: linear-gradient(95deg, #ffacf0 35.6%, #6c44ff 110.4%);
  --g-cyan: linear-gradient(90deg, #8c6eff 0.4%, #08d5dc 99.6%);
  --g-warm: linear-gradient(-70deg, #ffb446 11.8%, #ffa0e6 77.7%);
  --g-now: linear-gradient(-57deg, #ffb446 11.8%, #ffa0e6 77.7%);
  --g-standard: linear-gradient(115.7deg, #2ef0ff 23%, #7c51ff 100%);
  --g-comfort: linear-gradient(100.6deg, #ffacf0 35.6%, #6c44ff 110.4%);
  --g-ultra: linear-gradient(251deg, #ffe1ae 0.3%, #ffbb4a 24%, #fff6de 50.5%, #ffae2c 59.7%, #ffaa1a 89.4%, #fff 118%);

  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);       /* мягкое торможение */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);        /* плавный старт и финиш — для сдвигов при hover */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);  /* лёгкий отскок — только для поворотов и масштаба иконок */

  --container: 1110px;
  --gutter: 20px;
  --header-h: 92px;
  --section-pad: 115px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Mazzard Soft M", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; }
img { max-width: 100%; }
.hero__stage img, .visual img, .feature img, .cat img, .bank-card img, .calendar__visual img, .level img { max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.center { display: flex; justify-content: center; }

/* ---------- typography ---------- */
.lead { font-weight: 600; font-size: 24px; line-height: 1; }
.text { font-size: 20px; line-height: 1.2; }
.text-strong { font-weight: 600; font-size: 21px; line-height: 1; }

/* ---------- section ---------- */
/* overflow-x: clip на секциях, а не только на body: мобильные браузеры игнорируют его у body,
   и вылезающие ленты расширяют страницу — справа появляется белая полоса */
.section { padding-block: var(--section-pad); position: relative; overflow-x: clip; }
.section--gray { background: var(--gray); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  text-align: center;
}
.section-head__title { font-weight: 600; font-size: 41px; line-height: 0.9; }
.section-text {
  max-width: 618px;
  margin: -30px auto 20px;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}
.section-text--narrow { max-width: 590px; }

/* «ВЗАИМНО!» с бликом */
.vz-logo {
  position: relative;
  display: block;
  width: 333px;
  max-width: 100%;
}
.vz-logo img { width: 100%; height: auto; }
.vz-logo::after,
.hero__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: url("../img/logo-small.webp") center / 100% 100% no-repeat;
  mask: url("../img/logo-small.webp") center / 100% 100% no-repeat;
}
.is-visible .vz-logo::after,
.vz-logo.is-visible::after { animation: shine 1.6s 0.35s var(--ease-in-out) both; }
.vz-logo:hover::after { animation: shine 1.1s var(--ease-in-out) both; }

@keyframes shine {
  from { background-position: 150% 0; }
  to { background-position: -60% 0; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 55px;
  padding: 12px 22px 12px 30px;
  border-radius: 50px;
  font-size: 20px;
  line-height: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.5s var(--ease-soft), background-color 0.3s;
}
.btn img { width: 31px; height: 31px; transition: transform 0.6s var(--ease-soft); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover img { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn--dark { background: #000; }
.btn--dark:hover { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55); }

.btn--grad {
  height: 65px;
  margin-top: 17px;
  background: var(--g-btn);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.5s var(--ease-soft), background-position 0.8s var(--ease-soft);
}
.btn--grad:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 36px -12px rgba(108, 90, 255, 0.65);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: height 0.4s var(--ease-out), background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  opacity: 0;
  transition: opacity 0.4s;
}
.header.is-scrolled { height: 72px; box-shadow: 0 10px 30px -20px rgba(60, 50, 140, 0.35); }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { width: 184px; height: auto; transition: transform 0.4s var(--ease-out); }
.header__logo:hover img { transform: scale(1.03); }

.nav { display: flex; gap: 10px; }
.nav__link {
  position: relative;
  padding: 10px 15px;
  border-radius: 50px;
  background: var(--purple-soft);
  font-size: 16px;
  line-height: 15px;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-soft);
}
.nav__link:hover { background: rgba(158, 151, 245, 0.4); transform: translateY(-2px); }
.nav__link.is-active { background: var(--purple); color: #fff; }

.burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
/* обрезаем только по горизонтали: телефон по дизайну заходит на следующий блок и лежит поверх него */
.hero { position: relative; z-index: 1; padding-top: var(--header-h); overflow-x: clip; }

.hero__stage {
  --u: calc(100cqw / 1110);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1110 / 586;
}
@supports not (width: 1cqw) {
  .hero__stage { --u: calc(min(1110px, 100vw - 40px) / 1110); }
}

.hero__stage > * { position: absolute; }

.hero__logo {
  left: calc(var(--u) * 1);
  top: 0;
  width: calc(var(--u) * 1109);
  margin: 0;
}
.hero__logo img { width: 100%; height: auto; }
.hero__logo::after { -webkit-mask-image: url("../img/logo-hero.webp"); mask-image: url("../img/logo-hero.webp"); animation: shine 2.2s 1.2s var(--ease-in-out) both, shine-loop 7s 4s var(--ease-in-out) infinite; }
@keyframes shine-loop {
  0%, 70% { background-position: 150% 0; }
  100% { background-position: -60% 0; }
}

.hero__card {
  left: 0;
  top: calc(var(--u) * 243);
  width: calc(var(--u) * 400);
  height: calc(var(--u) * 289);
  padding: calc(var(--u) * 40) calc(var(--u) * 30) calc(var(--u) * 25);
  border-radius: calc(var(--u) * 40);
  background: var(--orange);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title {
  max-width: calc(var(--u) * 290);
  font-weight: 600;
  font-size: calc(var(--u) * 24);
  line-height: 0.9;
}
.hero__text {
  margin-top: calc(var(--u) * 15);
  max-width: calc(var(--u) * 334);
  font-size: calc(var(--u) * 20);
  line-height: 1;
  opacity: 0.5;
}
.hero__card .btn {
  margin-top: auto;
  height: calc(var(--u) * 55);
  padding: calc(var(--u) * 12) calc(var(--u) * 22) calc(var(--u) * 12) calc(var(--u) * 30);
  font-size: calc(var(--u) * 20);
}
.hero__card .btn img { width: calc(var(--u) * 31); height: calc(var(--u) * 31); }

.hero__ribbon--d {
  left: calc(var(--u) * 341);
  top: calc(var(--u) * 250);
  width: calc(var(--u) * 869);
  height: auto;
  overflow: visible;
}
.hero__ribbon--m { display: none; }

.hero__phone { left: calc(var(--u) * 737.5); top: calc(var(--u) * 145.75); width: calc(var(--u) * 290); }
.hero__phone img { width: 100%; height: auto; }
.hero__coin img { width: 100%; height: auto; }
.hero__coin--1 { left: calc(var(--u) * 671); top: calc(var(--u) * 322); width: calc(var(--u) * 147); }
.hero__coin--2 { left: calc(var(--u) * 582); top: calc(var(--u) * 427); width: calc(var(--u) * 110); }
.hero__coin--3 { left: calc(var(--u) * 932); top: calc(var(--u) * 433); width: calc(var(--u) * 115.5); }

.parallax {
  --px: 0px; --py: 0px; --sy: 0px;
  translate: var(--px) calc(var(--py) + var(--sy));
  will-change: translate;
}

.hero__coin--1 img { animation: float 6s ease-in-out infinite; }
.hero__coin--2 img { animation: float 5s -1.5s ease-in-out infinite; }
.hero__coin--3 img { animation: float 7s -3s ease-in-out infinite; }
.hero__phone img { animation: float-phone 8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.2deg); }
}

/* entrance */
.js .hero__logo img { animation: hero-logo 1.2s 0.1s var(--ease-out) both; }
.js .hero__card { animation: rise 1s 0.35s var(--ease-out) both; }
.js .hero__phone { animation: phone-in 1.3s 0.45s var(--ease-out) both; }
.js .hero__coin { animation: pop 0.9s var(--ease-spring) both; }
.js .hero__coin--1 { animation-delay: 0.9s; }
.js .hero__coin--2 { animation-delay: 1.05s; }
.js .hero__coin--3 { animation-delay: 1.2s; }

@keyframes hero-logo {
  from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(120px) rotate(8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.3) rotate(-40deg); }
  to { opacity: 1; transform: none; }
}

/* draw SVG ribbons */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-in-out); }
.js .is-drawn .draw, .js .draw.is-drawn { stroke-dashoffset: 0; }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  --k: calc(100cqw / 353);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11.33%;
  background: var(--purple);
  --own-transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
  transition: var(--own-transition);
}
.feature__wave {
  position: absolute;
  top: calc(var(--k) * 171);
  left: calc(var(--k) * 51);
  width: calc(var(--k) * 1150);
  height: calc(var(--k) * 250);
  overflow: visible;
  transform: rotate(3.48deg);
  transform-origin: calc(var(--k) * 567) calc(var(--k) * 174);
  transition: translate 1.2s var(--ease-out);
}
.feature:nth-child(2) .feature__wave { left: calc(var(--k) * -328); }
.feature:nth-child(3) .feature__wave { left: calc(var(--k) * -706); }
.feature:hover .feature__wave { translate: calc(var(--k) * -18) 0; }

.feature__title {
  position: relative;
  margin: calc(var(--k) * 36) 0 0 calc(var(--k) * 33);
  max-width: calc(var(--k) * 200);
  font-weight: 600;
  font-size: calc(var(--k) * 24);
  line-height: 1;
}
.feature__text {
  position: relative;
  margin: calc(var(--k) * 25) 0 0 calc(var(--k) * 33);
  max-width: calc(var(--k) * 296);
  font-size: calc(var(--k) * 20);
  line-height: 1.2;
}
.feature__img {
  position: absolute;
  height: auto;
  transition: transform 0.8s var(--ease-soft);
}
.feature__img--1 { left: calc(var(--k) * 161); top: calc(var(--k) * 174); width: calc(var(--k) * 192); }
.feature__img--2 { left: calc(var(--k) * 197); top: calc(var(--k) * 192); width: calc(var(--k) * 133); }
.feature__img--3 { left: calc(var(--k) * 188); top: calc(var(--k) * 181); width: calc(var(--k) * 151); }

.feature:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(80, 64, 200, 0.6); }
.feature:hover .feature__img { transform: translate(-6px, -12px) rotate(-6deg) scale(1.06); }

/* =========================================================
   SPLIT (понятно / легко)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 39px;
  align-items: start;
}
.split__col { display: flex; flex-direction: column; }
.split__col .lead + .text, .split__col .text + .text { margin-top: 15px; }
.text-link {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.text-link:hover { text-decoration-color: transparent; }
.split__col .text-strong { margin-top: 30px; }
.split__col .accordion { margin-top: 25px; }
#easy .split__col .accordion { margin-top: 30px; }

.visual {
  --k: calc(100cqw / 535);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 535 / 580;
  border-radius: 7.48% / 6.9%;
  background: var(--peach);
  transform-style: preserve-3d;
  --own-transition: transform 0.7s var(--ease-out);
  transition: var(--own-transition);
}
.visual--tall { aspect-ratio: 535 / 629; border-radius: 7.48% / 6.36%; }
.visual > *, .visual__scene > * { position: absolute; height: auto; }

.visual__ribbon--clear {
  left: calc(var(--k) * 10);
  top: calc(var(--k) * 110);
  width: calc(var(--k) * 574);
  overflow: visible;
}
.visual__hand { left: calc(var(--k) * 118.5); top: calc(var(--k) * 49); width: calc(var(--k) * 342); }
.visual__iskra { left: calc(var(--k) * 368); top: calc(var(--k) * 30); width: calc(var(--k) * 137); }
.visual__star { left: calc(var(--k) * 339); top: calc(var(--k) * -29); width: calc(var(--k) * 85); }

.visual__app { left: calc(var(--k) * 149.2); top: calc(var(--k) * 71.1); width: calc(var(--k) * 236.6); }
.visual__flag { left: calc(var(--k) * 357.4); top: calc(var(--k) * 391.8); width: calc(var(--k) * 162.8); }

/* «значит легко»: сцена на каждый шаг, видна сцена открытого пункта аккордеона */
.visual > .visual__scene { inset: 0; height: 100%; }
.visual__scene { visibility: hidden; opacity: 0; transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s; }
.visual__scene.is-active { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease-out); }
.visual__scene > img { translate: 0 calc(var(--k) * 18); transition: translate 0.7s var(--ease-out); }
.visual__scene.is-active > img { translate: 0 0; }
.visual__ribbon--steps {
  left: calc(var(--k) * -4.87);
  top: calc(var(--k) * 127.67);
  width: calc(var(--k) * 514.02);
  rotate: -21.54deg;
  overflow: visible;
}
.visual__step2 { left: calc(var(--k) * 126); top: calc(var(--k) * 71); width: calc(var(--k) * 281.9); }
.visual__cat-icon { left: calc(var(--k) * 357); top: calc(var(--k) * 373); width: calc(var(--k) * 145); }
.visual__step3 { left: calc(var(--k) * 113.2); top: calc(var(--k) * 72.7); width: calc(var(--k) * 309.5); }
.visual__coin--1 { left: calc(var(--k) * 41.6); top: calc(var(--k) * 139.5); width: calc(var(--k) * 90.7); }
.visual__coin--2 { left: calc(var(--k) * 401.4); top: calc(var(--k) * 355.1); width: calc(var(--k) * 70.5); scale: -1 1; }

.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }

/* ---------- accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 5px; }

.acc-item { transition: margin 0.5s var(--ease-out); }
.acc-item.is-open { margin-bottom: 10px; }

.acc-item__head {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 60px;
  padding: 0 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 30px;
  background: var(--peach);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  text-align: left;
  transition: background-color 0.45s var(--ease-out), transform 0.3s var(--ease-out);
}
.acc-item__head:hover { background: #ffe5c2; }
.acc-item.is-open .acc-item__head { background: var(--purple); }
.acc-item__head:active { transform: scale(0.99); }

.acc-item__chevron {
  flex: none;
  width: 31px;
  height: 31px;
  background: url("../icons/chevron-down.svg") center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 0.5s var(--ease-spring);
}
.acc-item.is-open .acc-item__chevron { transform: rotate(0deg); }

.acc-item__body {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.55s var(--ease-out), margin 0.55s var(--ease-out);
}
.acc-item.is-open .acc-item__body { grid-template-rows: 1fr; margin-top: -30px; }
.acc-item__inner { min-height: 0; overflow: hidden; }
.acc-item .acc-item__inner {
  border-radius: 0 0 30px 30px;
  background: var(--gray);
}
.acc-item__inner > * {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.is-open > .acc-item__body .acc-item__inner > * { opacity: 1; transform: none; transition-delay: 0.12s; }
.acc-item .acc-item__inner > .text { padding: 50px 30px 33px; }

.steps { padding: 62px 28px 36px; display: flex; flex-direction: column; gap: 8px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.is-open .steps li { opacity: 1; transform: none; }
.is-open .steps li:nth-child(1) { transition-delay: 0.15s; }
.is-open .steps li:nth-child(2) { transition-delay: 0.25s; }
.is-open .steps li:nth-child(3) { transition-delay: 0.35s; }

.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-top: 4px;
  background: url("../icons/star-badge.svg") center / contain no-repeat;
  color: var(--gray);
  font-weight: 600;
  font-size: 21px;
  line-height: 0.9;
  transform: rotate(-90deg) scale(0.4);
  transition: transform 0.7s var(--ease-spring);
}
.is-open .steps__num { transform: none; }
.is-open .steps li:nth-child(2) .steps__num { transition-delay: 0.1s; }
.is-open .steps li:nth-child(3) .steps__num { transition-delay: 0.2s; }

/* =========================================================
   LEVELS
   ========================================================= */
.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  perspective: 900px;
}
.level {
  --k: calc(100cqw / 353);
  container-type: inline-size;
  position: relative;
  margin-top: 32px;
  aspect-ratio: 353 / 439;
  /* без этого Safari (iOS) раздувает карточку по высоте контента, а через aspect-ratio — и по ширине */
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 11.33% / 9.11%;
  background: rgba(158, 151, 245, 0.2);
  --own-transition: transform 0.6s var(--ease-soft), background-color 0.4s, box-shadow 0.6s var(--ease-soft);
  transition: var(--own-transition);
}
.level::before { content: ""; flex: none; height: calc(var(--k) * 120); }
.level::after { content: ""; flex: none; height: calc(var(--k) * 44); }
.level:hover { transform: translateY(-8px); background: rgba(158, 151, 245, 0.3); box-shadow: 0 30px 50px -34px rgba(80, 64, 200, 0.55); }

.level__badge {
  position: absolute;
  top: calc(var(--k) * -32);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.level__coin {
  width: calc(var(--k) * 119);
  height: auto;
  transition: transform 1s var(--ease-out);
}
.level:hover .level__coin { transform: rotateY(360deg); }
.level__label {
  /* поверх монеты: при повороте монета получает transform и иначе рисуется выше бэджа */
  position: relative;
  z-index: 1;
  margin-top: calc(var(--k) * -14);
  padding: calc(var(--k) * 6.8) calc(var(--k) * 20.5);
  border-radius: 999px;
  font-weight: 600;
  font-size: calc(var(--k) * 26);
  line-height: normal;
  white-space: nowrap;
  background-size: 160% 100%;
  transition: background-position 0.8s var(--ease-out);
}
.level:hover .level__label { background-position: 100% 0; }
.level__label--standard { background-image: var(--g-standard); }
.level__label--comfort { background-image: var(--g-comfort); }
.level__label--ultra { background-image: var(--g-ultra); }

.level__caption {
  max-width: calc(var(--k) * 216);
  font-size: calc(var(--k) * 20);
  line-height: 1.2;
  opacity: 0.6;
}
.level__caption:first-of-type {
  max-width: calc(var(--k) * 175);
  margin-top: auto;
}
.level__amount {
  margin: calc(var(--k) * 15) 0 auto;
  font-weight: 600;
  font-size: calc(var(--k) * 50);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.level__sign { font-size: calc(var(--k) * 35); }
.level__byn {
  display: inline-block;
  width: calc(var(--k) * 34);
  height: calc(var(--k) * 34);
  margin-left: calc(var(--k) * 6);
  vertical-align: calc(var(--k) * -1);
}
.level__cats {
  margin-top: calc(var(--k) * 6);
  font-weight: 600;
  font-size: calc(var(--k) * 35);
  line-height: 1.2;
}

.link-info {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet);
  font-size: 20px;
  line-height: 1.2;
  border-radius: 20px;
}
.link-info img { transition: transform 0.5s var(--ease-spring); }
.link-info:hover img { transform: rotate(360deg) scale(1.15); }
.link-info span, .link-info { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 34px 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease-out); }
.link-info:hover { background-size: calc(100% - 34px) 1px; }

/* =========================================================
   SEGMENTED CONTROL
   ========================================================= */
.segmented {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 15px;
  padding: 9px 13px;
  gap: 10px;
  border-radius: 30px;
  background: var(--gray);
}
.segmented__btn {
  position: relative;
  z-index: 1;
  height: 45px;
  min-width: 227px;
  padding: 0 30px;
  border-radius: 30px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.45s var(--ease-out);
}
.segmented__btn.is-active { color: #fff; }
.segmented__btn:not(.is-active):hover { color: var(--violet); }
.segmented__pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 45px;
  border-radius: 30px;
  background: #000;
  transition: transform 0.55s var(--ease-in-out), width 0.55s var(--ease-in-out), height 0.55s var(--ease-in-out);
}
.segmented--3 { margin-bottom: 33px; }
.segmented--3 .segmented__btn { min-width: 0; padding: 0 35px; font-size: 20px; }

/* =========================================================
   CATEGORIES
   ========================================================= */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px 18px;
}
.cat {
  --k: calc(100cqw / 358);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 358 / 170;
  border-radius: 9.78% / 20.59%;
  background: var(--peach);
  overflow: hidden;
  /* backwards, а не both: иначе анимация навсегда фиксирует transform и hover-подъём не работает */
  animation: cat-in 0.7s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform 0.55s var(--ease-soft), box-shadow 0.55s var(--ease-soft);
}
.cat--purple { background: var(--purple-soft); }
.cat--cyan { background: var(--cyan-soft); }
.cats.is-leaving .cat { animation: cat-out 0.3s var(--ease-in-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.cats__empty {
  grid-column: 1 / -1;
  padding: 48px 30px;
  border-radius: 40px;
  background: var(--purple-soft);
  text-align: center;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  animation: cat-in 0.6s var(--ease-out) backwards;
}
.cats.is-leaving .cats__empty { animation: cat-out 0.3s var(--ease-in-out) both; }

@keyframes cat-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes cat-out {
  to { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

.cat__pct {
  position: absolute;
  left: calc(var(--k) * 30);
  top: calc(var(--k) * 24);
  width: calc(var(--k) * 113);
  height: calc(var(--k) * 73);
  padding-top: calc(var(--k) * 3);
  display: grid;
  place-items: center;
  border-radius: calc(var(--k) * 40);
  background-image: var(--g-warm);
  background-size: 180% 100%;
  color: #fff;
  font-weight: 600;
  font-size: calc(var(--k) * 50);
  line-height: 1;
  transition: background-position 0.8s var(--ease-out), transform 0.5s var(--ease-spring);
}
.cat--purple .cat__pct { background-image: var(--g-purple); }
.cat--cyan .cat__pct { background-image: var(--g-cyan); }

.cat__name {
  position: absolute;
  left: calc(var(--k) * 30);
  bottom: calc(var(--k) * 24);
  max-width: calc(var(--k) * 180);
  display: flex;
  align-items: flex-end;
  gap: calc(var(--k) * 10);
  font-weight: 600;
  font-size: calc(var(--k) * 20);
  line-height: 1;
}
.cat__info {
  position: relative;
  flex: none;
  width: calc(var(--k) * 17);
  height: calc(var(--k) * 17);
  margin-bottom: calc(var(--k) * 1);
  background: url("../icons/info.svg") center / contain no-repeat;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
}
.cat__info:hover { transform: scale(1.25); }
/* зона тапа больше самой иконки */
.cat__info::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }

.cat__img {
  position: absolute;
  height: auto;
  opacity: 0.5;
  filter: saturate(0.7);
  transform-origin: 50% 80%;
  transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.8s var(--ease-soft);
}
.cat:hover, .cat.is-focus { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(120, 80, 40, 0.5); }
.cat:hover .cat__img, .cat.is-focus .cat__img { opacity: 1; filter: none; transform: translateY(-6px) rotate(-6deg) scale(1.1); }
.cat:hover .cat__pct, .cat.is-focus .cat__pct { background-position: 100% 0; transform: scale(1.04); }

.tooltip {
  position: fixed;
  z-index: 80;
  max-width: min(340px, 100vw - 20px);
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--purple);
  color: var(--ink);
  box-shadow: 0 18px 36px -18px rgba(43, 20, 104, 0.55);
  font-size: 15px;
  line-height: 1.35;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.tooltip.is-shown { opacity: 1; transform: none; }

/* =========================================================
   CALENDAR
   ========================================================= */
.calendar {
  display: grid;
  grid-template-columns: 539fr 554fr;
  gap: 19px;
  align-items: stretch;
}
.calendar__visual {
  --k: calc(100cqw / 539);
  container-type: inline-size;
  position: relative;
  min-height: 527px;
  border-radius: 30px;
  background: var(--purple-soft);
}
.calendar__ribbon {
  position: absolute;
  left: calc(var(--k) * -45);
  top: calc(var(--k) * 110);
  width: calc(var(--k) * 327);
  height: auto;
  overflow: visible;
}
.calendar__photo {
  position: absolute;
  left: calc(var(--k) * 59);
  bottom: 0;
  width: calc(var(--k) * 472);
  height: auto;
  border-radius: 0 0 30px 0;
}

.calendar__list { display: flex; flex-direction: column; gap: 8px; }
.cal-card {
  position: relative;
  flex: 1;
  min-height: 170px;
  padding: 20px 120px 20px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  border-radius: 35px;
  background: var(--purple);
  --own-transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
  transition: var(--own-transition);
}
.cal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: linear-gradient(110deg, #ffa0e6, #ffb446);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.5s;
}
.cal-card.is-now::before { opacity: 1; }
.cal-card:hover { transform: translateX(-6px); box-shadow: 0 24px 40px -28px rgba(80, 64, 200, 0.7); }

.cal-card__badge {
  padding: 8px 15px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.cal-card__text { max-width: 367px; font-size: 20px; line-height: 1.2; }
.cal-card__icon {
  position: absolute;
  right: 13px;
  top: 10px;
  width: 81px;
  height: 81px;
  opacity: 0.5;
  transition: transform 0.6s var(--ease-spring), opacity 0.4s;
}
.cal-card:hover .cal-card__icon { opacity: 0.85; transform: rotate(-10deg) scale(1.08); }
.cal-card__now {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: none;
  height: 40px;
  padding: 5px 15px;
  align-items: center;
  border-radius: 20px;
  background: var(--g-now);
  font-size: 20px;
  line-height: 1.2;
}
.cal-card.is-now .cal-card__now { display: inline-flex; animation: now-pulse 2.4s ease-in-out infinite; }
@keyframes now-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 160, 230, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(255, 160, 230, 0); }
}

/* =========================================================
   CAROUSEL
   ========================================================= */
.carousel {
  --slide: 289px;
  --gap: 25px;
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 54px;
  margin-top: 64px;
}
.carousel__viewport {
  overflow: hidden;
  padding-top: 32px;
  margin-top: -32px;
  padding-bottom: 30px;
  margin-bottom: -30px;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.carousel.is-dragging .carousel__viewport { cursor: grabbing; }
.carousel__track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}
.carousel.is-dragging .carousel__track { transition: none; }

.bank-card {
  --k: calc(100cqw / 289);
  container-type: inline-size;
  position: relative;
  flex: 0 0 var(--slide);
  aspect-ratio: 289 / 316;
  border-radius: 13.84% / 12.66%;
  background: rgba(158, 151, 245, 0.2);
  transition: transform 0.6s var(--ease-out), opacity 0.6s, background-color 0.4s;
}
.bank-card__img {
  position: absolute;
  left: calc(var(--k) * 4);
  top: calc(var(--k) * -24);
  width: calc(var(--k) * 288);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(40, 30, 90, 0.12));
  transition: transform 0.8s var(--ease-soft), filter 0.6s;
}
/* картинка карты без наклона: размер, положение и поворот — из макета (карта 248×156, rotate 15°) */
.bank-card__img--flat {
  left: calc(var(--k) * 41);
  top: calc(var(--k) * 13.4);
  width: calc(var(--k) * 248);
  rotate: 15deg;
}
.bank-card__body {
  position: absolute;
  left: calc(var(--k) * 37);
  right: calc(var(--k) * 20);
  bottom: calc(var(--k) * 24);
}
.bank-card__name {
  font-weight: 600;
  font-size: calc(var(--k) * 24);
  line-height: 1;
}
.bank-card__more {
  display: inline-block;
  margin-top: calc(var(--k) * 10);
  font-size: calc(var(--k) * 17);
  line-height: 1.2;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.bank-card__more:hover { text-decoration-color: transparent; }
.bank-card:hover { background: rgba(158, 151, 245, 0.32); }
.bank-card:hover .bank-card__img { transform: translateY(-10px) rotate(-5deg) scale(1.04); filter: drop-shadow(0 22px 22px rgba(40, 30, 90, 0.22)); }

.carousel__arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}
.carousel__arrow img { width: 19px; height: 19px; }
.carousel__arrow--prev img { transform: scaleX(-1); }
.carousel__arrow:hover:not(:disabled) { transform: scale(1.12); }
.carousel__arrow:disabled { opacity: 0.2; cursor: default; }
.carousel__dots { display: none; }

/* =========================================================
   FAQ / TABS
   ========================================================= */
.section--faq { padding-top: 103px; padding-bottom: 115px; }
.faq-title { display: none; }

.panels { position: relative; }
.panel { animation: panel-in 0.6s var(--ease-out) both; }
.panel[hidden] { display: none; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.faq-item { border-bottom: 2px solid #efefef; }
.faq-item__head {
  width: 100%;
  padding: 29px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  text-align: left;
  transition: color 0.35s;
}
.faq-item:first-child .faq-item__head { padding-top: 0; }
.faq-item__head:hover, .faq-item.is-open .faq-item__head { color: var(--orange); }
.faq-item__btn {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.faq-item__btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.5s var(--ease-soft);
}
/* сдвиг через transform вместо margin — без пересчёта раскладки и рывков по пикселям */
.faq-item.is-open .faq-item__btn::before { transform: translate(2px, -1px) rotate(45deg); }
.faq-item.is-open .acc-item__body { grid-template-rows: 1fr; }
.faq-item__head:hover .faq-item__btn { transform: scale(1.12); box-shadow: 0 8px 18px -6px rgba(255, 177, 67, 0.8); }
.faq-item__text {
  max-width: 1002px;
  padding: 0 0 40px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.2;
}
.faq-item__text p + p { margin-top: 12px; }
.faq-item__text b { font-weight: 600; color: var(--ink); }
.faq-item .acc-item__inner > * { transform: translateY(-6px); }

/* условия */
.conditions { display: flex; flex-direction: column; gap: 18px; }
.conditions__title { margin-top: 12px; font-weight: 600; font-size: 24px; line-height: 1.1; animation: cat-in 0.6s 0.12s var(--ease-out) backwards; }
.cond-list {
  display: flex;
  flex-direction: column;
  padding: 10px 30px;
  border-radius: 35px;
  background: var(--gray);
  animation: cat-in 0.6s var(--ease-out) backwards;
}
.conditions__title + .cond-list { animation-delay: 0.18s; }
.cond-list > li {
  position: relative;
  padding: 18px 0 18px 30px;
  font-size: 20px;
  line-height: 1.3;
}
.cond-list > li + li { border-top: 1px solid #e4e4e4; }
.cond-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(18px + 0.65em - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}
.cond-list b { font-weight: 600; }
.cond-mcc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.cond-mcc summary::-webkit-details-marker { display: none; }
.cond-mcc summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("../icons/chevron-down.svg") center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 0.5s var(--ease-soft);
}
.cond-mcc[open] summary::after { transform: rotate(0deg); }
.cond-mcc summary:hover { color: var(--violet); }
.cond-mcc p { margin-top: 10px; color: var(--muted); font-size: 18px; line-height: 1.4; animation: panel-in 0.45s var(--ease-out) both; }

/* docs */
.docs { display: flex; flex-direction: column; }
.docs li { border-bottom: 2px solid #efefef; animation: cat-in 0.6s var(--ease-out) both; }
.docs li:nth-child(2) { animation-delay: 0.06s; }
.docs li:nth-child(3) { animation-delay: 0.12s; }
.docs li:nth-child(4) { animation-delay: 0.18s; }
.doc {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 20px;
  margin-inline: -20px;
  border-radius: 24px;
  transition: background-color 0.3s;
}
.doc:hover { background: var(--gray); }
.doc__type {
  flex: none;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--g-warm);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}
.doc__name { flex: 1; font-weight: 600; font-size: 22px; line-height: 1.2; }
.doc__meta { color: var(--muted); font-size: 18px; white-space: nowrap; }
.doc__arrow {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #000;
  transition: transform 0.5s var(--ease-soft);
}
.doc:hover .doc__arrow { transform: translateY(3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--purple); color: var(--footer-ink); padding: 52px 0 56px; overflow-x: clip; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 40px;
}
.footer__logo { width: 297px; height: auto; margin: -2px 0 0 -2px; }
.footer__legal { margin-top: 26px; font-size: 16px; line-height: 1.5; max-width: 360px; }
.footer__legal + .footer__legal { margin-top: 18px; }
.footer__label { font-weight: 600; font-size: 16px; line-height: 1.2; }
.footer__label ~ .footer__label { margin-top: 22px; }
.footer__contacts, .socials { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 20px;
  transition: transform 0.45s var(--ease-soft), background-color 0.3s;
}
.chip img { height: auto; }
.chip:hover { transform: translateY(-3px); background: #fff; }
.footer__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.footer__link:hover { background-size: 100% 1px; }
.social { display: block; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft); }
.social img { width: 100%; height: 100%; }
.social:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 18px -8px rgba(43, 20, 104, 0.6); }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 60, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.35s both; }
.modal__box {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px;
  border-radius: 35px;
  background: var(--purple);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modal-in 0.5s var(--ease-out) both;
}
.modal.is-closing .modal__backdrop { animation: fade 0.25s reverse both; }
.modal.is-closing .modal__box { animation: modal-in 0.25s var(--ease-in-out) reverse both; }
.modal__title { font-weight: 600; font-size: 28px; line-height: 1.1; padding-right: 40px; }
.modal__lead { font-size: 24px; line-height: 1.2; }
.modal__subtitle { margin-top: 12px; font-weight: 600; font-size: 20px; line-height: 1.2; }
.modal__note { margin-top: 12px; font-style: italic; }
.modal b { font-weight: 600; }
.modal__close {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}
.modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  border-radius: 2px;
  background: #000;
  transform: rotate(45deg);
}
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { transform: rotate(90deg); background: #fff; }
/* попап с QR-кодом приложения: размеры из макета 961×336, масштабируется под ширину окна */
.modal__box.qr-popup {
  --k: calc(100cqw / 961);
  container-type: inline-size;
  width: min(961px, 100%);
  max-height: none;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: none;
  display: block;
}
.qr-popup__card {
  position: relative;
  margin-top: calc(var(--k) * 22);
  height: calc(var(--k) * 314);
  border-radius: calc(var(--k) * 40);
  background: #fff;
  overflow: hidden;
}
.qr-popup__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-popup__qr {
  position: absolute;
  left: calc(var(--k) * 54);
  top: calc(var(--k) * 59);
  width: calc(var(--k) * 198);
  height: calc(var(--k) * 195);
  display: grid;
  place-items: center;
  border-radius: calc(var(--k) * 24.6);
  background: #fff;
}
.qr-popup__qr img { width: calc(var(--k) * 167); height: calc(var(--k) * 167); }
.qr-popup__body { position: absolute; left: calc(var(--k) * 283); top: calc(var(--k) * 66); width: calc(var(--k) * 353); }
.qr-popup__title { font-weight: 600; font-size: calc(var(--k) * 24); line-height: 1.05; }
.qr-popup__text { width: calc(var(--k) * 250); margin-top: calc(var(--k) * 19); font-size: calc(var(--k) * 19.2); line-height: 1.05; }
.qr-popup__stores { display: flex; gap: calc(var(--k) * 15.4); margin-top: calc(var(--k) * 12); }
.qr-popup__stores img { width: calc(var(--k) * 40.4); height: calc(var(--k) * 40.4); border-radius: 22%; }
.qr-popup__phone {
  position: absolute;
  left: calc(var(--k) * 670);
  top: 0;
  width: calc(var(--k) * 233);
  height: auto;
  max-width: none;
  pointer-events: none;
}
.qr-popup .modal__close { right: calc(var(--k) * 16); top: calc(var(--k) * 38); background: rgba(255, 255, 255, 0.8); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(30px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
/* Собственные переходы элемента (--own-transition) добавляются к переходам появления,
   иначе это правило их перебивает и hover-сдвиги карточек срабатывают рывком.
   Задержка --d — только у появления, чтобы hover не запаздывал. */
.js .reveal {
  --reveal-translate: translate 1s var(--ease-out) var(--d, 0s);
  opacity: 0;
  translate: 0 48px;
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), var(--reveal-translate), var(--own-transition, var(--reveal-translate));
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  :root { --section-pad: 96px; }
  .nav__link { font-size: 15px; padding: 10px 12px; }
  .calendar { grid-template-columns: 1fr 1fr; }
  .cal-card { padding-right: 100px; }
}

@media (max-width: 1023px) {
  .header__logo img { width: 160px; }
  .nav { gap: 6px; }
  .nav__link { font-size: 14px; padding: 9px 11px; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .split, .calendar { grid-template-columns: 1fr; gap: 30px; }
  .visual { width: min(100%, 535px); justify-self: center; }
  .calendar__visual { min-height: 0; aspect-ratio: 539 / 527; width: min(100%, 539px); justify-self: center; }
  .calendar__list { width: min(100%, 600px); justify-self: center; }
  .carousel { gap: 20px; }
}

/* ---------------- MOBILE (по макету 360) ---------------- */
@media (max-width: 767px) {
  :root { --header-h: 64px; --section-pad: 70px; }
  html { scroll-padding-top: 64px; }

  .text, .split__col .text { font-size: 18px; }
  .lead { font-size: 22px; line-height: 1.2; }
  .text-strong { font-size: 18px; line-height: 1.2; }

  .section-head { gap: 10px; margin-bottom: 30px; }
  .vz-logo { width: 198px; }
  .section-head__title { font-size: 26px; line-height: 1; }
  .section-text { margin: -6px auto 20px; font-size: 18px; }
  .section-text br, .feature__text br, .cal-card__text br, .split__col .text br { display: none; }

  /* header */
  .header.is-scrolled { height: 60px; }
  .header__logo img { width: 168px; }
  .burger {
    position: relative;
    z-index: 2;
    display: block;
    width: 32px;
    height: 32px;
    margin-right: -2px;
  }
  .burger span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2.7px;
    border-radius: 2px;
    background: var(--purple);
    transition: transform 0.45s var(--ease-spring), opacity 0.3s, top 0.45s var(--ease-out);
  }
  .burger span:nth-child(1) { top: 8px; }
  .burger span:nth-child(2) { top: 14.7px; }
  .burger span:nth-child(3) { top: 21.3px; }
  .burger[aria-expanded="true"] span:nth-child(1) { top: 14.7px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
  .burger[aria-expanded="true"] span:nth-child(3) { top: 14.7px; transform: rotate(-45deg); }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 48px -20px rgba(60, 50, 140, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s 0.45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.45s var(--ease-out); }
  .nav__link { padding: 16px 20px; font-size: 18px; text-align: left; }
  .nav.is-open .nav__link { animation: rise 0.5s var(--ease-out) both; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: 0.05s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: 0.1s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: 0.15s; }

  /* hero */
  .hero { padding-top: calc(var(--header-h) + 2px); }
  .hero__stage {
    --u: 1px;
    --m: calc(100vw / 360);
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: calc(var(--m) * 490);
  }
  .hero__stage > .hero__logo, .hero__stage > .hero__card { position: relative; }
  .hero__logo { left: 0; width: 100%; }
  .hero__card {
    width: 100%;
    height: auto;
    top: 0;
    padding: 25px 27px 20px 25px;
    gap: 0;
    border-radius: 28px;
  }
  .hero__title { max-width: 260px; font-size: 22px; line-height: 1; }
  .hero__text { margin-top: 10px; max-width: none; font-size: 18px; line-height: 1.1; }
  .hero__card .btn { margin-top: 25px; height: 55px; padding: 12px 22px 12px 30px; font-size: 18px; }
  .hero__card .btn img { width: 31px; height: 31px; }

  .hero__ribbon--d { display: none; }
  .hero__ribbon--m {
    display: block;
    left: calc(var(--gutter) * -1);
    bottom: calc(var(--m) * 122);
    width: calc(var(--m) * 360);
    height: auto;
    overflow: visible;
  }
  .hero__phone { left: calc(var(--m) * 30); top: auto; bottom: calc(var(--m) * 25); width: calc(var(--m) * 290); }
  .hero__coin--1 { left: calc(var(--m) * 21.5); top: auto; bottom: calc(var(--m) * 221); width: calc(var(--m) * 114); }
  .hero__coin--2 { left: calc(var(--m) * -32); top: auto; bottom: calc(var(--m) * 195); width: calc(var(--m) * 85); }
  .hero__coin--3 { left: calc(var(--m) * 213); top: auto; bottom: calc(var(--m) * 53); width: calc(var(--m) * 122); }

  /* features */
  .features { grid-template-columns: 1fr; gap: 22px; padding-inline: 2px; }

  /* split */
  .split { gap: 20px; }
  .split__col { text-align: center; align-items: stretch; }
  .split__col .lead + .text { margin-top: 18px; }
  .split__col .text-strong { margin-top: 22px; }
  .split__col .accordion, #easy .split__col .accordion { margin-top: 20px; }
  .accordion { gap: 10px; text-align: left; }
  .acc-item.is-open { margin-bottom: 0; }
  .acc-item__head { font-size: 20px; padding: 0 20px 0 25px; }
  .acc-item__chevron { transform: rotate(0deg); }
  .acc-item.is-open .acc-item__chevron { transform: rotate(180deg); }
  .acc-item .acc-item__inner > .text { padding: 50px 25px 28px; font-size: 18px; }
  .steps { padding: 56px 20px 30px; gap: 10px; }
  .steps li { font-size: 18px; align-items: flex-start; }
  .steps__num { width: 46px; height: 46px; font-size: 18px; }
  .visual { width: 100%; }
  .btn--grad { width: 100%; height: 70px; margin-top: 10px; justify-content: center; font-size: 22px; border-radius: 50px; }

  /* levels */
  .levels { grid-template-columns: minmax(0, 1fr); gap: 20px; perspective: none; }
  .level { aspect-ratio: 320 / 360; margin-top: 32px; border-radius: 40px; }
  .level::before { height: calc(var(--k) * 112); }
  .level::after { height: calc(var(--k) * 40); }
  .level__cats { font-size: calc(var(--k) * 33); }
  .link-info { font-size: 18px; }
  .modal__box { padding: 28px 22px; border-radius: 28px; }
  .modal__title { font-size: 24px; }
  .modal__lead { font-size: 20px; }
  .modal .text { font-size: 17px; }

  /* segmented / categories */
  .segmented:not(.segmented--3) { flex-direction: column; width: 100%; padding: 10px; gap: 4px; }
  .segmented:not(.segmented--3) .segmented__btn { min-width: 0; width: 100%; height: 45px; font-size: 16px; }
  .segmented--3 { width: 100%; padding: 6px; gap: 0; }
  .segmented--3 .segmented__btn { flex: 1 1 auto; padding: 0 10px; font-size: 16px; height: 42px; }
  .segmented--3 .segmented__pill { height: 42px; }
  .cats { grid-template-columns: 1fr; gap: 10px; }
  .cats__empty { padding: 32px 20px; border-radius: 28px; font-size: 20px; }
  .cat { aspect-ratio: 320 / 146; border-radius: 30px; }
  .cat__pct { top: calc(var(--k) * 23); width: calc(var(--k) * 122); height: calc(var(--k) * 64); font-size: calc(var(--k) * 46); }
  .cat__name { font-size: calc(var(--k) * 19); bottom: calc(var(--k) * 30); }

  /* calendar */
  .calendar { gap: 25px; }
  .calendar__visual { aspect-ratio: 320 / 314; border-radius: 18px; }
  .calendar__photo { left: calc(var(--k) * 66); width: calc(var(--k) * 472); border-radius: 0 0 18px 0; }
  .calendar__ribbon { left: calc(var(--k) * -70); top: calc(var(--k) * 150); width: calc(var(--k) * 330); }
  .calendar__list { gap: 10px; }
  .cal-card { min-height: 206px; padding: 25px 25px 25px 25px; justify-content: flex-start; gap: 18px; border-radius: 35px; }
  .cal-card__badge { font-size: 22px; padding: 8px 15px; }
  .cal-card__text { font-size: 18px; max-width: 265px; }
  .cal-card__icon { width: 60px; height: 60px; right: 15px; top: 20px; }
  .cal-card__now { position: static; height: 34px; font-size: 18px; margin-top: -4px; }
  .cal-card:hover { transform: none; }

  /* carousel */
  .carousel {
    --slide: 240px;
    --gap: 11px;
    display: block;
    margin-top: 50px;
    margin-inline: calc(var(--gutter) * -1);
  }
  .carousel__arrow { display: none; }
  .carousel__viewport { padding-top: 34px; margin-top: -34px; }
  .bank-card { aspect-ratio: 240 / 262; border-radius: 30px; }
  .bank-card__img { left: calc(var(--k) * 12); top: calc(var(--k) * -35); width: calc(var(--k) * 268); }
  .bank-card__img--flat { left: calc(var(--k) * 46.5); top: calc(var(--k) * -0.2); width: calc(var(--k) * 230.8); }
  .bank-card__body { left: calc(var(--k) * 30); bottom: calc(var(--k) * 20); }
  .bank-card__name { font-size: calc(var(--k) * 26); }
  .bank-card__more { font-size: calc(var(--k) * 18); }
  .bank-card:not(.is-center) { opacity: 0.55; transform: scale(0.92); }
  .carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  .carousel__dots span { width: 8px; height: 8px; border-radius: 8px; background: rgba(158, 151, 245, 0.4); transition: width 0.45s var(--ease-out), background-color 0.3s; }
  .carousel__dots span.is-active { width: 26px; background: var(--purple); }

  /* faq */
  .section--faq { padding-top: 70px; padding-bottom: 80px; }
  .faq-title { display: block; margin-bottom: 26px; text-align: center; font-weight: 600; font-size: 26px; line-height: 1; }
  .segmented--3 { margin-bottom: 26px; }
  .faq-item { border-bottom-width: 1px; border-color: #e7e7e7; }
  .faq-item__head { padding: 24px 0; font-size: 18px; gap: 20px; }
  .faq-item__btn { width: 42px; height: 42px; }
  .faq-item__text { font-size: 17px; padding-bottom: 32px; margin-top: 0; }
  .conditions { gap: 14px; }
  .conditions__title { margin-top: 8px; font-size: 20px; }
  .cond-list { padding: 4px 20px; border-radius: 28px; }
  .cond-list > li { padding: 16px 0 16px 24px; font-size: 16px; }
  .cond-list > li::before { top: calc(16px + 0.65em - 4px); width: 8px; height: 8px; }
  .cond-mcc p { font-size: 15px; }
  .doc { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 20px 16px; margin-inline: -16px; }
  .doc__name { font-size: 17px; align-self: center; }
  .doc__meta { grid-column: 2; font-size: 15px; }
  .doc__arrow { display: none; }

  /* footer */
  .footer { padding: 26px 0 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { order: 3; }
  .footer__col--social { order: 2; }
  .footer__legal { font-size: 14px; margin-top: 22px; }
  .footer__contacts { gap: 10px; }
  .chip { height: 44px; padding: 0 12px; font-size: 18px; gap: 8px; }
}

@media (max-width: 359px) {
  .segmented--3 .segmented__btn { font-size: 14px; }
}

/* touch devices: no hover lift jitter */
@media (hover: none) {
  .feature:hover, .level:hover, .cal-card:hover { transform: none; box-shadow: none; }
  .feature:hover .feature__img { transform: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .js .draw { stroke-dashoffset: 0; }
  .parallax { translate: none !important; }
}
