/* ============================================================
   Training pages (/training). Dark public theme, tokens from style.css.
   Form styles follow the sign-in pages (auth.css): floating labels, focus glow, shimmer button.
   ============================================================ */
@property --trn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.trn { --trn-info: #7fa6ff; --trn-warn: #ffb547; --trn-err: #ff8088; --trn-panel: rgba(17, 39, 90, .55); background: var(--navy-950); }
.trn em { font-style: normal; }

/* ---------- reveal on scroll (only when training.js runs) ---------- */
.trn-js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.trn-js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ---------- hero ---------- */
.trn-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.trn-hero__glow { position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 61, .16), transparent 62%); filter: blur(10px); animation: trn-float 18s ease-in-out infinite alternate; }
@keyframes trn-float { to { transform: translate3d(-6vw, -4vh, 0) scale(1.08); } }
.trn-hero .eyebrow { flex-wrap: wrap; }
.trn-hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 48px; max-width: 1100px; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--line-dark); }
.trn-hero__facts li { background: rgba(6, 16, 41, .72); padding: 18px 20px; display: grid; gap: 4px; }
.trn-hero__facts b { font-weight: 500; font-size: 17px; }
.trn-hero__facts span { color: var(--mist); font-size: 14px; }
.trn-hero--course .page-hero__title { font-size: clamp(38px, 5.2vw, 80px); max-width: 18ch; }
.trn-hero--slim { padding-bottom: 28px; }
.trn-title--sm { font-size: clamp(34px, 4.4vw, 64px) !important; max-width: 22ch; }
.trn-sample { display: inline-block; margin-top: 20px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); color: var(--accent-2); font-size: 14px; }

/* ---------- sections ---------- */
.trn-section { padding: clamp(56px, 8vw, 110px) var(--gutter) 0; max-width: 1320px; }
.trn-section:last-of-type { padding-bottom: clamp(80px, 10vw, 140px); }
.trn-section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.trn-h2 { font-size: clamp(32px, 4.2vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; margin-top: 16px; }
.trn-h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.trn-help { color: var(--mist); font-size: 15px; }
.trn-help a, .trn-link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 106, 61, .7); }
.trn-link { white-space: nowrap; font-size: 15px; }
.trn-link:hover { text-decoration-color: var(--accent); }
.trn-panel { background: var(--trn-panel); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); }
.trn-empty { display: grid; gap: 10px; justify-items: start; }
.trn-empty h3 { font-weight: 500; font-size: 22px; }
.trn-empty p { color: var(--mist); }

/* why */
.trn-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trn-why li { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: linear-gradient(170deg, rgba(27, 54, 114, .45), rgba(10, 26, 63, .25)); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.trn-why li::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 106, 61, .18), transparent 65%); opacity: 0; transition: opacity .5s; }
.trn-why li:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-4px); }
.trn-why li:hover::after { opacity: 1; }
.trn-why__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 106, 61, .14); color: var(--accent); margin-bottom: 18px; }
.trn-why__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trn-why h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.trn-why p { color: var(--mist); font-size: 15px; margin-top: 10px; line-height: 1.55; }

/* courses */
.trn-courses { display: grid; gap: 20px; }
.trn-course { border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-dark); background: radial-gradient(700px 260px at 100% 0%, rgba(255, 106, 61, .08), transparent 70%), var(--navy-900); padding: clamp(22px, 3vw, 36px); }
.trn-course__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.trn-course h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.trn-course h3 a:hover { color: var(--accent); }
.trn-course__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--mist); font-size: 14px; align-items: center; }
.trn-course__meta span:not(.trn-badge) + span:not(.trn-badge)::before { content: "·"; margin-right: 16px; color: rgba(255, 255, 255, .3); }
.trn-course__sum { color: rgba(255, 255, 255, .8); margin-top: 16px; max-width: 72ch; }

