/* TradingTeaching v3 — publisher look, matched to the 2027 covers.
   Type: Playfair Display (cover titles) + Inter (cover text).
   Colour: TT-07 — Midnight Navy, Signal Blue, Readable Blue, Cloud; Muted Gold
   as a credential accent only. */

:root {
    --navy: #071827;
    --navy-2: #102A43;
    --blue: #2F80ED;
    --blue-text: #1766C3;
    --blue-light: #6DA9FF;
    --gold: #C5A15A;
    --cloud: #F5F8FB;
    --paper: #FBFAF7;
    --ink: #0B1B2B;
    --ink-2: #3D4B5C;
    --ink-3: #6B7785;
    --rule: #E3E7EC;
    --level-1: #2F80ED;
    --level-2: #1F9D74;
    --level-3: #B8893A;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', 'Manrope', Arial, sans-serif;
    --wrap: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue-text);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.display {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.08;
    margin: 0;
    font-variant-numeric: lining-nums;
}
h1.display { font-size: clamp(38px, 4.4vw, 58px); }
h2.display { font-size: clamp(32px, 3.8vw, 48px); }
h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }
.display em { font-style: italic; color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid transparent;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
    cursor: pointer;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue-text); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(23,102,195,.6); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-light); color: var(--navy); }
