/* Главная. Композиции с картинками сверстаны в единицах макета:
   --u = 1 px макета внутри контейнера, ширина которого задана в px макета (--w). */

.art { position: relative; container-type: inline-size; }
.art > *, .art .abs { position: absolute; }
.art { --u: calc(100cqw / var(--w)); }
.art img { width: 100%; height: 100%; }

/* ================= HERO ================= */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; padding: 91px 0 92px; }
.hero__blob { position: absolute; width: 1336px; height: 1008px; filter: blur(30px); opacity: 0.43; transform: rotate(49deg); pointer-events: none; }
.hero__blob--l { left: -436px; top: 194px; }
.hero__blob--r { left: 1148px; top: -332px; }
.hero__blob img { width: 100%; height: 100%; object-fit: cover; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__col { display: grid; gap: 11px; }

.card-intro {
  --w: 666; aspect-ratio: 666 / 333; border-radius: 30px; overflow: hidden;
  background: linear-gradient(220deg, #fecfbd 13%, #b080e3 54%, #6322ff 129%);
  display: grid; place-items: center;
}
.card-intro h1 {
  position: static; width: calc(527 * var(--u)); text-align: center; color: #fff;
  font-weight: 800; font-size: calc(48 * var(--u)); line-height: 1.1; letter-spacing: -0.03em;
}

.card-launch {
  --w: 666; aspect-ratio: 666 / 333; border-radius: 30px; overflow: hidden;
  background: linear-gradient(188deg, #b080e3 12%, #6322ff 125%);
}
.card-launch .moon { left: calc(19 * var(--u)); top: 0; width: calc(116 * var(--u)); height: calc(116 * var(--u)); display: grid; place-items: center; }
.card-launch .moon img { width: 86%; height: 86%; transform: rotate(10deg); }
.card-launch .copy { left: calc(124 * var(--u)); top: calc(38 * var(--u)); width: calc(424 * var(--u)); display: grid; gap: calc(12 * var(--u)); justify-items: center; text-align: center; z-index: 2; }
.card-launch .copy b { font-weight: 800; color: #fff; font-size: calc(32 * var(--u)); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.card-launch .copy span { color: #fbf9ff; font-size: calc(20 * var(--u)); line-height: 1.15; letter-spacing: -0.03em; width: calc(351 * var(--u)); }
.card-launch .rocket { left: calc(437 * var(--u)); top: calc(-30 * var(--u)); width: calc(237 * var(--u)); height: calc(237 * var(--u)); display: grid; place-items: center; z-index: 1; }
.card-launch .rocket div { width: 83.7%; height: 83.7%; transform: rotate(12.65deg); overflow: hidden; position: relative; }
.card-launch .rocket img { position: absolute; width: 95%; height: 126.65%; left: 2.55%; top: -11.81%; max-width: none; }
.card-launch .cloud { width: calc(416 * var(--u)); height: calc(312 * var(--u)); z-index: 3; }
.card-launch .cloud img { object-fit: cover; }
.card-launch .c1 { left: calc(-253 * var(--u)); top: calc(60 * var(--u)); }
.card-launch .c2 { left: calc(-115 * var(--u)); top: calc(128 * var(--u)); width: calc(370 * var(--u)); height: calc(277 * var(--u)); }
.card-launch .c3 { left: calc(458 * var(--u)); top: calc(54 * var(--u)); transform: scaleX(-1); }
.card-launch .c4 { left: calc(353 * var(--u)); top: calc(139 * var(--u)); }
.card-launch .star { z-index: 4; }
.card-launch .s1 { left: calc(102 * var(--u)); top: calc(116 * var(--u)); width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
.card-launch .s2 { left: calc(10 * var(--u)); top: calc(20 * var(--u)); width: calc(37 * var(--u)); height: calc(37 * var(--u)); }
.card-launch .s3 { left: calc(353 * var(--u)); top: calc(261 * var(--u)); width: calc(58 * var(--u)); height: calc(58 * var(--u)); }

/* одно оркестрованное движение страницы: ракета и звёзды мягко плывут */
@media (prefers-reduced-motion: no-preference) {
  .card-launch .rocket div { animation: float 5.5s var(--ease-in-out) infinite alternate; }
  .card-launch .s1, .card-launch .s3 { animation: twinkle 3.2s ease-in-out infinite alternate; }
  .card-launch .s3 { animation-delay: -1.6s; }
}
@keyframes float { from { transform: rotate(12.65deg) translate(0, 0); } to { transform: rotate(10deg) translate(4%, -6%); } }
@keyframes twinkle { from { transform: scale(0.86); opacity: 0.7; } to { transform: scale(1); opacity: 1; } }

.card-offer {
  --w: 665; aspect-ratio: 665 / 677; border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-elevated);
}
.card-offer .glow { left: calc(-89 * var(--u)); top: calc(-27 * var(--u)); width: calc(809 * var(--u)); height: calc(719 * var(--u)); transform: rotate(-5.77deg); pointer-events: none; }
.card-offer .title { left: calc(52 * var(--u)); top: calc(52 * var(--u)); width: calc(587 * var(--u)); font-weight: 800; font-size: calc(44 * var(--u)); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); z-index: 2; }
.card-offer .sub { left: calc(52 * var(--u)); top: calc(219 * var(--u)); width: calc(325 * var(--u)); font-weight: 600; font-size: calc(30 * var(--u)); line-height: 1.15; letter-spacing: -0.03em; color: var(--grey-soft); z-index: 2; }
.card-offer .boy { left: calc(361 * var(--u)); top: calc(139 * var(--u)); width: calc(336 * var(--u)); height: calc(538 * var(--u)); }
.card-offer .boy img { object-fit: fill; }
.card-offer .btn {
  left: calc(215 * var(--u)); top: calc(553 * var(--u)); translate: -50% 0; z-index: 2;
  min-height: 0; padding: calc(24 * var(--u)) calc(32 * var(--u)); font-size: calc(24 * var(--u)); gap: calc(12 * var(--u));
}
.card-offer .next { left: calc(607 * var(--u)); top: calc(319 * var(--u)); width: calc(39 * var(--u)); height: calc(39 * var(--u)); min-width: 32px; min-height: 32px; border-radius: 50%; background: rgba(255,255,255,0.86); display: grid; place-items: center; z-index: 2; transition: transform 160ms var(--ease-out); }
.card-offer .next img { width: 30%; height: auto; }
.card-offer .next:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .card-offer .next:hover { transform: translateX(2px); } }

@media (max-width: 860px) {
  .hero { padding: 16px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__col { display: contents; }
  .card-intro { order: 1; aspect-ratio: 666 / 260; }
  .card-offer { order: 2; }
  .card-launch { order: 3; }
  .card-intro h1 { font-size: clamp(24px, calc(56 * var(--u)), 40px); width: 88%; }
  .card-offer .btn { font-size: max(14px, calc(24 * var(--u))); padding: max(14px, calc(24 * var(--u))) max(20px, calc(32 * var(--u))); }
  .card-offer .sub { font-size: max(15px, calc(30 * var(--u))); }
}

/* ================= СЛОГАН ================= */
.slogan { padding: 100px 0; text-align: center; }
.slogan p {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 500;
  font-size: clamp(34px, 5vw, 72px); line-height: 1.2; letter-spacing: -0.03em; color: var(--ink);
}
.slogan .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .slogan { padding: 24px 0; } .slogan .grad { display: block; } }

/* ================= КОРОТКИЕ ВИДЕО ================= */
.shorts .h2 { margin-bottom: 48px; text-align: left; }
.shorts__row { display: flex; gap: 16px; align-items: center; }
.short {
  position: relative; flex: 0 0 auto; width: 294px; height: 590px; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: #fff;
}
.short--big { width: 370px; height: 744px; }
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.short::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.53) 60%, rgba(0,0,0,0.8) 100%); }
.short { isolation: isolate; }
.short__time { align-self: flex-start; background: rgba(0,0,0,0.3); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.short__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 22px; background: var(--purple-18); display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
.short__play img { width: 14px; height: 14px; }
.short__title { font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.03em; }
.short__tag { margin-top: 8px; font-size: 14px; color: #e1e3eb; letter-spacing: -0.03em; }
@media (max-width: 1344px) {
  .shorts__row { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shorts__row::-webkit-scrollbar { display: none; }
  .short { scroll-snap-align: start; }
}
@media (max-width: 560px) { .short { width: 240px; height: 420px; } .short--big { width: 240px; height: 420px; } .shorts .h2 { margin-bottom: 28px; } }

/* ================= ШАГИ ================= */
.steps { background: var(--purple-8); border-radius: var(--radius-xl); padding: 48px 24px 72px; display: grid; justify-items: center; gap: 64px; }
.steps .h2 { text-align: center; width: min(679px, 100%); }
.steps .h2 span { color: var(--purple); display: block; }
.steps__list { width: min(666px, 100%); display: grid; justify-items: center; gap: 6px; }
.step {
  position: relative; width: 100%; background: #fff; border-radius: var(--radius-l); padding: 32px;
  display: grid; grid-template-columns: 30px 180px 1fr; gap: 0 32px; align-items: start; color: var(--grey);
}
.step::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--purple); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
.step.is-active::after { opacity: 1; }
.step.is-active .step__n { color: var(--purple); }
.step.is-active .step__t { color: var(--ink); }
.step__n, .step__t { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.step__d { font-size: 18px; line-height: 1.25; letter-spacing: -0.03em; }
.steps__arrow { width: 24px; height: 24px; display: grid; place-items: center; }
.steps__arrow img { width: 12px; height: 10px; }
@media (max-width: 640px) {
  .step { grid-template-columns: 30px 1fr; gap: 10px 12px; padding: 24px; }
  .step__d { grid-column: 2; font-size: 16px; }
  .step__n, .step__t { font-size: 20px; }
  .steps { gap: 36px; padding: 36px 12px 40px; }
}

/* ================= ПОЧЕМУ ПОДПИСКА ================= */
.why .h2 { text-align: center; margin-bottom: 84px; }
.why__rows { display: grid; gap: 64px; }
.why__row { display: grid; grid-template-columns: 565fr 840fr; align-items: center; gap: 40px; }
.why__row--2 { grid-template-columns: 545fr 872fr; }
.why__row--3 { grid-template-columns: 530fr 939fr; }
.why__text .h3 { margin-bottom: 30px; max-width: 565px; }
.why__text p { font-size: var(--lead); line-height: 1.15; letter-spacing: -0.03em; color: var(--grey); max-width: 560px; }
.why__row .art { width: 100%; }

.art--pay { --w: 840; aspect-ratio: 840 / 557; }
.art--pay .men { left: 0; top: calc(8 * var(--u)); width: calc(706 * var(--u)); height: calc(492 * var(--u)); border-radius: calc(30 * var(--u)); overflow: hidden; }
.art--pay .men img { object-fit: cover; }
.art--pay .coins { left: calc(572 * var(--u)); top: calc(13 * var(--u)); width: calc(252 * var(--u)); height: calc(300 * var(--u)); transform: rotate(-6.27deg); }
.art--pay .phone { left: calc(35 * var(--u)); top: calc(215 * var(--u)); width: calc(167 * var(--u)); height: calc(342 * var(--u)); }
.art--pay .screen { left: calc(9 * var(--u)); top: calc(8 * var(--u)); width: calc(149 * var(--u)); height: calc(325 * var(--u)); border-radius: calc(20 * var(--u)); background: #eee6ff; overflow: hidden; text-align: center; }
.art--pay .screen .b1 { position: absolute; left: calc(26 * var(--u)); top: calc(190 * var(--u)); width: calc(144 * var(--u)); height: calc(165 * var(--u)); filter: blur(6px); opacity: 0.94; transform: rotate(-61deg); }
.art--pay .screen .b2 { position: absolute; left: calc(-112 * var(--u)); top: calc(-94 * var(--u)); width: calc(227 * var(--u)); height: calc(227 * var(--u)); filter: blur(4px); opacity: 0.38; transform: rotate(38deg); }
.art--pay .screen .ic { position: absolute; left: 50%; translate: -50% 0; top: calc(70 * var(--u)); width: calc(88 * var(--u)); height: calc(88 * var(--u)); opacity: 0.78; }
.art--pay .screen b { position: absolute; left: 0; right: 0; top: calc(162 * var(--u)); font-weight: 800; font-size: calc(9.7 * var(--u)); color: var(--ink); }
.art--pay .screen small { position: absolute; left: 50%; translate: -50% 0; top: calc(180 * var(--u)); width: calc(97 * var(--u)); font-family: 'Inter', sans-serif; font-size: calc(7.3 * var(--u)); line-height: 1.3; color: var(--hint); }
.art--pay .screen i { position: absolute; left: 50%; translate: -50% 0; top: calc(212 * var(--u)); width: calc(113.5 * var(--u)); padding: calc(7.3 * var(--u)) 0; border-radius: 100px; background: var(--purple); color: #fff; font-style: normal; font-weight: 800; font-size: calc(5.7 * var(--u)); line-height: 1; white-space: nowrap; }
.art--pay .frame { left: 0; top: 0; width: 100%; height: 100%; }

.art--bug { --w: 872; aspect-ratio: 872 / 619; }
.art--bug .panel { left: calc(92 * var(--u)); top: calc(84 * var(--u)); width: calc(706 * var(--u)); height: calc(492 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--surface); overflow: hidden; }
.art--bug .panel img { position: absolute; left: calc(326 * var(--u)); top: calc(100 * var(--u)); width: calc(576 * var(--u)); height: calc(518 * var(--u)); filter: blur(17px); opacity: 0.74; object-fit: fill; }
.art--bug .bug { left: calc(22 * var(--u)); top: calc(159 * var(--u)); width: calc(346 * var(--u)); height: calc(443 * var(--u)); transform: rotate(-5.85deg); opacity: 0.93; }
.art--bug .bug img, .art--bug .e404 img { object-fit: fill; }
.art--bug .e404 { left: calc(487 * var(--u)); top: 0; width: calc(385 * var(--u)); height: calc(280 * var(--u)); opacity: 0.88; }

.art--help { --w: 939; aspect-ratio: 939 / 609; }
.art--help .photo { left: calc(107 * var(--u)); top: 0; width: calc(706 * var(--u)); height: calc(492 * var(--u)); border-radius: calc(30 * var(--u)); overflow: hidden; }
.art--help .photo img { object-fit: cover; }
.art--help .note { left: 0; top: calc(308 * var(--u)); width: calc(370 * var(--u)); height: calc(301 * var(--u)); background: #fff; border: 1px solid var(--line); border-radius: calc(20 * var(--u)); box-shadow: var(--shadow-floating); text-align: center; }
.art--help .note b { position: absolute; left: calc(44 * var(--u)); right: calc(44 * var(--u)); top: calc(47 * var(--u)); font-weight: 800; font-size: calc(24 * var(--u)); letter-spacing: -0.03em; color: var(--ink); line-height: 1.3; }
.art--help .note span { position: absolute; left: calc(44 * var(--u)); right: calc(44 * var(--u)); top: calc(92 * var(--u)); font-weight: 600; font-size: calc(18 * var(--u)); line-height: 1.35; letter-spacing: -0.03em; color: var(--grey-light); }
.art--help .note .x { position: absolute; right: calc(28 * var(--u)); top: calc(15 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.art--help .note .x img { width: 57%; height: 57%; }
.art--help .note .gears { position: absolute; left: calc(90 * var(--u)); top: calc(139 * var(--u)); width: calc(189 * var(--u)); height: calc(145 * var(--u)); object-fit: fill; }
.art--help .bubble { left: calc(747 * var(--u)); top: calc(159 * var(--u)); width: calc(192 * var(--u)); height: calc(240 * var(--u)); }
.art--help .bubble img { object-fit: cover; }

@media (max-width: 960px) {
  .why .h2 { margin-bottom: 48px; }
  .why__row, .why__row--2, .why__row--3 { grid-template-columns: 1fr; gap: 24px; }
  .why__text { text-align: center; }
  .why__text .h3, .why__text p { margin-inline: auto; }
  .why__text .h3 { margin-bottom: 16px; }
  .why__rows { gap: 72px; }
}

/* ================= КАЛЬКУЛЯТОР ВЫГОДЫ (новое по ТЗ) ================= */
.calc { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.calc__head { text-align: center; display: grid; gap: 24px; justify-items: center; margin-bottom: 40px; }
.calc__head .lead { max-width: 770px; }

.calc__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-bottom: 24px; }
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px; border-radius: 100px; background: var(--purple-8);
}
.seg__thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 100px; background: var(--purple);
  box-shadow: 0 6px 16px -6px rgba(130, 73, 242, 0.6);
  transition: transform 340ms var(--spring); will-change: transform;
}
.seg button {
  position: relative; z-index: 1; height: 48px; padding: 0 22px; border-radius: 100px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.seg button[aria-checked="true"] { color: #fff; }
.seg button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-checked="false"]:hover { color: var(--purple); } }
.seg button small { font-weight: 600; font-size: 13px; opacity: 0.8; margin-left: 4px; }
.seg--promo button[data-value="promo"] { padding-right: 18px; }
.seg__badge { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 100px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; vertical-align: 2px; }

.calc__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-card { border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.calc-card--alone { background: #fff; border: 1px solid var(--purple-8); box-shadow: var(--shadow-elevated); }
.calc-card--sub { background: var(--grad-warm); justify-content: space-between; position: relative; overflow: hidden; box-shadow: var(--shadow-elevated); }
.calc-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.calc-card__head h3 { font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; letter-spacing: -0.03em; max-width: 307px; }
.badge { flex: none; padding: 6px 12px; border-radius: 100px; background: var(--purple-8); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -0.03em; }
.calc-card--sub .badge { background: rgba(250, 248, 255, 0.67); }

.svc { display: grid; gap: 12px; }
.svc li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--purple-8); }
.svc li[hidden] { display: none; }
.svc__l { display: flex; gap: 16px; align-items: center; min-width: 0; }
.svc__l img { width: 72px; height: 72px; flex: none; }
.svc__l b { display: block; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.svc__l span { font-weight: 400; font-size: 16px; color: var(--grey); letter-spacing: -0.03em; line-height: 1.2; }
.svc__r { text-align: right; font-size: 16px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.svc__r b { display: block; font-weight: 700; }
.svc__r span { display: block; margin-top: 4px; color: var(--grey); font-weight: 400; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 102px; padding: 24px; border-radius: 16px; background: var(--purple-8); white-space: nowrap; margin-top: auto; }
.total p { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.03em; }
.total strong { font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; }

.gift { height: 266px; display: grid; place-items: center; position: relative; }
.gift img { width: 275px; height: 281px; transform: rotate(3.9deg); object-fit: fill; }
.gift__price {
  position: absolute; right: 0; top: 8px; padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-elevated);
  text-align: right; line-height: 1.1;
}
.gift__price s { display: block; color: var(--grey); font-size: 15px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.gift__price b { font-weight: 800; font-size: 20px; color: var(--purple); letter-spacing: -0.03em; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.feat li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; line-height: 1.1; }
.feat li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--purple) url('assets/img/imgCheck.svg') center / 10px 8px no-repeat; }
.feat li.is-off { color: var(--grey); }
.feat li.is-off::before { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='%23acafbf' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 8px no-repeat; }

.price-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 24px; border-radius: 16px; background: #fff; }
.price-box > p { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.03em; }
.price-box__v { text-align: right; display: grid; gap: 10px; justify-items: end; }
.price-box__now { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.price-box__now s { color: var(--grey); font-weight: 600; font-size: 20px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.price-box__now s[hidden] { display: none; }
.price-box__now strong { font-weight: 800; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.03em; color: var(--purple); }
.price-box__now span { font-size: 18px; color: var(--grey); }
.price-box__y { font-size: 16px; color: var(--grey); white-space: nowrap; }

.saving { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px; border-radius: var(--radius-l); background: var(--purple-8); }
.saving__l { display: flex; align-items: center; gap: 20px; }
.saving__l img { width: 107px; height: 109px; transform: scaleY(-1) rotate(-173deg); flex: none; }
.saving b { display: block; font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.saving span { display: block; margin-top: 10px; font-size: 18px; color: var(--grey-soft); letter-spacing: -0.03em; line-height: 1.25; }
.saving__sep { width: 1px; height: 64px; background: #e3d9ff; flex: none; }
.saving__r { width: min(575px, 50%); }

/* что входит — зачёркнутая рыночная цена против подписки */
.included { margin-top: 24px; border-radius: var(--radius-l); border: 1px solid var(--purple-8); padding: 32px; background: #fff; box-shadow: var(--shadow-elevated); }
.included__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.included__head h3 { font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.1; }
.included__head p { font-size: 16px; color: var(--grey); }
.included ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.included li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--purple-18); font-size: 16px; letter-spacing: -0.02em; }
.included li span { font-weight: 700; }
.included li s { color: var(--grey); white-space: nowrap; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; }
.included li em { font-style: normal; color: var(--purple); font-weight: 800; white-space: nowrap; margin-left: 6px; }
.included__note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted-info); background: rgba(130, 73, 242, 0.07); border-radius: 14px; padding: 12px 16px; line-height: 1.4; }
.included__note a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.calc__cta { display: flex; justify-content: center; margin-top: 32px; }

/* смена чисел: короткий подъём, только opacity/transform */
.num { display: inline-block; }
.num.is-tick { animation: tick 260ms var(--ease-out); }
@keyframes tick { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .included ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .calc__cards { grid-template-columns: 1fr; }
  .saving { flex-direction: column; align-items: flex-start; }
  .saving__sep { display: none; }
  .saving__r { width: 100%; }
}
@media (max-width: 560px) {
  .calc-card, .included { padding: 20px; }
  .svc__l img { width: 52px; height: 52px; }
  .svc__l span { font-size: 14px; }
  .svc__r { font-size: 15px; }
  .feat { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg button { padding: 0 10px; font-size: 15px; }
  .saving { padding: 20px; }
  .saving__l img { width: 64px; height: 66px; }
  .total { padding: 20px; min-height: 0; }
  .price-box { padding: 20px; }
  .gift { height: 200px; }
  .gift img { width: 190px; height: 194px; }
}

/* ================= КЕЙСЫ ================= */
.cases .h2 { color: var(--ink-strong); margin-bottom: 48px; }
.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 12px; }
.case { display: grid; gap: 24px; border-radius: var(--radius-l); }
.case__pic { --w: 666; aspect-ratio: 666 / 500; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.case__pic .shot { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case:hover .case__pic .shot { transform: scale(1.03); } }
.case:active .case__pic { transform: scale(0.99); }
.case__pic { transition: transform 160ms var(--ease-out); }
.case__pic img { object-fit: cover; }
.case--storm .shot { left: calc(-62 * var(--u)); top: 0; width: calc(750 * var(--u)); height: 100%; }
.case--kanye .shot { left: calc(-26 * var(--u)); top: calc(-29 * var(--u)); width: calc(706 * var(--u)); height: calc(529 * var(--u)); }
.case--water .shot { left: 0; top: calc(-280 * var(--u)); width: calc(679 * var(--u)); height: calc(1018.5 * var(--u)); }
.case--water .screen { left: calc(203 * var(--u)); top: calc(42 * var(--u)); width: calc(419 * var(--u)); height: calc(287 * var(--u)); }
.case--prive .shot { left: calc(-247 * var(--u)); top: calc(-203 * var(--u)); width: calc(1252.5 * var(--u)); height: calc(989 * var(--u)); overflow: hidden; }
.case--prive .shot img { position: absolute; left: 0; top: -45%; width: 100%; height: 190%; max-width: none; }
.case--prive .screen { left: calc(239 * var(--u)); top: calc(23 * var(--u)); width: calc(390 * var(--u)); height: calc(306 * var(--u)); }
.case__t { font-weight: 700; font-size: clamp(20px, 1.95vw, 28px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-case); }
.case__m { margin-top: 10px; font-size: 18px; line-height: 1; color: var(--grey-case); letter-spacing: -0.03em; }
.cases__more { display: flex; justify-content: center; margin-top: 48px; }
.cases__more .btn { padding: 23px 46px; }
@media (max-width: 760px) { .cases__grid { grid-template-columns: 1fr; gap: 32px; } .case { gap: 16px; } }

/* ================= ТАРИФЫ ================= */
.plans { background: linear-gradient(-67deg, #ffebe0 0%, #fbe5ff 50%, #f1ebff 75%); border-radius: var(--radius-xl); padding: 48px; }
.plans .h2 { margin-bottom: 48px; }
.plans__body { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.plan { width: min(684px, 100%); background: rgba(255,255,255,0.4); border-radius: 48px; padding: 28px 28px 37px; display: grid; gap: 16px; }
.plan .seg { width: 100%; background: rgba(255,255,255,0.7); padding: 6px; }
.plan .seg button { height: 72px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; padding: 0 16px; }
.plan .seg button[aria-checked="false"] { color: var(--ink-strong); }
.plan__list { display: grid; gap: 16px; padding: 20px 24px; }
.plan__list li { display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.1; letter-spacing: -0.03em; }
.plan__list li::before { content: ''; flex: none; width: 22px; height: 22px; background: url('assets/img/imgTickSquare.svg') center / 20px no-repeat; }
.plan__list li em { font-style: normal; color: var(--muted); }
.plan__list li.is-new { color: var(--purple); }
.plan__cta { border-radius: var(--radius-m); padding: 24px 30px; font-size: 20px; width: 100%; }
.plan__promo { display: flex; gap: 5px; align-items: center; justify-content: center; color: var(--hint); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -0.03em; }
.plan__promo img { width: 20px; height: 20px; }
.plan__info { background: rgba(130, 73, 242, 0.1); border-radius: var(--radius-m); padding: 16px 31px; text-align: center; font-size: 18px; line-height: 1.3; color: var(--muted-info); letter-spacing: -0.03em; }
.device { position: relative; width: 388px; aspect-ratio: 388 / 793; flex: none; margin-right: clamp(0px, 3vw, 60px); }
.device video, .device .device__poster { position: absolute; left: 4.67%; top: 2.4%; width: 90.2%; height: 95.2%; object-fit: cover; border-radius: 47px 47px 40px 40px; background: #16141c; }
.device > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device video { transition: opacity 240ms ease; }
.device video.is-swapping { opacity: 0; }
@media (max-width: 1100px) { .device { width: 300px; } }
@media (max-width: 860px) {
  .plans { padding: 28px 16px; }
  .plans__body { flex-direction: column; }
  .device { width: min(260px, 70%); margin: 0; }
  .plan { border-radius: 32px; padding: 16px; }
  .plan .seg button { height: 52px; }
  .plan__list { padding: 12px 8px; }
}

/* ================= УЖЕ ЕСТЬ САЙТ ================= */
.transfer { --w: 1344; position: relative; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(220deg, #793df2 19%, #331a66 119%); min-height: 750px; padding: 82px; isolation: isolate; container-type: inline-size; }
.transfer::before { content: ''; position: absolute; z-index: -1; left: 38%; top: 9%; width: 86%; height: 120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(172,131,255,0.55), rgba(214,193,255,0.25) 50%, transparent 88%); filter: blur(60px); mix-blend-mode: plus-lighter; }
.transfer h2 { font-weight: 800; font-size: clamp(48px, 6.7vw, 96px); line-height: 0.9; letter-spacing: -0.03em; background: linear-gradient(79deg, #fff 15%, rgba(200,186,233,0.54) 170%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.transfer p { margin-top: 36px; max-width: 884px; font-weight: 600; font-size: clamp(24px, 3.33vw, 48px); line-height: 1.2; letter-spacing: -0.03em; color: rgba(255,255,255,0.8); }
.transfer .btn { position: absolute; left: 82px; bottom: 82px; padding: 32px 44px; font-size: 28px; gap: 16px; border-radius: 51px; }
.transfer__price { position: absolute; left: 41.6%; top: 25.7%; width: 53.1%; transform: rotate(-2.81deg); z-index: -1; }
@media (max-width: 860px) {
  .transfer { min-height: 0; padding: 32px 24px 28px; display: flex; flex-direction: column; }
  .transfer p { margin-top: 16px; }
  .transfer__price { position: static; width: 100%; margin: 16px 0 0; order: 3; z-index: 0; }
  .transfer .btn { position: static; order: 4; padding: 20px 28px; font-size: 18px; align-self: flex-start; }
}

/* ================= ДОП. УСЛУГИ (переворачиваются) ================= */
.addons .h2 { text-align: center; margin-bottom: 48px; }
.addons__grid { display: grid; grid-template-columns: repeat(2, 420px); gap: 24px; justify-content: center; }
.flip { position: relative; aspect-ratio: 1; perspective: 1400px; border-radius: 32.7px; text-align: left; width: 100%; }
.flip__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 700ms var(--spring); }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip__in { transform: rotateY(180deg); } }
.flip:active .flip__in { scale: 0.985; }
.flip__face { --w: 420; position: absolute; inset: 0; border-radius: 32.7px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; container-type: inline-size; }
.flip__face h3 { position: absolute; left: calc(43.6 * var(--u)); top: calc(43.6 * var(--u)); width: calc(352 * var(--u)); white-space: nowrap; font-weight: 800; font-size: calc(36 * var(--u)); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.flip--lilac .flip__face { background: var(--purple-8); }
.flip--grey .flip__face { background: var(--surface); }
.flip__face .ic { position: absolute; }
.flip__face .ic img { width: 100%; height: 100%; object-fit: contain; }
.ic--brand { left: calc(115 * var(--u)); top: calc(100 * var(--u)); width: calc(327 * var(--u)); height: calc(342 * var(--u)); transform: rotate(9.16deg); }
.ic--seo { left: calc(101.5 * var(--u)); top: calc(175 * var(--u)); width: calc(311 * var(--u)); height: calc(215 * var(--u)); }
.ic--seo img { object-fit: fill; }
.ic--legal { left: calc(161 * var(--u)); top: calc(152 * var(--u)); width: calc(283 * var(--u)); height: calc(225 * var(--u)); transform: rotate(1.6deg); }
.ic--copy { left: calc(154 * var(--u)); top: calc(125 * var(--u)); width: calc(281 * var(--u)); height: calc(281 * var(--u)); }
.flip__back { transform: rotateY(180deg); background: var(--purple) !important; color: #fff; padding: calc(43.6 * var(--u)); display: flex; flex-direction: column; }
.flip__back h3 { position: static; color: #fff; width: auto; white-space: normal; margin-bottom: 20px; }
.flip__back ul { display: grid; gap: 10px; font-size: max(15px, calc(19 * var(--u))); line-height: 1.3; letter-spacing: -0.02em; }
.flip__back li { padding-left: 18px; position: relative; }
.flip__back li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.7; }
.flip__back strong { margin-top: auto; font-weight: 800; font-size: max(26px, calc(40 * var(--u))); letter-spacing: -0.03em; }
.flip__back strong small { font-size: 0.5em; font-weight: 600; opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { .flip__in { transition: none; } }
@media (max-width: 920px) { .addons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 520px) { .addons__grid { grid-template-columns: 1fr; } .flip { max-width: 420px; justify-self: center; } }

/* ================= FAQ ================= */
.faq .h2 { text-align: center; margin-bottom: 48px; }
.faq__list { width: min(892px, 100%); margin-inline: auto; display: grid; gap: 12px; }
.qa { background: var(--surface); border-radius: var(--radius-l); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 88px; padding: 20px 32px; cursor: pointer; font-weight: 600; font-size: clamp(17px, 1.67vw, 24px); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); border-radius: inherit; transition: transform 160ms var(--ease-out); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:active { transform: scale(0.995); }
.qa summary img { width: 24px; height: 24px; flex: none; transition: transform 260ms var(--ease-out); }
.qa[open] summary img { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover img { transform: scale(1.12); } .qa[open] summary:hover img { transform: rotate(45deg) scale(1.12); } }
.qa__a { padding: 0 32px 28px; font-size: 18px; line-height: 1.7; color: var(--grey); max-width: 76ch; }
.qa[open] .qa__a { animation: qa-in 260ms var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .qa summary { padding: 18px 20px; min-height: 72px; } .qa__a { padding: 0 20px 20px; font-size: 16px; } }

/* ================= ФОРМА ================= */
.lead-form { position: relative; border-radius: var(--radius-xl); background: linear-gradient(-67deg, #ffebe0 0%, #fbe5ff 50%, #f1ebff 75%); padding: 48px; display: grid; grid-template-columns: 1fr 552px; gap: 40px; min-height: 680px; overflow: hidden; }
.lead-form .h2 { margin-top: 12px; max-width: 520px; }
.lead-form__art { position: absolute; left: 33px; bottom: 40px; width: 400px; transform: rotate(-4deg); }
.lead-form__card { align-self: start; display: grid; gap: 32px; }
.form-box { background: #fff; border-radius: var(--radius-l); padding: 40px 32px 32px; box-shadow: var(--shadow-elevated); }
.form-box h3 { text-align: center; font-weight: 800; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 28px; }
.field { display: block; position: relative; background: var(--surface); border-radius: var(--radius-s); padding: 12px 20px; margin-top: 4px; border: 1px solid transparent; transition: border-color 160ms ease; }
.field:focus-within { border-color: var(--purple); }
.field span { display: block; font-size: 14px; color: var(--grey-light); line-height: 1.2; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; border: 0; background: none; outline: 0; font-size: 18px; color: var(--ink); padding: 0; resize: none; line-height: 1.3; }
.field input::placeholder, .field textarea::placeholder { color: #a9a3b4; }
.field.is-error { border-color: #e5484d; }
.field__err { display: none; font-size: 13px; color: #c62a2f; margin-top: 4px; }
.field.is-error .field__err { display: block; }
.consent { text-align: center; font-size: 14px; color: var(--grey); line-height: 1.3; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form .btn--purple { width: 100%; min-height: 64px; font-size: 22px; }
.form-ok { text-align: center; padding: 24px 0 8px; }
.form-ok b { display: block; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 8px; }
.form-ok p { color: var(--grey); }
.form-fail { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #c4382c; }
.form-fail a { color: inherit; font-weight: 700; }
/* поле-ловушка для ботов */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1100px) { .lead-form { grid-template-columns: 1fr 1fr; } .lead-form__art { width: 300px; } }
@media (max-width: 860px) {
  .lead-form { grid-template-columns: 1fr; padding: 28px 16px; min-height: 0; }
  .lead-form__art { position: static; width: 220px; margin: -8px auto 0; }
  .form-box { padding: 28px 16px 20px; }
}

/* --u для лиц карточек (сами лица — контейнеры для своих детей) */
.flip__face { --u: calc(100cqw / var(--w)); }
.flip__back { padding: clamp(24px, 3.2vw, 44px); }
.case__pic { --u: calc(100cqw / var(--w)); }

/* на ширине макета картинки «Почему подписка» выходят за правый край контейнера, как в Figma */
@media (min-width: 1500px) {
  .why__row { grid-template-columns: 604px 840px; gap: 0; }
  .why__row--2 { grid-template-columns: 545px 872px; }
  .why__row--3 { grid-template-columns: 530px 939px; }
}

/* узкие экраны: переключатели и строки калькулятора не должны распирать страницу */
.seg { grid-auto-columns: minmax(0, 1fr); max-width: 100%; }
.plans__body > .plan { min-width: 0; }
@media (max-width: 560px) {
  .seg button { white-space: normal; line-height: 1.1; padding: 0 6px; font-size: 14px; }
  .plan .seg button { font-size: 15px; height: 52px; padding: 0 6px; }
  .plan__cta { white-space: normal; text-align: center; font-size: 17px; padding: 20px; }
  .plan__info { padding: 14px 16px; font-size: 15px; }
  .svc li { flex-wrap: wrap; }
  .svc__r { width: 100%; text-align: left; padding-left: 68px; }
  .calc__controls .seg { width: 100%; }
}
.calc__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .calc__cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .total, .price-box { white-space: normal; flex-wrap: wrap; } }
@media (max-width: 560px) {
  .plan .seg { grid-auto-columns: auto; }
  .plan .seg button { padding: 0 10px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 520px) {
  .addons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flip { max-width: none; }
  .flip__face h3 { white-space: normal; font-size: calc(40 * var(--u)); width: calc(340 * var(--u)); }
  .flip__back ul { font-size: 12px; gap: 4px; }
  .flip__back h3 { display: none; }
  .flip__back strong { font-size: 18px; }
}
@media (max-width: 520px) {
  .flip__back { padding: 14px; }
  .flip__back ul { font-size: 11.5px; line-height: 1.25; }
  .flip__back li { padding-left: 12px; }
  .flip__back li::before { width: 5px; height: 5px; }
}
@media (max-width: 400px) { .flip__back li:nth-child(n+3) { display: none; } }