.trn-sessions { display: grid; gap: 10px; margin-top: 24px; }
.trn-session { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: 14px 24px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); transition: border-color .25s, background-color .25s; }
.trn-session:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.trn-session b { font-weight: 500; }
.trn-session small { display: block; color: var(--mist); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.trn-session__price b { font: 500 18px var(--mono); letter-spacing: -0.02em; }
.trn-session__price s { color: rgba(255, 255, 255, .45); }
.trn-session__act { display: grid; justify-items: end; gap: 8px; }
.trn-sessions--stack .trn-session, .trn-session--big { grid-template-columns: 1fr auto; }
.trn-sessions--stack .trn-session__where, .trn-session--big .trn-session__where { grid-column: 1 / -1; order: 2; }
.trn-sessions--stack .trn-session__price, .trn-session--big .trn-session__price { text-align: right; }
.trn-sessions--stack .trn-session__act, .trn-session--big .trn-session__act { grid-column: 1 / -1; order: 3; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
.trn-sessions--stack .trn-session__act .btn { justify-self: end; }

.trn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 500 12px var(--font); letter-spacing: .02em; background: rgba(127, 166, 255, .14); color: #b7ccff; }
.trn-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.trn-chip--online { background: rgba(61, 220, 151, .12); color: #8ef0c4; }
.trn-chip--hybrid { background: rgba(255, 181, 71, .12); color: #ffd28c; }
.trn-seat { font-size: 13px; color: var(--mist); white-space: nowrap; }
.trn-seat--open { color: #8ef0c4; }
.trn-seat--almost { color: var(--accent-2); font-weight: 500; }
.trn-seat--full { color: #ffb3b8; }
.trn-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 99px; font: 500 12.5px var(--font); background: rgba(255, 255, 255, .08); color: var(--mist); white-space: nowrap; }
.trn-badge--warn { background: rgba(255, 181, 71, .13); color: var(--accent-2); }
.trn-badge--ok { background: rgba(61, 220, 151, .13); color: var(--ok); }
.trn-badge--info { background: rgba(127, 166, 255, .15); color: var(--trn-info); }
.trn-badge--lg { font-size: 17px; padding: 8px 16px; margin-top: 8px; }

/* who + flow */
.trn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trn-ticks { display: grid; gap: 12px; margin-top: 28px; }
.trn-ticks li { position: relative; padding-left: 34px; color: rgba(255, 255, 255, .86); line-height: 1.5; }
.trn-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 106, 61, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a3d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.trn-ticks--dot li::before { background: rgba(127, 166, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%237fa6ff'/%3E%3C/svg%3E") center / 14px no-repeat; }
.trn-flow { counter-reset: f; display: grid; gap: 0; border-left: 1px solid var(--line-dark); margin-top: 8px; }
.trn-flow li { counter-increment: f; position: relative; padding: 0 0 30px 34px; display: grid; gap: 4px; }
.trn-flow li:last-child { padding-bottom: 0; }
.trn-flow li::before { content: counter(f, decimal-leading-zero); position: absolute; left: -16px; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); border: 1px solid var(--line-dark); font: 500 12px var(--mono); color: var(--accent); }
.trn-flow b { font-weight: 500; font-size: 18px; }
.trn-flow span { color: var(--mist); font-size: 15px; }
.trn-faq { max-width: 900px; }
.trn-cta { margin-top: 0; max-width: 1100px; }
.trn-cta .trn-help { margin-top: 18px; }

/* ---------- course detail ---------- */
.trn-wrap { padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(80px, 10vw, 140px); max-width: 1320px; }
.trn-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.trn-detail__body { display: grid; gap: 44px; }
.trn-block > p { color: rgba(255, 255, 255, .84); margin-top: 14px; max-width: 70ch; line-height: 1.68; }
.trn-block .trn-ticks { margin-top: 18px; }
.trn-block .faq { margin-top: 18px; }
.trn-modules { counter-reset: m; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.trn-modules li { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .025); }
.trn-modules .mono { color: var(--accent); font-size: 13px; }
.trn-sticky { position: sticky; top: 96px; }
.trn-sticky .trn-sessions { margin-top: 16px; }

/* ---------- registrant page ---------- */
.trn-status { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; padding-top: 8px; }
.trn-status > .trn-flash { grid-column: 1 / -1; }
.trn-status__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.trn-status__ref { text-align: right; display: grid; gap: 4px; }
.trn-status__ref small, .trn-cert small, .trn-pay__amount small { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.trn-status__ref b { font-size: 18px; }
.trn-status__msg { margin-top: 22px; font-size: 17px; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.trn-status__msg b { color: var(--white); font-weight: 600; }
.trn-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; position: relative; }
.trn-steps li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; color: var(--mist); }
.trn-steps li::before { content: ""; position: absolute; top: 10px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--line-dark); }
.trn-steps li:first-child::before { display: none; }
.trn-steps li.is-done::before { background: var(--accent); }
.trn-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--navy-900); position: relative; z-index: 1; }
.trn-steps li.is-done { color: var(--white); }
.trn-steps li.is-done span { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061029' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--accent); }
.trn-cert { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; padding: 20px; border-radius: var(--radius-sm); background: rgba(61, 220, 151, .07); border: 1px solid rgba(61, 220, 151, .25); }
.trn-cert > div { display: grid; gap: 4px; margin-right: auto; }
.trn-cert b { font-size: 18px; }
.trn-pay { display: grid; gap: 14px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.trn-pay__amount { display: grid; gap: 4px; }
.trn-pay__amount b { font: 500 34px var(--mono); letter-spacing: -0.03em; }
.trn-pay__note { color: var(--mist); font-size: 13.5px; text-align: center; }
.trn-alt { margin-top: 18px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 0 18px; background: rgba(255, 255, 255, .02); }
.trn-alt summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.trn-alt summary::-webkit-details-marker { display: none; }
.trn-alt summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.trn-alt[open] summary::after { transform: rotate(45deg); }
.trn-alt > p { color: var(--mist); font-size: 15px; }
.trn-alt .trn-facts { margin: 8px 0 18px; }
.trn-facts { display: grid; gap: 0; margin: 0; }
.trn-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.trn-facts > div:last-child { border-bottom: 0; }
.trn-facts dt { color: var(--mist); font-size: 14px; }
.trn-facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.trn-facts--stack { margin-top: 12px; }
.trn-status__side { display: grid; gap: 16px; align-content: start; }
.trn-cal { justify-self: start; gap: 8px; }
.trn-flash { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); font-size: 15px; animation: trn-up .6s var(--ease) both; }
.trn-flash--ok { background: rgba(61, 220, 151, .09); color: #9ff0cb; border-color: rgba(61, 220, 151, .3); }
.trn-flash--err { background: rgba(255, 90, 100, .1); color: #ffb3b8; border-color: rgba(255, 120, 130, .3); }

/* ---------- certificate check ---------- */
.trn-verify { display: grid; gap: 20px; max-width: 760px; }
.trn-verify__ok { border-color: rgba(61, 220, 151, .35); background: radial-gradient(500px 220px at 100% 0%, rgba(61, 220, 151, .12), transparent 70%), var(--trn-panel); }
.trn-verify__no { border-color: rgba(255, 120, 130, .35); }
.trn-verify__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(61, 220, 151, .14); color: var(--ok); margin-bottom: 18px; animation: trn-pop .7s var(--ease) both; }
.trn-verify__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trn-verify__title { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; margin-top: 8px; }
.trn-verify__line { font-size: 19px; margin: 12px 0; color: rgba(255, 255, 255, .88); }
.trn-verify__form { display: grid; gap: 14px; }
@keyframes trn-pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- registration page ---------- */
.trn--register { position: relative; overflow: hidden; }
.trn-reg { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px); gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(110px, 12vw, 150px) var(--gutter) clamp(80px, 10vw, 120px); max-width: 1320px; margin: 0 auto; }
.trn-reg__bg { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.trn-reg__bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: trn-orb 26s ease-in-out infinite alternate; }
.trn-reg__bg i:nth-child(1) { width: 46vw; height: 46vw; left: -14vw; top: -10vw; background: radial-gradient(circle, rgba(47, 107, 255, .5), transparent 65%); }
.trn-reg__bg i:nth-child(2) { width: 38vw; height: 38vw; right: -12vw; bottom: -10vw; background: radial-gradient(circle, rgba(255, 106, 61, .38), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.trn-reg__bg i:nth-child(3) { width: 26vw; height: 26vw; left: 36vw; top: 40%; background: radial-gradient(circle, rgba(69, 200, 255, .22), transparent 65%); animation-duration: 22s; animation-delay: -14s; }
@keyframes trn-orb { 50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); } 100% { transform: translate3d(-4vw, 8vh, 0) scale(.94); } }
.trn-reg__aside { display: grid; gap: 28px; padding-top: 8px; position: sticky; top: 100px; }
.trn-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.trn-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: trn-live 2s infinite; }
@keyframes trn-live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }
.trn-reg__title { font-size: clamp(42px, 5vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; margin-top: -10px; animation: trn-up .9s var(--ease) both; }
.trn-reg__title em { color: var(--accent); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: trn-sheen 6s linear infinite; }
@keyframes trn-sheen { to { background-position: -200% 0; } }
.trn-reg__session { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(10, 26, 63, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: trn-up .9s .15s var(--ease) both; justify-items: start; }
.trn-reg__session > b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.trn-reg__facts { display: grid; gap: 14px; width: 100%; }
.trn-reg__facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; }
.trn-reg__facts svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trn-reg__facts small { display: block; color: var(--mist); font-size: 14px; margin-top: 2px; }
.trn-reg__facts s { color: rgba(255, 255, 255, .45); margin-left: 8px; }
.trn-reg__how { display: grid; gap: 0; }
.trn-reg__how li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-dark); animation: trn-up .8s var(--ease) both; animation-delay: calc(350ms + var(--i) * 120ms); }
.trn-reg__how b { font-weight: 500; }
.trn-reg__how span { color: var(--mist); font-size: 14.5px; }
.trn-reg__card-wrap { display: grid; gap: 16px; }
.trn-card { position: relative; isolation: isolate; padding: clamp(24px, 3vw, 38px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(20, 38, 86, .78), rgba(8, 18, 44, .85)); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); animation: trn-card 1s var(--ease) both; }
.trn-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--trn-a), rgba(255, 255, 255, .1), rgba(255, 106, 61, .9), rgba(255, 255, 255, .1) 30%, rgba(79, 125, 255, .7) 60%, rgba(255, 255, 255, .1) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: trn-spin 8s linear infinite; }
.trn-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2; background: radial-gradient(420px 220px at 100% 0%, rgba(255, 106, 61, .14), transparent 70%); pointer-events: none; }
.trn-card.is-error { animation: trn-card 1s var(--ease) both, trn-shake .5s .55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes trn-spin { to { --trn-a: 360deg; } }
@keyframes trn-card { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px); } }
@keyframes trn-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes trn-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.trn-card__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.025em; animation: trn-up .8s .15s var(--ease) both; }
.trn-card__lead { color: var(--mist); margin: 10px 0 18px; }
.trn-card .trn-flash { margin-top: 14px; }
.trn-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: rgba(226, 233, 250, .5); text-align: center; }
.trn-secure svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* form controls (shared with the pay and verify forms) */
.trn .aform { display: grid; gap: 14px; margin-top: 20px; }
.trn .aform > * { animation: trn-up .7s var(--ease) both; animation-delay: calc(280ms + var(--i, 0) * 70ms); }
.aform__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trn .afield { position: relative; display: block; }
.trn .afield input, .trn .afield select, .trn .afield textarea { width: 100%; height: 60px; margin: 0; padding: 24px 16px 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04); color: var(--white); font: 16px var(--font); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .25s, background-color .25s, box-shadow .25s; }
.trn .afield textarea { height: auto; min-height: 104px; padding-top: 28px; resize: vertical; line-height: 1.5; }
.trn .afield select { padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c4de' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.trn .afield select option { background: var(--navy-900); color: var(--white); }
.trn .afield input:hover, .trn .afield select:hover, .trn .afield textarea:hover { border-color: rgba(255, 255, 255, .24); }
.trn .afield input:focus, .trn .afield select:focus, .trn .afield textarea:focus { border-color: var(--accent); background-color: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 106, 61, .16), 0 12px 30px -16px rgba(255, 106, 61, .6); }
.trn .afield > span { position: absolute; left: 17px; top: 30px; transform: translateY(-50%); color: rgba(226, 233, 250, .62); font-size: 16px; pointer-events: none; transform-origin: left top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
  transition: top .25s var(--ease), transform .25s var(--ease), color .25s, font-size .25s; }
