/* Параллакс фона каждого блока: ::before-слой с градиентом, двигается на разной скорости */
section.block { position: relative; overflow: hidden; }
section.block::before {
  content: ""; position: absolute; inset: -15% -5% 0 -5%; z-index: 0;
  pointer-events: none; will-change: transform;
  transform: translate3d(0, var(--bgpx, 0px), 0);
  background: radial-gradient(55% 70% at 18% 30%, rgba(46, 168, 107, .07), transparent 62%);
}
section.block > .container { position: relative; z-index: 1; }

section.block:nth-of-type(2)::before { background: radial-gradient(60% 80% at 82% 20%, rgba(56, 189, 248, .07), transparent 60%); }
section.block:nth-of-type(3)::before { background: radial-gradient(50% 70% at 15% 70%, rgba(168, 85, 247, .06), transparent 62%); }
section.block:nth-of-type(4)::before { background: radial-gradient(55% 65% at 85% 40%, rgba(251, 191, 36, .05), transparent 60%); }
section.block:nth-of-type(5)::before { background: radial-gradient(50% 75% at 20% 50%, rgba(46, 168, 107, .08), transparent 64%); }
section.block:nth-of-type(6)::before { background: radial-gradient(60% 80% at 78% 30%, rgba(248, 113, 113, .05), transparent 62%); }
section.block:nth-of-type(7)::before { background: radial-gradient(50% 70% at 12% 60%, rgba(96, 165, 250, .06), transparent 62%); }
section.block:nth-of-type(8)::before { background: radial-gradient(55% 75% at 88% 70%, rgba(46, 168, 107, .09), transparent 64%); }

/* SVG-картинки на фоне блоков (по тематике), с параллаксом */
section.block::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .45; will-change: transform;
  transform: translate3d(var(--bgmx, 0px), calc(var(--bgpx, 0px) * -1.4 + var(--bgmy, 0px)), 0);
  transition: opacity .4s ease;
}
section.block:nth-of-type(2)::after { background-image: url("../img/bg-steps.svg"); opacity: .4; }
section.block:nth-of-type(3)::after { background-image: url("../img/bg-advantages.svg"); opacity: .45; }
section.block:nth-of-type(4)::after { background-image: url("../img/bg-gpu.svg"); opacity: .4; }
section.block:nth-of-type(5)::after { background-image: url("../img/bg-modules.svg"); opacity: .35; }
section.block:nth-of-type(6)::after { background-image: url("../img/bg-pricing.svg"); opacity: .3; }
section.block:nth-of-type(7)::after { background-image: url("../img/bg-gift.svg"); opacity: .4; }

