/* Ganzo Surgalt — нэмэлт загвар
   Үндсэн загвар site.css. Энд зөвхөн сургалтын сайтын хэсгүүд. */

/* ---------- Толгой хэсэг ---------- */
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-academy { color: var(--teal-ink); }
.footer-mark { width: 52px; height: 52px; }
@media (max-width: 380px) { .brand-mark { width: 34px; height: 34px; } }
/* Гурван өнгийн зураасын оронд нэг ногоон зураас (хувийн брэнд) */
.academy .tribar i { width: 26px; background: var(--teal); }
.academy .tribar i:nth-child(n+2) { display: none; }
.academy .eyebrow-on-dark .tribar i { background: var(--teal-light); }

/* ---------- Нүүрний баннер ---------- */
.ac-title { white-space: normal; font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.08; }
.ac-topics { padding: clamp(20px, 2.6vw, 28px); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); background: rgb(255 255 255 / .03); }
.ac-topics-h { font: 700 .76rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 14px; }
.ac-topics ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-topics li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .05); }
.ac-topics strong { font-family: var(--f-head); font-size: 1.02rem; color: #fff; }
.ac-topics span { font-size: .88rem; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 420px) { .ac-topics ul { grid-template-columns: 1fr; } }

.section-head-copy { display: grid; gap: 10px; }
.steps-cta { margin-top: 26px; }

/* ---------- Сургалтын карт ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.course-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.course-card:hover { border-color: #b9c4d8; box-shadow: var(--shadow); }
.course-grid.is-muted .course-card { opacity: .78; }
.course-cover { display: block; aspect-ratio: 16 / 9; background: var(--navy); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-band { position: relative; display: flex; align-items: center; min-height: 62px; padding: 15px 20px; overflow: hidden;
  background:
    radial-gradient(circle at 94% 0%, rgb(96 211 218 / .32), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.course-band::after { content: ""; position: absolute; right: -30px; top: -44px; width: 112px; height: 112px; border-radius: 50%; border: 18px solid rgb(255 255 255 / .05); pointer-events: none; }
.course-band .course-tags { position: relative; z-index: 1; }
.course-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--navy); font: 600 .76rem/1.4 var(--f-head); white-space: nowrap; }
.tag-open { background: #e6f6f7; border-color: #b6e3e6; color: var(--teal-ink); }
.tag-soon { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.tag-closed { background: #f3f4f7; border-color: #dfe2e8; color: var(--muted); }
.tag-dark { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .28); color: #e6ecf8; }
.course-hero .tag-open, .course-band .tag-open { background: rgb(96 211 218 / .14); border-color: rgb(96 211 218 / .5); color: var(--teal-light); }
.course-hero .tag-soon, .course-band .tag-soon { background: rgb(216 196 143 / .14); border-color: rgb(216 196 143 / .5); color: var(--gold-line); }
.course-hero .tag-closed, .course-band .tag-closed { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .28); color: var(--on-dark-muted); }
.course-band .tag-format { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .28); color: #e6ecf8; }
.course-title { font-size: 1.14rem; line-height: 1.35; }
.course-title a { color: var(--navy); text-decoration: none; }
.course-title a:hover { color: var(--teal-ink); }
.course-summary { color: var(--muted); font-size: .95rem; }
.course-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 6px; }
.course-facts div { display: grid; }
.course-facts dt { font-size: .78rem; color: var(--muted); }
.course-facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.course-price { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; }

.soon-box { display: grid; gap: 10px; justify-items: start; padding: clamp(24px, 4vw, 36px); border: 1px dashed #c3ccdc; border-radius: var(--radius); background: var(--tint); }
.soon-box p { color: var(--muted); max-width: 60ch; }
.soon-box .soon-title { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.soon-box p:last-child { margin-top: 6px; }
.ac-closed-h { margin: 48px 0 18px; }

/* ---------- Суралцах алхам ---------- */
.learn-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.learn-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.learn-steps strong { font-family: var(--f-head); font-size: 1.05rem; color: var(--navy); }
.learn-steps li > span:last-child { color: var(--muted); font-size: .94rem; }
.learn-num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 .95rem var(--f-head); }
.learn-steps li:last-child .learn-num { background: var(--teal-light); color: var(--navy); }
@media (max-width: 1000px) { .learn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .learn-steps { grid-template-columns: 1fr; } .learn-steps li { padding: 20px; } }