.trn .afield input:focus + span, .trn .afield input:not(:placeholder-shown) + span,
.trn .afield textarea:focus + span, .trn .afield textarea:not(:placeholder-shown) + span, .trn .afield--select > span { top: 10px; transform: none; font-size: 12px; letter-spacing: .02em; }
.trn .afield input:-webkit-autofill + span { top: 10px; transform: none; font-size: 12px; }
.trn .afield input:autofill + span { top: 10px; transform: none; font-size: 12px; }
.trn .afield input:focus + span, .trn .afield textarea:focus + span, .trn .afield select:focus + span { color: var(--accent); }
.trn .afield input:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 40px #13234a inset; caret-color: var(--white); }
.trn .afield__hint { display: block; margin-top: 6px; font-size: 12.5px; color: #8ef0c4; }
.trn .afield__hint[hidden] { display: none; }
.trn .field__err { display: block; margin-top: 6px; color: var(--trn-err); font-size: 13px; font-style: normal; }
.trn .is-invalid input, .trn .is-invalid select, .trn .is-invalid textarea { border-color: rgba(255, 120, 130, .6); }
.trn-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.achoice { border: 0; margin: 0; padding: 0; min-width: 0; }
.achoice legend { font-size: 13px; color: rgba(226, 233, 250, .62); margin-bottom: 8px; padding: 0; }
.achoice__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.achoice__opts label { position: relative; cursor: pointer; }
.achoice__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.achoice__opts span { display: grid; place-items: center; text-align: center; min-height: 52px; height: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .03); font-size: 14px; line-height: 1.25; color: rgba(255, 255, 255, .82); transition: border-color .2s, background-color .2s, color .2s, transform .3s var(--ease); }
.achoice__opts label:hover span { border-color: rgba(255, 255, 255, .26); }
.achoice__opts input:checked + span { border-color: var(--accent); background: rgba(255, 106, 61, .13); color: var(--white); box-shadow: 0 0 0 3px rgba(255, 106, 61, .12); }
.achoice__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.achoice__opts input:active + span { transform: scale(.97); }
.achoice.is-invalid .achoice__opts span { border-color: rgba(255, 120, 130, .5); }