/* Параллакс на главной */
section.block { will-change: transform; transform: translate3d(0, var(--px, 0px), 0); }
.section-head { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.feature-card, .pricing-card { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.step-card::after { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.gift-chip { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

.step-card:hover { transform: translateY(-5px) translate3d(0, var(--py, 0px), 0); }
.feature-card:hover { transform: translate3d(0, var(--py, 0px), 0); }
.pricing-card:hover { transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- Этапы: «трубопровод» ---------- */
.steps { counter-reset: sn; gap: 1.4rem; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 2.6rem;
  border-top: 2px dashed rgba(46, 168, 107, .28); z-index: 0;
}
.step-card { counter-increment: sn; z-index: 1; padding-top: 2rem; }
.step-card::after {
  content: "0" counter(sn);
  position: absolute; top: .55rem; right: 1.1rem; z-index: -1;
  font: 800 3.4rem/1 "JetBrains Mono", monospace; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(46, 168, 107, .22);
}
.step-card .mod-img {
  width: 52px; height: 52px; border-radius: 14px; padding: 6px;
  background: #10161d; border: 1px solid var(--line-soft);
}
.step-card h3 { font-size: 1.08rem; }
@media (max-width: 980px) { .steps::before { display: none; } }

/* ---------- Преимущества: вкладки по типам + карточки ---------- */
.adv-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: start; }
.adv-tabs { position: sticky; top: 80px; display: flex; flex-direction: column; gap: .35rem; }
.adv-tab {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem .95rem; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(13, 17, 23, .4); color: var(--text-dim); cursor: pointer;
  font: 600 .9rem/1.2 "Manrope", sans-serif; text-align: left;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.adv-tab:hover { background: rgba(46, 168, 107, .06); color: var(--text); transform: translateX(2px); }
.adv-tab.is-active { background: rgba(46, 168, 107, .12); border-color: rgba(46, 168, 107, .5); color: var(--text); }
.adv-tab-name { flex: 1; }
.adv-tab-count {
  font: 700 .75rem/1 "JetBrains Mono", monospace; color: var(--green);
  background: rgba(46, 168, 107, .12); padding: .2rem .5rem; border-radius: 999px;
}
.adv-panels { min-height: 20rem; }
.adv-panel { display: none; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.adv-panel.is-active { display: block; opacity: 1; transform: none; animation: advFade .6s var(--ease); }
@keyframes advFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.adv-panel .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.adv-panel .feature-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 1.25rem 1.4rem; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.adv-panel .feature-card:hover { transform: translateY(-3px); border-color: rgba(46, 168, 107, .45); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.adv-panel .feature-card .mod-img { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; margin-bottom: 1rem; }
.adv-panel .feature-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.adv-panel .feature-card p { color: var(--text-dim); font-size: .9rem; margin: 0; text-wrap: pretty; }
.adv-panel .feature-card .card-more { font-size: .85rem; color: var(--green); margin-top: .5rem; display: inline-block; }
@media (max-width: 860px) {
  .adv-layout { grid-template-columns: 1fr; }
  .adv-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  .adv-panel .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .adv-panel .feature-grid { grid-template-columns: 1fr; } }

/* ---------- GPU: тёмная телеметрия с огромными цифрами ---------- */
#gpu { padding: clamp(2rem, 4vw, 3.2rem) 0; }
#gpu .container {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border-radius: 22px; border: 1px solid rgba(46, 168, 107, .35);
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(46, 168, 107, .16), transparent 60%),
    linear-gradient(160deg, #131b25, #0d1218);
}
#gpu .container::after {
  content: "4,7×"; position: absolute; right: 1.2rem; bottom: -.9rem; z-index: 0;
  font: 800 clamp(7rem, 18vw, 11rem)/1 "Onest", sans-serif; letter-spacing: -.05em;
  color: rgba(46, 168, 107, .12);
  pointer-events: none;
}
#gpu .section-head { max-width: 44rem; position: relative; z-index: 1; }
#gpu .section-head p b { font-size: 2rem; letter-spacing: -.02em; color: #7ee2b0; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { #gpu .section-head p b { font-size: 1.5rem; } }

/* ---------- Модули: компактный каталог ---------- */
#modules .feature-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
#modules .feature-grid .feature-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem 1.1rem 1.35rem;
  border-left: 3px solid transparent;
}
#modules .feature-grid .feature-card:hover { border-left-color: var(--green); transform: translateX(4px); }
#modules .feature-grid .card-art { display: none; }
#modules .feature-grid .mod-img { grid-row: span 3; width: 42px; height: 42px; margin: 0; }
#modules .feature-grid h3 { font-size: 1rem; margin: 0 0 .3rem; }
#modules .feature-grid p { font-size: .9rem; max-width: none; }
#modules .feature-grid .card-more { font-size: .82rem; }
@media (max-width: 720px) { #modules .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Тарифы: Pro приподнята ---------- */
.pricing-card.pricing-pro {
  border-color: rgba(46, 168, 107, .65);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .5);
}
.pricing-price b { font-size: 2rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pricing-card { min-height: 0; }
.pricing-card.pricing-pro .pricing-popular { background: var(--green); color: #06120c; }
@media (prefers-reduced-motion: no-preference) {
  .pricing-card.pricing-pro { transform: translateY(-6px); }
}

/* ---------- Подарок: пунктирный купон ---------- */
.gift-cta .container {
  border: 1.5px dashed rgba(46, 168, 107, .45); border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: rgba(13, 17, 23, .55);
}