/* ---------- Түгээмэл асуулт ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font: 700 1rem/1.4 var(--f-head); color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%2316264a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--teal-ink); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.ac-ask { margin-top: 28px; }

/* ---------- Сургалтын хуудас ---------- */
.course-hero { background: radial-gradient(circle at 90% 10%, rgb(96 211 218 / .12), transparent 45%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--on-dark); padding-block: clamp(36px, 5vw, 64px); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.course-hero-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.course-hero .crumbs { color: var(--on-dark-muted); }
.course-hero .crumbs a { color: var(--teal-light); }
.course-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.course-hero-summary { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 62ch; }
.course-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 6px; }
.course-hero-facts li { display: grid; gap: 2px; }
.course-hero-facts span { font: 700 .72rem var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); }
.course-hero-facts strong { color: #fff; font-weight: 600; }
.price-card { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .55); }
.price-label { font: 700 .76rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.price-value { font: 800 clamp(1.7rem, 3.4vw, 2.1rem)/1.1 var(--f-head); color: var(--navy); font-variant-numeric: tabular-nums; }
.price-note { font-size: .9rem; color: var(--muted); }
.price-closed { font-size: .92rem; font-weight: 600; color: #8a2a2a; }
.btn-block { width: 100%; }
.price-list { list-style: none; display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.price-list li { position: relative; padding-left: 24px; line-height: 1.45; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.4 3 2.9 6-6.3' fill='none' stroke='%23127c84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 900px) { .course-hero-grid { grid-template-columns: 1fr; } .price-card { max-width: 460px; width: 100%; } }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.course-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.h-sub { font-size: 1.32rem; }
.course-main > .h-sub:not(:first-child) { margin-top: 22px; }
.course-main .yt { border-radius: var(--radius); }
.lesson-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.lesson-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 18px; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint-2); color: var(--navy); font: 700 .85rem var(--f-head); }
.lesson-t { font-weight: 600; line-height: 1.4; }
.lesson-d { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.dot-list { list-style: none; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.course-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.side-card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-card p a, .side-card li a { overflow-wrap: anywhere; }
.side-label { font: 700 .76rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.instructor-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.instructor-name { font: 700 1.08rem var(--f-head); color: var(--navy); }
.instructor-title { font-size: .9rem; color: var(--muted); margin-top: -6px; }
.instructor-bio { font-size: .93rem; }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } .course-side { position: static; } }
@media (max-width: 480px) { .lesson-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; } .lesson-d { grid-column: 2; } }

/* ---------- Суралцах заавар ---------- */
.ac-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.ac-two > * { min-width: 0; }
@media (max-width: 900px) { .ac-two { grid-template-columns: 1fr; } }
.guide-list { list-style: none; counter-reset: g; display: grid; gap: 18px; }
.guide-list li { counter-increment: g; position: relative; display: grid; gap: 3px; padding-left: 46px; }
.guide-list li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .9rem var(--f-head); }
.guide-list strong { font-family: var(--f-head); color: var(--navy); }
.guide-list span { color: var(--muted); }
.ac-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ac-side-stack { display: grid; gap: 18px; }
.ac-side-stack .check-list, .ac-side-stack .dot-list { font-size: .95rem; }

/* ---------- Бүртгэл ---------- */
#r-org { margin-top: 2px; }
.quote-done .hero-actions { margin-top: 4px; }

/* ---------- YouTube товч (толгой хэсэг) ---------- */
.ico { flex: none; }
.hdr-yt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: #c4302b; font: 700 .86rem var(--f-head); text-decoration: none; }
.hdr-yt span { color: var(--navy); }
.hdr-yt:hover { border-color: #c4302b; background: #fff5f5; }
@media (min-width: 1080px) { .header-tools { order: 3; margin-left: 10px; } }
@media (max-width: 480px) { .hdr-yt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hdr-yt { padding: 8px 10px; } }
