/* ==========================================================================
   Edusoft – main stylesheet (on top of Bootstrap 5.3)
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    --brand: #00cdff;
    --brand-strong: #00a9d6;
    --brand-soft: #e6f9ff;
    --navy: #1a2835;
    --navy-deep: #0f1a24;
    --ink: #1d2733;
    --muted: #5b6878;
    --line: #e5eaf0;
    --surface: #ffffff;
    --surface-alt: #f5f8fb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(15, 26, 36, .18);
    --shadow-hover: 0 18px 40px -14px rgba(15, 26, 36, .28);
    --header-h: 76px;

    --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--surface);
    --bs-link-color: var(--brand-strong);
    --bs-link-color-rgb: 0, 169, 214;
    --bs-link-hover-color: var(--navy);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-brand {
    --bs-btn-color: var(--navy-deep);
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: var(--navy-deep);
    --bs-btn-hover-bg: #33d7ff;
    --bs-btn-hover-border-color: #33d7ff;
    --bs-btn-active-bg: var(--brand-strong);
    --bs-btn-active-border-color: var(--brand-strong);
    --bs-btn-active-color: var(--navy-deep);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-disabled-color: var(--navy-deep);
    box-shadow: 0 8px 20px -8px rgba(0, 205, 255, .6);
}
.btn-brand:hover { transform: translateY(-1px); }
.btn-ghost {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--surface-alt);
    --bs-btn-hover-border-color: #cfd8e3;
    background: var(--surface);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 26, 36, .35); }
.site-header .navbar { min-height: var(--header-h); }
.navbar-brand img { display: block; height: 44px; width: auto; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .5rem .85rem !important; border-radius: 999px; }
.navbar .nav-link:hover { color: var(--brand-strong); }
.navbar .nav-link.active { color: var(--navy-deep); background: var(--brand-soft); }
.navbar-toggler { border: 0; font-size: 1.75rem; color: var(--ink); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .5rem 0 1rem; }
}

/* ---------- Common section ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 205, 255, .16), transparent 60%), var(--navy-deep); color: #e8eef4; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p, .text-muted-light { color: #a9b6c4; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; text-align: left; }
.section-head-row h2 { margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    color: var(--brand-strong); margin-bottom: .75rem;
}
.section-dark .eyebrow { color: var(--brand); }
.text-brand { color: var(--brand-strong); }
.text-gradient { background: linear-gradient(90deg, var(--brand-strong), #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(700px 400px at 90% 10%, rgba(0, 205, 255, .18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(59, 130, 246, .10), transparent 60%),
        linear-gradient(180deg, #fff, var(--surface-alt));
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.75rem 0 0; }
.hero-stats div { border-left: 3px solid var(--brand); padding-left: .9rem; }
.hero-stats dt { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .95rem; }

.code-window {
    background: var(--navy-deep); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(15, 26, 36, .55);
    border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; transform: rotate(1.5deg);
}
.code-bar { display: flex; align-items: center; gap: .45rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, .04); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: auto; font-style: normal; font-size: .8rem; color: #8193a6; }
.code-body { margin: 0; padding: 1.5rem 1.6rem 1.8rem; color: #d6e2ee; font-size: clamp(.72rem, 1.2vw, .92rem); line-height: 1.75; white-space: pre; overflow-x: auto; }
.c-k { color: #c792ea; } .c-t { color: var(--brand); } .c-f { color: #82aaff; } .c-s { color: #c3e88d; }

/* ---------- Cards ---------- */
.card-feature, .card-service, .card-news {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-feature:hover, .card-service:hover, .card-news:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-feature h3, .card-service h3, .card-news h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card-feature p, .card-service p, .card-news p { color: var(--muted); margin: 0; }

.icon-tile {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 1.6rem; margin-bottom: 1.25rem;
}
.service-icon { display: inline-block; font-size: 2rem; color: var(--brand-strong); margin-bottom: 1rem; }

/* ---------- Tech ---------- */
.tech-group { border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); border-radius: var(--radius); padding: 1.5rem; }
.tech-group h3 { font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: rgba(0, 205, 255, .1); color: #bfefff; border: 1px solid rgba(0, 205, 255, .2); }

/* ---------- Education ---------- */
.edu-panel { background: linear-gradient(135deg, var(--brand-soft), #eef3ff); border-radius: 24px; padding: clamp(2rem, 4vw, 3.25rem); }
.edu-panel h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.edu-panel > .row > .col-lg-4 p { color: var(--muted); margin-bottom: 1.5rem; }
.edu-card {
    display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
    color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }
.edu-card > i { font-size: 1.7rem; color: var(--brand-strong); margin-bottom: .75rem; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.edu-card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.link-arrow { font-weight: 700; font-size: .9rem; color: var(--brand-strong); }
.link-arrow i { transition: transform .2s ease; display: inline-block; }
.edu-card:hover .link-arrow i { transform: translateX(4px); }

/* ---------- News ---------- */
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.badge-soft { background: var(--brand-soft); color: #00799a; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; }

/* ---------- Partners ---------- */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3.5rem; }
.partner-logos img { max-height: 72px; width: auto; filter: grayscale(.2); }

/* ---------- Contact ---------- */
#contact h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 205, 255, .12); color: var(--brand); font-size: 1.2rem; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--brand); }

.contact-form { background: var(--surface); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.contact-form .form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.contact-form .form-control { border-radius: var(--radius-sm); border-color: #d5dde6; padding: .75rem 1rem; background: var(--surface-alt); }
.contact-form .form-control:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 .25rem rgba(0, 205, 255, .2); background: #fff; }
.contact-form .form-note { color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; background: #e7f8ef; color: #136c3c; }
.form-status.is-error { background: #fdecec; color: #a12121; }

/* ---------- Footer ---------- */
.site-footer { background: #0a131b; color: #a9b6c4; padding: 4rem 0 1.5rem; font-size: .95rem; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #a9b6c4; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.text-footer { max-width: 26rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; }
.back-to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.back-to-top:hover { background: var(--brand); color: var(--navy-deep); }

/* ---------- Inner pages ---------- */
.page-hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: radial-gradient(700px 300px at 90% 0%, rgba(0, 205, 255, .16), transparent 60%), linear-gradient(180deg, #fff, var(--surface-alt));
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .75rem; }
.page-hero .lead { color: var(--muted); max-width: 44rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-strong); }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.subnav a {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.subnav a:hover { border-color: var(--brand); color: var(--brand-strong); box-shadow: var(--shadow); }

/* News articles */
.news-article { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.news-article:last-child { border-bottom: 0; }
.news-article h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 1rem; }
.news-article p { color: #3b4756; }
.news-article .news-meta { justify-content: flex-start; gap: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .5rem; color: #3b4756; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand-strong); font-size: 1.15rem; line-height: 1.5; }
.card-news h3 a { color: inherit; text-decoration: none; }
.card-news h3 a:hover { color: var(--brand-strong); }

.video-frame { border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-deep); }
.video-frame iframe { border: 0; }
.video-title { font-weight: 700; font-size: .95rem; margin: .5rem 0 0; }

.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.5rem; }
.side-card { background: var(--surface-alt); border-radius: var(--radius); padding: 1.5rem; }
.side-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.training-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.training-list li { background: #fff; border-radius: var(--radius-sm); padding: .85rem 1rem; border-left: 3px solid var(--brand); }
.training-list strong { display: block; font-size: .95rem; }
.training-list span { font-size: .875rem; color: var(--muted); }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.side-links a { color: var(--ink); text-decoration: none; }
.side-links a:hover { color: var(--brand-strong); }

/* Content blocks (projects / software) */
.content-block { scroll-margin-top: calc(var(--header-h) + 1rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.content-block:last-child { border-bottom: 0; margin-bottom: 0; }
.content-block > header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.content-block p { color: #3b4756; }
.content-block h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.meta-list li { font-size: .85rem; font-weight: 600; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; color: var(--muted); }
.meta-list li i { color: var(--brand-strong); margin-right: .3rem; }
.poster { border-radius: var(--radius); box-shadow: var(--shadow); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.logo-row img { max-height: 64px; width: auto; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt); aspect-ratio: 4 / 3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after { content: "\F62C"; font-family: "bootstrap-icons"; position: absolute; right: .5rem; bottom: .5rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 26, 36, .7); color: #fff; font-size: .9rem; opacity: 0; transition: opacity .2s ease; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-contain .gallery-item img { object-fit: contain; background: #fff; }

.timeline { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-left: 2.75rem; margin-bottom: 2.25rem; }
.timeline > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline-date { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-strong); }
.timeline h3 { margin: .25rem 0 .5rem; }
.timeline p { max-width: 75ch; }
/* Timeline photos: large, uncropped, up to 2 per row */
.timeline .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; max-width: 980px; }
.timeline .gallery-item { aspect-ratio: auto; background: var(--surface-alt); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.timeline .gallery-item img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.timeline .gallery-item:hover img { transform: scale(1.02); }

.lightbox-content { background: transparent; border: 0; align-items: center; }
.lightbox-img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--radius-sm); background: #fff; }
.lightbox-caption { color: #fff; margin: .75rem 0 0; text-align: center; font-weight: 600; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; opacity: .9; }
.modal-backdrop.show { opacity: .85; }

/* Software */
.product-head { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; }
.product-cover { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
@media (max-width: 767.98px) { .product-head { grid-template-columns: 1fr; } .product-cover { max-width: 160px; } }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.price-box { display: inline-flex; flex-wrap: wrap; gap: .5rem 1.25rem; background: var(--brand-soft); border-radius: var(--radius-sm); padding: .65rem 1rem; font-size: .92rem; }
.price-box strong { color: var(--navy); }
.badge-pending { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface-alt); border: 1px dashed #c6d0db; border-radius: 999px; padding: .45rem .9rem; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.game-card h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.game-card p { font-size: .93rem; color: var(--muted); margin-bottom: .75rem; }
.game-card .gallery { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); margin: auto 0 0; }

/* Courses */
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.course-card h2 { font-size: 1.15rem; margin-bottom: 1rem; flex-grow: 1; }
.course-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.25rem; text-align: center; }
.course-facts div { background: var(--surface-alt); border-radius: var(--radius-sm); padding: .6rem .25rem; }
.course-facts dt { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.course-facts dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.course-facts small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.note-box { background: var(--surface-alt); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--muted); font-size: .95rem; }

.hero-poster { display: block; max-height: 520px; width: auto; margin: 0 auto; transform: rotate(1.5deg); }
@media (max-width: 991.98px) { .hero-poster { max-height: 380px; transform: none; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card-feature, .card-service, .card-news, .edu-card, .course-card, .gallery-item img { transition: none; }
}

@media (max-width: 575.98px) {
    .hero-stats { gap: 1.5rem; }
    .code-window { transform: none; }
    .section-head { text-align: left; }
}
