/* fa-about-mma.css - ефекти сторінки about-mma.html (15.10.2026). Скрипт - js/fa-about-mma.js.
   Відкат = прибрати 2 рядки підключення в about-mma.html (HTML блоків «обома» і «що розвиває» - з бекапу). */

@property --am-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes amSpin { to { --am-a: 360deg; } }

/* фон банера не розтягується на всю довжину сторінки (був червоний відсвіт біля «Історії MMA») */
section.blog-details-page-title {
  background-size: max(100%, 1200px) auto !important;
  background-position: center top !important;
}

/* ---------- 1. Для кого MMA: кнопки 2×2 на телефоні ---------- */
@media (max-width: 560px) {
  .who-tabs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .who-tab-btn { width: 100%; padding: 12px 6px; text-align: center; }
}
@keyframes amCardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.who-tab-content.am-sw .who-card { animation: amCardIn .55s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- 2. Таблиця порівняння ---------- */
.am-cmp tbody tr { opacity: 0; transform: translateX(-18px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 80ms); }
.am-cmp.am-in tbody tr { opacity: 1; transform: none; }
.compare-table th.col-mma { position: relative; overflow: hidden; }
.compare-table th.col-mma::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  animation: amThShine 3.2s ease-in-out infinite;
}
@keyframes amThShine { 0%, 55% { left: -60%; } 100% { left: 120%; } }
/* ✓/✗ без підстрибувань - лише перемальовуються лінією (хвиля з js) */
.compare-table .fa-mk.am-rz path { transition: none !important; stroke-dashoffset: 30 !important; }
.compare-table .fa-mk.am-rd path { transition: stroke-dashoffset .5s cubic-bezier(.6,0,.3,1) !important; stroke-dashoffset: 0 !important; }
.compare-table td.col-mma { transition: background-color .4s ease; }
/* рядок, який зараз «читається» - легка підсвітка, що біжить згори вниз */
.compare-table tbody td { transition: background-color .45s ease, box-shadow .45s ease; }
.compare-table tbody tr.am-row-on td { background-color: rgba(250,80,10,.07); }
.compare-table tbody tr.am-row-on td:first-child { box-shadow: inset 3px 0 0 #FA500A; }
/* «~» частково - жовта */
.compare-table .check-mid { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,193,7,.16); color: #ffc107; font-weight: 900; }
.compare-table .check-mid .fa-mk { width: 18px; height: 18px; }
.fa-mk.mid path { stroke: #ffc107; }
@media (max-width: 600px) { .compare-table .check-mid { width: 22px; height: 22px; } .compare-table .check-mid .fa-mk { width: 15px; height: 15px; } }

/* ---------- 3. Міф чи правда - 2 ряди, сканер зліва «з'їдає» картки в код (як у базі знань) ---------- */
.myths-grid.am-hide { display: none !important; }
.am-myth { position: relative; margin-top: 26px; overflow: hidden; }
.am-ms { position: relative; display: flex; flex-direction: column; gap: 14px; }
.am-mr { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 21%, rgba(0,0,0,.25) 23.5%, rgba(0,0,0,.6) 25.5%, #000 29%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 21%, rgba(0,0,0,.25) 23.5%, rgba(0,0,0,.6) 25.5%, #000 29%, #000 95%, transparent 100%); }
.am-mt-tr { display: flex; gap: 14px; width: max-content; padding: 3px 0; will-change: transform; }
/* рух і перетягування - у js (pan-y: вертикальна прокрутка сторінки пальцем лишається, горизонтальний жест тягне стрічку) */
.am-mr { touch-action: pan-y; cursor: grab; }
.am-myth.am-hold .am-mr { cursor: grabbing; }
.am-ms { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.am-mc.am-run::after { border-radius: 16px; padding: 1.5px; }
.am-mc { width: 300px; flex: none; display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 16px; border-radius: 16px; user-select: none; -webkit-user-select: none;
  background: linear-gradient(rgba(16,13,24,.97), rgba(16,13,24,.97)) padding-box, linear-gradient(135deg, rgba(250,80,10,.55), rgba(98,7,188,.55)) border-box;
  border: 1.5px solid transparent; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.am-lb { font-size: 10.5px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.am-lb.f { color: #ff5b5b; } .am-lb.t { color: #00e676; margin-top: 4px; }
.am-lb i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; line-height: 0; }
.am-lb i svg { width: 12px; height: 12px; display: block; overflow: visible; }
.am-lb i path { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .45s cubic-bezier(.6,0,.3,1); }
.am-lb.f i path { stroke: #ff5b5b; } .am-lb.t i path { stroke: #00e676; }
.am-lb.f i path + path { transition-delay: .2s; }
.am-mc.tw .am-lb.f i path, .am-mc.x .am-lb.t i path { stroke-dashoffset: 0; }
.am-mc.x .am-lb.t i path { transition-delay: .55s; }
.am-mc.x .am-lb.t i { animation: amPop .5s cubic-bezier(.3,1.6,.5,1) .5s both; }
@keyframes amPop { from { transform: scale(.4); } to { transform: none; } }
.am-lb.f i { background: rgba(255,59,59,.15); } .am-lb.t i { background: rgba(0,230,118,.15); }
/* міф друкується по літері (місце під текст зарезервоване .am-gh - картка не стрибає), потім закреслюється */
.am-mf { position: relative; margin: 0; text-align: left; font-family: var(--title-font, 'Sora', sans-serif); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.1px; }
.am-mf .am-gh { visibility: hidden; }
.am-mf .am-ln { position: absolute; inset: 0; }
.am-mf .am-st { background: linear-gradient(90deg, #ff3b3b, #ff8a3d) no-repeat 0 56% / 0 3px; transition: background-size .9s cubic-bezier(.6,0,.3,1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.am-mf .am-ty { background: linear-gradient(90deg, #fff, #ffd2c2); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .6s ease .5s; }
.am-mc.tw:not(.td) .am-mf .am-ln::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #FA500A; box-shadow: 0 0 8px #FA500A; animation: amCaret .7s steps(1) infinite; }
@keyframes amCaret { 50% { opacity: 0; } }
.am-mc.x .am-mf .am-st { background-size: 100% 3px; }
.am-mc.x .am-mf .am-ty { opacity: .78; }
.am-mt { margin: 0; color: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.55; padding-left: 10px; border-left: 3px solid rgba(0,230,118,.35); transition: color .6s ease 1s, border-color .6s ease 1s; }
.am-mc.x .am-mt { color: #fff; border-left-color: #00e676; }
.am-sc { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.am-sc-code { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; margin: 0; padding: 4px 0 4px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; line-height: 13px; white-space: pre; overflow: hidden;
  background: linear-gradient(90deg, rgba(98,7,188,.35), rgba(180,76,255,.65) 50%, rgba(250,80,10,.95)); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000); mask-image: linear-gradient(90deg, transparent, #000 35%, #000); }
.am-sc-band { position: absolute; left: calc(25% - 26px); top: 0; bottom: 0; width: 26px; opacity: .8;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); animation: amBand .6s linear infinite; }
@keyframes amBand { to { background-position: 0 10px; } }
.am-sc-beam { position: absolute; left: 25%; top: -10px; bottom: -10px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, transparent, rgba(250,80,10,.85) 15%, #fff 50%, rgba(140,60,255,.95) 85%, transparent);
  box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 22px rgba(250,80,10,.75), 0 0 46px rgba(98,7,188,.7); animation: amBeam 1.4s ease-in-out infinite alternate; }
@keyframes amBeam { to { opacity: .8; transform: scaleX(1.3); } }
@media (max-width: 1024px) {
  .am-mr { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0,0,0,.5) 17%, #000 20%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0,0,0,.5) 17%, #000 20%, #000 95%, transparent); }
  .am-sc-code { width: 17%; padding-left: 6px; font-size: 9px; line-height: 11px; } .am-sc-band { left: calc(17% - 20px); width: 20px; } .am-sc-beam { left: 17%; }
}
@media (max-width: 991px) { .am-myth { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } }
@media (max-width: 600px) {
  .am-ms { gap: 10px; }
  .am-mc { width: 252px; padding: 13px 14px; gap: 6px; }
  .am-mf { font-size: 14px; } .am-mt { font-size: 12.5px; line-height: 1.5; }
}

/* ---------- біжучий вогник по рамці (спорядження, «обома», цитата) ---------- */
.am-run { position: relative; }
.am-run::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--am-a), transparent 0 62%, rgba(250,80,10,.0) 64%, var(--r1, #FA500A) 78%, #fff 84%, var(--r2, #B44CFF) 90%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: amSpin 4.5s linear infinite; animation-delay: var(--ad, 0s);
}

/* ---------- 4. Спорядження ---------- */
.gear-card.am-run::after { border-radius: 20px; }
.gear-icon-wrap { position: relative; animation: amFloat 5s ease-in-out infinite; animation-delay: var(--ad, 0s); }
@keyframes amFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.gear-icon-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent); animation: amImgShine 5s ease-in-out infinite; animation-delay: var(--ad, 0s); }
@keyframes amImgShine { 0%, 70% { left: -80%; } 100% { left: 130%; } }
.gear-card.fx-rv-in .gear-icon-wrap, .gear-card.am-in .gear-icon-wrap { box-shadow: 0 10px 30px rgba(250,80,10,.25), 0 0 0 2px rgba(250,80,10,.25); }
.gear-card.fx-up { transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1) !important; }
html.fa-vis .gear-card.fx-up:not(.fx-rv-in) { transform: translateY(46px) scale(.94) rotateX(12deg); }
.gear-grid { perspective: 900px; }

/* фон секції: розмиті рукавиці/шолом/капа пливуть у кольорових плямах, картки напівпрозорі */
.am-gsec { position: relative; isolation: isolate; }
.am-gbg { position: absolute; top: -30px; bottom: -30px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.am-gbg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.am-gbg-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: amGlow 14s ease-in-out infinite alternate; }
.am-gbg-glow.g1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: 2%; top: 8%; background: radial-gradient(circle, rgba(250,80,10,.55), transparent 65%); }
.am-gbg-glow.g2 { width: 50vw; height: 50vw; max-width: 680px; max-height: 680px; right: 0; top: 30%; background: radial-gradient(circle, rgba(98,7,188,.7), transparent 65%); animation-delay: -5s; }
.am-gbg-glow.g3 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: 34%; bottom: 0; background: radial-gradient(circle, rgba(255,40,80,.35), transparent 65%); animation-delay: -9s; }
@keyframes amGlow { to { transform: translate(4%, -6%) scale(1.12); } }
.am-gbg-it { position: absolute; width: 230px; height: 230px; opacity: .2; animation: amGDrift 18s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent); mask-image: radial-gradient(closest-side, #000 45%, transparent); }
.am-gbg-it img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.25) contrast(1.1); }
.am-gbg-it.n0 { left: -2%; top: 4%; --r: -14deg; }
.am-gbg-it.n1 { right: -1%; top: 2%; --r: 12deg; width: 260px; height: 260px; animation-delay: -4s; }
.am-gbg-it.n2 { left: 3%; top: 44%; --r: 8deg; width: 200px; height: 200px; animation-delay: -9s; }
.am-gbg-it.n3 { right: 4%; top: 48%; --r: -10deg; animation-delay: -2s; }
.am-gbg-it.n4 { left: 24%; bottom: 0; --r: 16deg; width: 190px; height: 190px; animation-delay: -12s; }
.am-gbg-it.n5 { right: 22%; bottom: 2%; --r: -6deg; width: 210px; height: 210px; animation-delay: -7s; }
.am-gbg-it.n6 { left: 30%; top: -2%; --r: -20deg; width: 170px; height: 170px; opacity: .14; animation-delay: -15s; }
.am-gbg-it.n7 { right: 32%; top: 26%; --r: 22deg; width: 160px; height: 160px; opacity: .12; animation-delay: -10s; }
@keyframes amGDrift { from { transform: translate(0, 0) rotate(var(--r, 0deg)); } to { transform: translate(18px, -26px) rotate(calc(var(--r, 0deg) * -0.6)); } }
#equipment .gear-card { background: radial-gradient(120% 75% at 50% 0%, rgba(250,80,10,.16), transparent 62%) padding-box, linear-gradient(rgba(14,9,22,.74), rgba(14,9,22,.74)) padding-box, linear-gradient(to right, #FA500A, #6207BC) border-box !important;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
#equipment .gear-card.gear-open { background: radial-gradient(120% 60% at 50% 0%, rgba(250,80,10,.22), transparent 62%) padding-box, linear-gradient(rgba(18,11,28,.86), rgba(18,11,28,.86)) padding-box, linear-gradient(to right, #FA500A, #6207BC) border-box !important; }
#equipment .gear-note { position: relative; background: linear-gradient(90deg, rgba(250,80,10,.12), rgba(98,7,188,.14)); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
@media (max-width: 600px) {
  .am-gbg-it { width: 160px; height: 160px; opacity: .24; }
  .am-gbg-it.n1 { width: 170px; height: 170px; } .am-gbg-it.n6, .am-gbg-it.n7 { display: none; }
  .am-gbg-it.n2 { top: 36%; } .am-gbg-it.n3 { top: 62%; }
}

/* ---------- 5. Змагання - пігулки по центру ---------- */
.comp-tags { justify-content: center; }

/* ---------- 6. Історія MMA ---------- */
.am-tl-fill { position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px; height: var(--p, 0%); z-index: 1; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #FA500A, #B44CFF); box-shadow: 0 0 12px rgba(250,80,10,.7), 0 0 26px rgba(98,7,188,.5); }
.am-tl-fill::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(250,80,10,.35), 0 0 22px #FA500A, 0 0 40px #6207BC; }
@media (max-width: 768px) { .am-tl-fill { left: 19px; } }
.mh__row.am-lit .mh__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(250,80,10,.7); animation: amPing 2s ease-out infinite; }
@keyframes amPing { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.mh__row.am-lit .mh__dot { transform: scale(1.15); }
.mh__card .am-shn { position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.12), transparent); }
.mh__row.am-lit .mh__card .am-shn { animation: amCardShine 1.4s ease-in-out .35s 1 both; }
@keyframes amCardShine { from { left: -70%; } to { left: 130%; } }
.mh__row.am-lit .mh__card::before { opacity: .85; }
.mh__row.am-lit .mh__card { box-shadow: 0 14px 36px rgba(250,80,10,.12), 0 0 0 1px rgba(250,80,10,.15); }
.mh__card .mh__year { transition: box-shadow .5s ease; }
.mh__row.am-lit .mh__card .mh__year { box-shadow: 0 0 18px rgba(250,80,10,.55); }

/* ---------- 7. «MMA - це не жорстокість» - поява зі сканером ---------- */
.am-quote { overflow: hidden; }
.am-quote .am-q-body { position: relative; flex: 1; }
.am-quote .am-q-body > p { clip-path: inset(0 calc(100% - var(--q, 0%)) 0 0); }
.am-quote .am-q-code { position: absolute; inset: 0; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 27px; white-space: pre; overflow: hidden;
  clip-path: inset(0 0 0 var(--q, 0%)); background: linear-gradient(90deg, rgba(250,80,10,.9), rgba(180,76,255,.7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-quote .am-q-beam { position: absolute; top: -10px; bottom: -10px; left: var(--q, 0%); width: 3px; margin-left: -1.5px; border-radius: 3px; opacity: var(--qe, 0);
  background: linear-gradient(180deg, transparent, #FA500A 15%, #fff 50%, #B44CFF 85%, transparent); box-shadow: 0 0 10px #fff, 0 0 24px rgba(250,80,10,.8), 0 0 44px rgba(98,7,188,.6); }
.am-quote.am-done .am-q-code { display: none; }

/* ---------- 8. «Можна займатись обома» ---------- */
.am-both { margin-top: 26px; padding: 26px 22px 24px; border-radius: 18px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 0% 0%, rgba(250,80,10,.14), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(98,7,188,.18), transparent 55%), rgba(12,10,20,.9);
  border: 1px solid rgba(255,255,255,.08); }
.am-both-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.am-both-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 900; font-size: 16px; color: #fff; letter-spacing: .5px; }
.am-both-chip.m { background: linear-gradient(135deg, #FA500A, #c2410c); box-shadow: 0 8px 22px rgba(250,80,10,.35); }
.am-both-chip.b { background: linear-gradient(135deg, #8b2cf5, #6207BC); box-shadow: 0 8px 22px rgba(98,7,188,.4); }
.am-both-chip span { font-size: 20px; }
.am-both-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff;
  background: conic-gradient(from var(--am-a), #FA500A, #B44CFF, #FA500A); animation: amSpin 3s linear infinite; box-shadow: 0 0 20px rgba(250,80,10,.5); }
.am-both-t { color: #fff; font-size: 20px; font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.am-both-t em { font-style: normal; background: linear-gradient(90deg, #FA500A, #B44CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-both p { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; margin: 0 auto; max-width: 620px; }
.am-js .am-both .am-both-chip.m { transform: translateX(-60px); opacity: 0; }
.am-js .am-both .am-both-chip.b { transform: translateX(60px); opacity: 0; }
.am-js .am-both .am-both-plus { transform: scale(0); }
.am-both .am-both-chip, .am-both .am-both-plus { transition: transform .8s cubic-bezier(.3,1.4,.5,1), opacity .6s ease; }
.am-js .am-both.am-in .am-both-chip { transform: none; opacity: 1; }
.am-js .am-both.am-in .am-both-plus { transform: scale(1); transition-delay: .45s; }
.am-both.am-in .am-both-chip.m { animation: amNudgeL 3.5s ease-in-out 1.2s infinite; }
.am-both.am-in .am-both-chip.b { animation: amNudgeR 3.5s ease-in-out 1.2s infinite; }
@keyframes amNudgeL { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 8px 0; } }
@keyframes amNudgeR { 0%, 70%, 100% { translate: 0 0; } 80% { translate: -8px 0; } }
@media (max-width: 480px) { .am-both-chip { padding: 9px 13px; font-size: 14px; } .am-both-t { font-size: 18px; } }

/* ---------- 9. Що розвиває MMA - широкі картки з пунктами ---------- */
.am-dev { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; text-align: left; }
@media (max-width: 760px) { .am-dev { grid-template-columns: 1fr; gap: 14px; } }
.am-dev-it { --c1: #FA500A; --c2: #B44CFF; padding: 22px 22px 18px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 60%), rgba(14,12,22,.95);
  border: 1px solid rgba(255,255,255,.08); }
.am-dev-it.mind { --c1: #B44CFF; --c2: #4c8dff; } .am-dev-it.char { --c1: #ff7a1a; --c2: #ffc107; } .am-dev-it.hp { --c1: #ff3b5c; --c2: #FA500A; }
.am-dev-it::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.am-dev-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.am-dev-ico { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 30%, transparent), color-mix(in srgb, var(--c2) 25%, transparent)); box-shadow: 0 8px 22px color-mix(in srgb, var(--c1) 30%, transparent); }
.am-dev-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.am-dev-l { color: #fff; font-weight: 900; font-size: 19px; line-height: 1.25; }
.am-dev-s { line-height: 1.35; margin-top: 3px; font-size: 14px; font-weight: 700; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-dev-ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.am-dev-ul li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.5; }
.am-dev-ck { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--c1) 18%, transparent); box-sizing: border-box; overflow: visible; }
.am-dev-ck path { fill: none; stroke: var(--c1); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 0; }
.am-js .am-dev-it:not(.am-in) .am-dev-ck path { stroke-dashoffset: 26; }
.am-dev-it.am-in .am-dev-ck path { transition: stroke-dashoffset .45s cubic-bezier(.6,0,.3,1); transition-delay: calc(.35s + var(--j, 0) * .22s); }
.am-dev-kid { line-height: 1.5; font-size: 13px; color: rgba(255,255,255,.6); padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.12); }
.am-dev-kid::before { content: '👶 '; }
.am-js .am-dev-it { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 90ms); }
.am-js .am-dev-it.am-in { opacity: 1; transform: none; }
.am-dev-it.am-run { --r1: var(--c1); --r2: var(--c2); }
.am-dev-it.am-run::after { border-radius: 18px; }
.am-dev-ico { width: 72px; height: 72px; border-radius: 20px; font-size: 36px; isolation: isolate; }
.am-dev-ico::before { content: ''; position: absolute; inset: -3px; border-radius: 22px; z-index: -1; opacity: .7;
  background: conic-gradient(from var(--am-a), transparent 0 55%, var(--c1) 75%, var(--c2) 90%, transparent);
  animation: amSpin 3.4s linear infinite; filter: blur(4px); }
.am-dev-ico .am-em { display: inline-block; line-height: 1; }
.am-dev-it.am-in.str .am-em { animation: amFlex 2.4s ease-in-out infinite; }
.am-dev-it.am-in.mind .am-em { animation: amThink 3s ease-in-out infinite; }
.am-dev-it.am-in.char .am-em { animation: amFlame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.am-dev-it.am-in.hp .am-em { animation: amBeat 1.3s ease-in-out infinite; }
@keyframes amFlex { 0%, 100% { transform: rotate(0) scale(1); } 40% { transform: rotate(-10deg) scale(1.12); } 60% { transform: rotate(-6deg) scale(1.08); } }
@keyframes amThink { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 10px #B44CFF); } }
@keyframes amFlame { 0%, 100% { transform: scale(1) rotate(-2deg); } 33% { transform: scale(1.08, 1.14) rotate(2deg); } 66% { transform: scale(.97, 1.05) rotate(-1deg); } }
@keyframes amBeat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 20% { transform: scale(1.02); } 30% { transform: scale(1.14); } }
/* телефон: блок на всю ширину екрана (менші бокові відступи) */
@media (max-width: 760px) { .mma-extra-section-dark:has(.am-dev) { padding-left: 0 !important; padding-right: 0 !important; } .am-dev { margin-left: -6px; margin-right: -6px; } }
@media (max-width: 480px) { .am-dev-it { padding: 18px 16px 16px; } .am-dev-l { font-size: 17px; } .am-dev-ico { width: 62px; height: 62px; font-size: 30px; border-radius: 17px; } .am-dev-ul li { font-size: 14px; } }

/* ---------- 10. Часті запитання - номери 01..06 з хвилькою по колу ---------- */
.faq-item .faq-num { position: relative; width: 42px !important; height: 42px !important; border-radius: 50% !important; background: rgba(14,12,22,.95) !important; color: transparent !important;
  font-size: 14px !important; font-weight: 900 !important; letter-spacing: .5px; isolation: isolate; }
.faq-item .faq-num::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; z-index: -1; padding: 2px;
  background: conic-gradient(from var(--am-a), rgba(250,80,10,.15), #FA500A 25%, #fff 32%, #B44CFF 45%, rgba(98,7,188,.15) 60%, rgba(250,80,10,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: amSpin 3.2s linear infinite; }
.faq-item:nth-child(2n) .faq-num::before { animation-delay: -1.1s; } .faq-item:nth-child(3n) .faq-num::before { animation-delay: -2.2s; }
.faq-item .faq-num::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #FA500A, #B44CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq-item.faq-open .faq-num::before { animation-duration: 1.4s; }

/* ---------- 11. «Читати про MMA/BJJ» - кнопка по центру, на телефоні на всю ширину ---------- */
.choice-body .choice-link-btn { align-self: center; justify-content: center; min-width: 70%; padding: 13px 24px; font-size: 15px; border-radius: 12px; margin-top: auto; }
.choice-body { flex: 1; }
@media (max-width: 680px) { .choice-body .choice-link-btn { width: 100%; min-width: 0; } }

/* картинки MMA / BJJ «дихають» - повільний зум назад і знову */
.am-kb { display: block; overflow: hidden; }
.am-kb .choice-card-img { animation: amKb 9s ease-in-out infinite alternate; transform-origin: 50% 35%; }
.choice-card + .choice-card .am-kb .choice-card-img { animation-delay: -4.5s; }
@keyframes amKb { from { scale: 1.13; } to { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  .am-run::after, .gear-icon-wrap, .gear-icon-wrap::after, .compare-table th.col-mma::after, .am-sc-beam, .am-sc-band, .am-mt-tr, .am-gbg-glow, .am-gbg-it, .faq-num::before, .am-both-plus, .mh__row.am-lit .mh__dot::after, .am-kb .choice-card-img, .am-dev-ico::before, .am-em { animation: none !important; }
  .am-cmp tbody tr, .am-dev-it { opacity: 1 !important; transform: none !important; }
}

/* ---------- 15.10.2026 (3) «Для кого» - фото на всю картку, текст поверх ---------- */
.who-card { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 26px 22px 22px; }
.who-card .am-ph { opacity: .92; background-position: center 25%; animation: amWhoKb 14s ease-in-out infinite alternate; }
.who-card .am-ph::after { background: linear-gradient(180deg, rgba(8,6,14,0) 0%, rgba(8,6,14,.15) 30%, rgba(8,6,14,.78) 62%, rgba(8,6,14,.97) 100%); }
.who-card .am-ph::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.2) 48%, rgba(255,255,255,.04) 54%, transparent 62%);
  background-size: 250% 100%; background-position: 140% 0; animation: amWhoShine 6.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s); }
.who-card:hover .am-ph { opacity: 1; }
.who-card h4 { font-size: 21px; font-weight: 900; line-height: 1.2; letter-spacing: .2px; margin: 0 0 10px; padding-top: 14px; position: relative;
  background: linear-gradient(90deg, #fff 0%, #fff 55%, #ffd2b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.9)); }
.who-card h4::before { content: ''; position: absolute; left: 0; top: 0; width: 42px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #FA500A, #B44CFF);
  box-shadow: 0 0 12px rgba(250,80,10,.7); transition: width .5s cubic-bezier(.22,1,.36,1); }
.who-card:hover h4::before { width: 84px; }
.who-card p { font-size: 14.5px; color: rgba(255,255,255,.86) !important; }
@keyframes amWhoKb { from { transform: scale(1.03); } to { transform: scale(1.13) translateY(-2%); } }
@keyframes amWhoShine { 0%, 55% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
@media (max-width: 560px) { .who-card { min-height: 280px; padding: 22px 18px 18px; } .who-card h4 { font-size: 20px; } }

/* «Здоров'я» - голова в кадрі */
.am-dev-it.hp .am-dev-ico img { object-position: 50% 6%; }
.am-dev-it.hp .am-ph { background-position: center 8%; }

/* ---------- «Можна займатись обома» - одна картинка MMA + BJJ, що зіштовхуються ---------- */
.am-duo { position: relative; height: 230px; margin: -26px -22px 20px; overflow: hidden; background: #08060e; isolation: isolate; }
.am-duo-h { position: absolute; top: 0; bottom: 0; width: 58%; background-size: cover; background-repeat: no-repeat; transition: transform 1s cubic-bezier(.2,1.3,.4,1), opacity .6s ease; }
.am-duo-h.l { left: 0; background-position: 30% 18%; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.am-duo-h.r { right: 0; background-position: 55% 14%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.am-duo::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(8,6,14,0) 50%, rgba(12,10,20,.95) 100%); }
.am-duo-seam { position: absolute; z-index: 3; top: -10%; bottom: -10%; left: 50%; width: 4px; transform: translateX(-50%) skewX(-10deg);
  background: linear-gradient(180deg, transparent, #fff 30%, #fff 70%, transparent); box-shadow: 0 0 18px 4px rgba(255,255,255,.55), 0 0 40px 10px rgba(255,255,255,.18); opacity: .85; }
.am-duo-hit { position: absolute; z-index: 3; left: 50%; top: 42%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 22%, transparent 60%); }
.am-duo-lb, .am-duo-x { position: absolute; z-index: 4; bottom: 14px; color: #fff; font-weight: 900; letter-spacing: 1.5px; }
.am-duo-lb { font-size: 15px; padding: 8px 16px; border-radius: 12px; background: rgba(10,8,18,.55); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.am-duo-lb.l { left: 16px; } .am-duo-lb.r { right: 16px; }
.am-duo-x { left: 50%; bottom: 12px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 22px rgba(255,255,255,.3); }
.am-js .am-both .am-duo-h.l { transform: translateX(-70%); opacity: 0; }
.am-js .am-both .am-duo-h.r { transform: translateX(70%); opacity: 0; }
.am-js .am-both .am-duo-seam, .am-js .am-both .am-duo-x { opacity: 0; }
.am-js .am-both.am-in .am-duo-h { transform: none; opacity: 1; }
.am-both.am-in .am-duo-h.l { animation: amDuoL 5s ease-in-out 1.4s infinite; }
.am-both.am-in .am-duo-h.r { animation: amDuoR 5s ease-in-out 1.4s infinite; }
.am-both.am-in .am-duo-hit { animation: amDuoHit 5s ease-out .75s infinite; }
.am-both.am-in .am-duo-seam { animation: amDuoSeam 5s ease-out .75s infinite; }
.am-both.am-in .am-duo-x { opacity: 1; transition: opacity .5s ease .9s; }
.am-both.am-in .am-duo { animation: amDuoShake 5s linear .75s infinite; }
@keyframes amDuoL { 0%, 70%, 100% { translate: 0 0; } 82% { translate: -7% 0; } 90% { translate: 1.5% 0; } }
@keyframes amDuoR { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 7% 0; } 90% { translate: -1.5% 0; } }
@keyframes amDuoHit { 0% { opacity: .95; transform: scale(.3); } 12% { opacity: 0; transform: scale(1.6); } 77% { opacity: 0; transform: scale(.3); } 79% { opacity: .9; transform: scale(.3); } 90% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes amDuoSeam { 0%, 79% { opacity: 1; } 12%, 70% { opacity: .75; } 82% { opacity: .2; } 90% { opacity: 1; } 100% { opacity: .75; } }
@keyframes amDuoShake { 0%, 79%, 100% { transform: none; } 81% { transform: translate(-3px, 1px); } 83% { transform: translate(3px, -1px); } 85% { transform: translate(-2px, 0); } 87% { transform: none; } }
.am-both { background: rgba(12,10,20,.92); }
.am-both-t em { background: linear-gradient(90deg, #fff, #ffd2b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .am-duo { height: 190px; margin: -26px -22px 18px; } .am-duo-lb { font-size: 13px; padding: 7px 12px; } }
@media (prefers-reduced-motion: reduce) { .who-card .am-ph, .who-card .am-ph::before, .am-duo, .am-duo-h, .am-duo-hit, .am-duo-seam { animation: none !important; } }
@media (min-width: 761px) { .am-duo { height: 340px; } .am-duo-h.l { background-position: 30% 12%; } .am-duo-h.r { background-position: 55% 10%; } }
.who-card .am-ph { background-position: center 18%; }

/* 16.10.2026 «Фізична форма» - голова біля верхнього краю фото: кріпимо фон і зум до верху, щоб на мобільному не зрізало */
.who-card .am-ph[style*="who-te-5-l"], .who-card .am-ph[style*="who-ad-1-l"] { background-position: center top; transform-origin: 50% 0; animation-name: amWhoKbTop; }
@keyframes amWhoKbTop { from { transform: scale(1); } to { transform: scale(1.08); } }

/* 16.10.2026 (2) «Для кого»: верх фото не зрізаємо - фон і зум кріпимо до верхнього краю для всіх карток */
.who-card .am-ph { background-position: center 0; transform-origin: 50% 0; animation-name: amWhoKbTop; }
.who-card .am-ph[style*="who-pa-3-l"] { background-position: center 30%; }