.acheck { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: rgba(226, 233, 250, .8); line-height: 1.5; cursor: pointer; }
.acheck input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.acheck input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0d06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.acheck input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 106, 61, .25); }
.acheck a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.acheck .field__err { grid-column: 2; margin-top: 0; }
.acheck.is-invalid input { border-color: rgba(255, 120, 130, .7); }

.abtn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #ff7f57, #ff5a2a 60%, #ff6a3d); color: #1a0d06; font: 600 16px var(--font); text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(255, 106, 61, .85), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .25s var(--ease), box-shadow .25s, filter .2s; }
.abtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.abtn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: trn-shine 5s 2s ease-in-out infinite; }
@keyframes trn-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.abtn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(255, 106, 61, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.abtn:hover svg { transform: translateX(4px); }
.abtn:active { transform: translateY(0) scale(.98); }
.abtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.abtn.is-loading { pointer-events: none; filter: saturate(.8); }
.abtn.is-loading > * { opacity: 0; }
.abtn.is-loading::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(26, 13, 6, .25); border-top-color: #1a0d06; animation: trn-rot .7s linear infinite; }
@keyframes trn-rot { to { transform: rotate(360deg); } }
.trn .aform__note { text-align: center; font-size: 13px; color: rgba(226, 233, 250, .55); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .trn-why { grid-template-columns: 1fr 1fr; }
  .trn-session { grid-template-columns: minmax(0, 1fr) auto; }
  .trn-session__where { grid-column: 1 / -1; order: 2; }
  .trn-session__price { text-align: right; }
  .trn-session__act { grid-column: 1 / -1; order: 3; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .trn-session__act .btn { justify-self: end; }
  .trn-detail { grid-template-columns: 1fr; }
  .trn-sticky { position: static; }
  .trn-reg { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .trn-reg__aside { position: static; }
  .trn-reg__how { display: none; }
}
@media (max-width: 760px) {
  .trn-hero__facts { grid-template-columns: 1fr 1fr; }
  .trn-split, .trn-status { grid-template-columns: 1fr; }
  .trn-modules { grid-template-columns: 1fr; }
  .trn-reg { padding-top: 100px; gap: 24px; }
  .trn-reg__title { font-size: clamp(36px, 10vw, 48px); }
  .trn-reg__session { padding: 18px; }
  .trn-card { padding: 22px 18px; border-radius: 22px; }
  .aform__two { grid-template-columns: 1fr; }
  .trn-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .trn-status__ref { text-align: left; }
}
@media (max-width: 480px) {
  .trn-why { grid-template-columns: 1fr; }
  .achoice__opts { grid-template-columns: 1fr; }
  .achoice__opts span { min-height: 46px; place-items: center start; padding-inline: 14px; }
  .trn-steps li { font-size: 12.5px; }
  .trn-course__head .trn-link { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .trn *, .trn *::before, .trn *::after { animation: none !important; transition: none !important; }
  .trn-js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .trn-card, .trn-reg__session { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-800); }
}