.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- top bar + header ---------- */
.topbar {
    background: var(--navy);
    color: #C7D6E2;
    font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 247, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-head.scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(7,24,39,.5); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.site-head .logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--blue);
    transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav .btn { padding: 10px 18px; color: #fff; }
.nav .btn::after { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-chart {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    left: 46%;
    width: 54%;
    height: 100%;
    pointer-events: none;
    opacity: .9;
}
.hero .wrap { position: relative; }
.hero .display { margin: 22px 0 22px; font-size: clamp(38px, 4.4vw, 58px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.creds { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--rule); }
.cred { display: flex; flex-direction: column; }
.cred b { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; font-size: 26px; color: var(--navy); line-height: 1.1; }
.cred span { font-size: 13px; color: var(--ink-3); }

/* the shelf: three real covers standing in 3D */
.shelf {
    position: relative;
    height: 520px;
    perspective: 1800px;
    transform-style: preserve-3d;
}
.book {
    --w: 230px;
    --h: calc(var(--w) * 1.6);
    --d: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--w);
    height: var(--h);
    transform-style: preserve-3d;
    transition: transform .9s var(--ease);
}
.book .front, .book .spine, .book .pages {
    position: absolute;
    inset: 0;
}
.book .front {
    background-size: cover;
    background-position: center;
    border-radius: 2px 4px 4px 2px;
    box-shadow: inset 4px 0 6px -3px rgba(0,0,0,.35), inset -1px 0 0 rgba(255,255,255,.4);
    transform: translateZ(calc(var(--d) / 2));
}
.book .front::after {           /* paper sheen */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 60%);
    background-size: 250% 100%;
    background-position: 120% 0;
    transition: background-position 1.2s var(--ease);
}
.book:hover .front::after { background-position: -20% 0; }
.book .spine {
    width: var(--d);
    left: 0;
    transform-origin: left center;
    transform: translateZ(calc(var(--d) / 2)) rotateY(90deg);
    filter: brightness(.85);
}
.book .pages {
    width: calc(var(--d) - 2px);
    left: auto;
    right: calc(var(--d) / -2 + 1px);
    top: 3px; bottom: 3px;
    height: auto;
    background: repeating-linear-gradient(90deg, #fff 0 1px, #e9e6df 1px 2px);
    transform: rotateY(90deg) translateZ(calc(var(--w) - var(--d) / 2 - 1px));
    transform-origin: right center;
    display: none;
}
.book::before {                 /* contact shadow on the table */
    content: "";
    position: absolute;
    left: 6%; right: -4%;
    bottom: -26px;
    height: 30px;
    background: radial-gradient(closest-side, rgba(7,24,39,.35), rgba(7,24,39,0));
    transform: translateZ(-40px);
    filter: blur(4px);
}
.b1 { transform: translate(-118%, -46%) rotateY(28deg) rotateZ(-2deg); z-index: 1; }
.b2 { transform: translate(-50%, -54%) rotateY(14deg) translateZ(60px); z-index: 3; --w: 250px; }
.b3 { transform: translate(18%, -46%) rotateY(4deg) rotateZ(2deg); z-index: 2; }
.b1 .spine { background: linear-gradient(90deg, #1d5fb8, #2F80ED); }
.b2 .spine { background: linear-gradient(90deg, #157a5a, #1F9D74); }
.b3 .spine { background: linear-gradient(90deg, #8d6626, #B8893A); }
.shelf .book { animation: float 7s ease-in-out infinite; }
.shelf .b2 { animation-delay: -2.3s; }
.shelf .b3 { animation-delay: -4.6s; }
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.edition-tag {
    position: absolute;
    right: 4%;
    bottom: 2%;
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-left: 3px solid var(--gold);
    z-index: 5;
}
.edition-tag b { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-transform: none; }

/* ---------- hero carousel ---------- */
.slides { display: grid; }
.slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .6s var(--ease), visibility 0s .6s;
}
.slide.is-active { visibility: visible; opacity: 1; transition: opacity .6s var(--ease), visibility 0s; z-index: 1; }
.slide-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .slide-copy > :nth-child(5) { transition-delay: .32s; }
.slide-art { transform: translateX(40px) scale(.97); opacity: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.slide.is-active .slide-art { transform: none; opacity: 1; transition-delay: .1s; }
.mini { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); max-width: 520px; }
.mini li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
.mini b { font-weight: 700; color: var(--blue-text); }
.mini span { font-size: 13px; color: var(--ink-3); }

.hero-foot { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-top: 56px; border-top: 1px solid var(--rule); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
.tab {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    background: none;
    border: 0;
    padding: 22px 20px 20px 0;
    cursor: pointer;
    font: inherit;
    color: var(--ink-3);
    transition: color .3s;
}
.tab + .tab { padding-left: 20px; }
.tab:hover, .tab.is-active { color: var(--navy); }
.tab-n { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--blue); padding-top: 3px; }
.tab-l { font-weight: 600; font-size: 16px; line-height: 1.3; }
.tab-l small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.tab-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.tab + .tab .tab-bar { left: 20px; }
.tab-bar b { display: block; height: 100%; width: 0; background: var(--blue); }
.tab.is-active .tab-bar b { width: 100%; }
.hero.playing .tab.is-active .tab-bar b { animation: tabfill var(--dwell, 7s) linear forwards; }
.hero.paused .tab.is-active .tab-bar b { animation-play-state: paused; }
@keyframes tabfill { from { width: 0; } to { width: 100%; } }
.arrows { display: flex; gap: 10px; align-items: center; padding-top: 14px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.arrow svg { width: 16px; height: 16px; }

/* slide 2: course player */
.player { background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 40px 80px -40px rgba(7,24,39,.55), 0 2px 6px rgba(7,24,39,.06); overflow: hidden; max-width: 600px; margin-left: auto; }
.player-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--cloud); }
.player-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE4; }
.player-bar span { margin-left: 12px; font-size: 12px; color: var(--ink-3); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px; }
.player-body { display: grid; grid-template-columns: 1.35fr 1fr; }
.player-screen { position: relative; background: radial-gradient(120% 100% at 30% 0%, #17406f, var(--navy)); min-height: 300px; overflow: hidden; }
.player-screen img { position: absolute; right: -36px; top: 22px; height: 190px; width: auto; transform: rotate(8deg); opacity: .9; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.player-title { position: absolute; left: 20px; bottom: 44px; right: 20px; max-width: 15em; text-shadow: 0 2px 12px rgba(7,24,39,.6); color: #fff; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.player-title small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 6px; }
.big-play { position: absolute; left: 20px; top: 22px; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; animation: pulse 2.6s infinite; }
.big-play svg { width: 24px; height: 24px; margin-left: 3px; }
.scrub { position: absolute; left: 20px; right: 20px; bottom: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.scrub b { display: block; height: 100%; width: 0; background: var(--blue); }
.slide.is-active .scrub b { animation: scrub 7s linear forwards; }
@keyframes scrub { to { width: 62%; } }
.lessons { list-style: none; margin: 0; padding: 10px 0; font-size: 13.5px; }
.lessons li { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; color: var(--ink-2); border-left: 2px solid transparent; }
.lessons li em { font-style: normal; font-weight: 700; color: var(--ink-3); min-width: 14px; }
.lessons li.on { background: var(--cloud); border-left-color: var(--blue); color: var(--navy); font-weight: 600; }
.lessons li span { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--level-2); }

/* slide 3: class cards fanned out */
.fan { position: relative; height: 440px; perspective: 1400px; }
.fan-card { position: absolute; margin: 0; width: 64%; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(7,24,39,.6); border: 4px solid #fff; transition: transform .9s var(--ease); }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.f1 { left: 4%; top: 24%; transform: rotate(-5deg); z-index: 3; }
.f2 { left: 22%; top: 8%; transform: rotate(3deg); z-index: 2; }
.f3 { left: 36%; top: 34%; transform: rotate(8deg); z-index: 1; }
.slide.is-active .fan:hover .f1 { transform: rotate(-8deg) translate(-16px, 6px); }
.slide.is-active .fan:hover .f3 { transform: rotate(11deg) translate(16px, 10px); }
.fan-note { position: absolute; left: 0; bottom: 4%; z-index: 4; background: var(--navy); color: #C7D6E2; padding: 14px 18px; font-size: 13px; border-left: 3px solid var(--gold); }
.fan-note b { display: block; color: #fff; font-size: 15px; }
.fan-pin { position: absolute; right: 2%; top: 4%; z-index: 4; display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--rule); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); box-shadow: 0 10px 24px -14px rgba(7,24,39,.5); }
.fan-pin svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- strip ---------- */
.strip { background: var(--navy); color: #C7D6E2; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .item { padding: 26px 22px; border-left: 1px solid rgba(255,255,255,.08); display: flex; gap: 14px; align-items: center; font-size: 14px; }
.strip .item:last-child { border-right: 1px solid rgba(255,255,255,.08); }
.strip svg { flex: none; width: 28px; height: 28px; color: var(--blue-light); }
.strip b { color: #fff; display: block; font-size: 15px; }

/* ---------- sections ---------- */
section.block { padding: 112px 0; }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.block-head h2 { margin-top: 16px; }
.block-head p { margin: 0; }
.alt { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* series */
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.series::before {               /* the path from book 1 to book 3 */
    content: "";
    position: absolute;
    top: 196px;
    left: 16%; right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--level-1), var(--level-2), var(--level-3));
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    transition: transform 1.6s var(--ease);
}
.series.in::before { --progress: 1; }
.vol { position: relative; display: flex; flex-direction: column; }
.vol .cover-wrap { perspective: 1200px; display: flex; justify-content: center; margin-bottom: 30px; }
.vol .cover {
    width: 240px;
    aspect-ratio: 640 / 1024;
    background-size: cover;
    border-radius: 2px 4px 4px 2px;
    box-shadow:
        inset 5px 0 8px -4px rgba(0,0,0,.35),
        0 1px 1px rgba(7,24,39,.08),
        0 18px 30px -12px rgba(7,24,39,.45),
        0 40px 60px -30px rgba(7,24,39,.35);
    transform: rotateY(-14deg);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease);
    transform-style: preserve-3d;
}
.vol:hover .cover { transform: rotateY(0) translateY(-8px) scale(1.02); }
.vol .level {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.vol .level i { width: 26px; height: 3px; display: inline-block; background: currentColor; }
.vol:nth-child(1) .level { color: var(--level-1); }
.vol:nth-child(2) .level { color: var(--level-2); }
.vol:nth-child(3) .level { color: var(--level-3); }
.vol p { color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.vol .buy { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.vol .buy .btn { padding: 10px 16px; font-size: 14px; }
.vol .meta { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.note { margin-top: 48px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* video courses */
.courses, .classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course, .klass {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rule);
    color: var(--ink);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
a.course:hover, .klass:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -28px rgba(7,24,39,.45); color: var(--ink); }
.course-top {
    position: relative;
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 110%, rgba(255,255,255,.18), transparent 60%), var(--navy);
}
.course-top.c1 { background-color: #0d2a52; }
.course-top.c2 { background-color: #0c3a33; }
.course-top.c3 { background-color: #3a2c12; }
.course-top img {
    height: 250px;
    width: auto;
    transform: translateY(46px) rotate(-4deg);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
    transition: transform .6s var(--ease);
}
a.course:hover .course-top img { transform: translateY(30px) rotate(0); }
.course-n {
    position: absolute;
    top: 16px; left: 18px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .85;
}
.play {
    position: absolute;
    right: 18px; top: 16px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 0 rgba(255,255,255,.5);
    animation: pulse 2.6s infinite;
}
.play svg { width: 20px; height: 20px; margin-left: 2px; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
    70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.course-body, .klass-body { padding: 28px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.course-body p, .klass-body p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.facts { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13px; color: var(--ink-2); background: var(--cloud); border: 1px solid var(--rule); padding: 5px 10px; }
.facts b { color: var(--navy); }
.price-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 16px; }
.price { font-family: var(--sans); font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.free-pill { font-size: 12px; font-weight: 700; color: var(--level-2); background: rgba(31,157,116,.1); padding: 6px 10px; border-radius: 999px; }
.section-foot { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* dubai classes */
.klass-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.klass-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.klass:hover .klass-img img { transform: scale(1.06); }
.klass-tag { position: absolute; bottom: 14px; left: 14px; background: var(--level-2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; }
.klass-step { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.klass .facts { margin-bottom: 0; }

/* ways */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.way { padding: 40px 36px 40px 0; border-right: 1px solid var(--rule); }
.way + .way { padding-left: 36px; }
.way:last-child { border-right: 0; }
.way .num { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.way svg { width: 40px; height: 40px; color: var(--navy); margin: 18px 0 20px; }
.way p { color: var(--ink-2); }

/* method band */
.method { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.method .eyebrow { color: var(--blue-light); }
.method .lede { color: #C7D6E2; }
.method .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.big-stat {
    font-family: var(--serif);
    font-size: clamp(120px, 16vw, 220px);
    line-height: .9;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.03em;
    font-variant-numeric: lining-nums;
}
.big-stat span { color: var(--blue); }
.big-stat-cap { font-size: 15px; color: #C7D6E2; max-width: 24em; margin-top: 18px; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 26px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}
.rules li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.rules svg { width: 36px; height: 36px; color: var(--blue-light); }
.rules h3 { color: #fff; font-size: 22px; }
.rules p { margin: 0; color: #C7D6E2; font-size: 16px; }

/* author */
.author { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); border: 1px solid var(--rule); }
.portrait::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid var(--blue);
    z-index: -1;
}
.portrait figcaption {
    position: absolute;
    left: -18px;
    bottom: 28px;
    background: var(--navy);
    color: #fff;
    padding: 14px 18px;
    font-size: 13px;
    border-left: 3px solid var(--gold);
}
.portrait figcaption b { display: block; font-family: var(--serif); font-size: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 32px; }
.badge {
    border: 1px solid var(--rule);
    background: #fff;
    padding: 10px 14px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.badge svg { width: 18px; height: 18px; color: var(--gold); }

/* free */
.free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.free a.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rule);
    padding: 34px 30px;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.free a.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 3px; width: 100%;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.free a.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(7,24,39,.35); border-color: transparent; }
.free a.card:hover::before { transform: scaleX(1); }
.free .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--level-2); margin-bottom: 14px; }
.free p { color: var(--ink-2); flex: 1; }
.free .link-arrow { color: var(--blue-text); }

/* reviews + cta */
.cta {
    background:
        radial-gradient(1200px 400px at 85% 0%, rgba(47,128,237,.25), transparent 60%),
        var(--navy-2);
    color: #fff;
    padding: 96px 0;
}
.cta .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta p { color: #C7D6E2; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--navy); }
.reviews-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 14px; }
.reviews-row a { color: var(--blue-light); }

/* footer */
.foot { background: var(--navy); color: #9FB0C2; font-size: 14px; padding: 72px 0 32px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot a { color: #C7D6E2; }
.foot a:hover { color: #fff; }
.foot .logo img { height: 32px; margin-bottom: 18px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 16px; height: 16px; }
.foot .risk { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; line-height: 1.7; }
.foot .risk strong { color: #fff; }
.foot .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 13px; }
.foot .legal nav { display: flex; gap: 20px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.hero-chart .candle { opacity: 0; transform-box: fill-box; transform-origin: bottom; transform: scaleY(.2); }
.hero-chart.go .candle { animation: candle .6s var(--ease) forwards; }
.hero-chart .trend { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.hero-chart.go .trend { animation: draw 3.2s var(--ease) .4s forwards; }
@keyframes candle { to { opacity: 1; transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-chart .candle { opacity: 1; transform: none; }
    .hero-chart .trend { stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .nav { gap: 20px; }
    .slide, .method .grid, .author, .cta .wrap { grid-template-columns: 1fr; }
    .hero-chart { display: none; }
    .shelf { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
    .author { gap: 56px; }
    .portrait { max-width: 380px; }
    .cta .actions { justify-content: flex-start; }
    .strip .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .menu-btn { display: block; }
    .nav {
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 26px;
        gap: 12px;
        border-bottom: 1px solid var(--rule);
        display: none;
    }
    .nav.open { display: flex; }
    .block-head, .series, .ways, .free, .foot .cols, .courses, .classes { grid-template-columns: 1fr; }
    .series::before { display: none; }
    .way, .way + .way { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
    section.block { padding: 80px 0; }
    .topbar .wrap span:last-child { display: none; }
}
@media (max-width: 860px) {
    .hero-foot { flex-direction: column; gap: 0; }
    .tabs { grid-template-columns: 1fr 1fr 1fr; }
    .tab { flex-direction: column; gap: 4px; padding-right: 8px; }
    .tab-l small { display: none; }
    .arrows { display: none; }
    .player-body { grid-template-columns: 1fr; }
    .lessons { display: none; }
    .fan { height: 340px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap, :root.v3 body .container { padding-left: 16px; padding-right: 16px; }
    .mini li { grid-template-columns: 64px 1fr; }
    .mini span { display: none; }
    .tab + .tab { padding-left: 10px; }
    .tab + .tab .tab-bar { left: 10px; }
    .tab-l { font-size: 14px; }
    .fan { height: 260px; }
    .fan-note { font-size: 12px; padding: 10px 12px; }
    .site-head .logo img { height: 24px; }
    .hero { padding: 40px 0 64px; }
    .shelf { height: 330px; }
    .book { --w: 150px; }
    .b2 { --w: 165px; }
    .edition-tag { right: 0; bottom: -6px; }
    .strip .wrap { grid-template-columns: 1fr; }
    .strip .item { border-right: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
    .creds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .portrait figcaption { left: 0; }
}

/* 2026-10-27: course languages highlight */
.langs-line{display:block;margin-top:.6em;padding:.45em .8em;border-left:3px solid currentColor;background:rgba(127,127,127,.10);border-radius:4px;font-size:.95em}
.langs-line b{font-weight:700}
