/* ===== Tokens (Figma: japan-center.edu.mn) ===== */
:root {
    --blue: #035ba5;
    --yellow: #ffcd15;
    --bg: #f6f6f6;
    --grey-200: #e4e4e4;
    --purple: #b190b6;
    --grad-a: #667eea;
    --grad-b: #764ba2;
    --gradient: linear-gradient(90deg, var(--grad-a), var(--grad-b));
    --black-80: rgba(0, 0, 0, .8);
    --black-70: rgba(0, 0, 0, .7);
    --black-50: rgba(0, 0, 0, .5);
    --black-40: rgba(0, 0, 0, .4);
    --black-10: rgba(0, 0, 0, .1);
    --black-5: rgba(0, 0, 0, .05);
    --radius-l: 16px;
    --radius-xl: 24px;
    --shadow: 8px 8px 20px rgba(13, 39, 80, .06);
    --container: 1620px;
    --gutter: 150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Roboto", system-ui, sans-serif;
    color: var(--black-80);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Figma icon-wrapper: 24px дүрсийг 14px-д багтаана (stroke 2 → харьцаагаараа) */
.icon {
    width: 14px; height: 14px; flex: none; display: block;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
    font-size: 18px; font-weight: 500; line-height: 1.32; color: #fff;
    transition: opacity .2s, box-shadow .2s, filter .2s, background-color .2s, color .2s;
}
.btn--gradient { background: var(--gradient); }
.btn--gradient:hover { opacity: .8; }                 /* Figma: Primary Medium → Hover opacity 80% */
.btn--sm { font-size: 16px; padding: 10px 20px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 246, 246, .9);
    backdrop-filter: blur(8px);
    transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--black-5), 0 6px 20px rgba(0, 0, 0, .04); }
.header__inner { display: flex; align-items: center; height: 100px; padding-top: 20px; padding-bottom: 20px; }

/* Лого — Figma: 60px icon, gap 16 */
.brand { display: flex; align-items: center; gap: 16px; flex: 1 0 0; min-width: 0; }
.brand img { width: 60px; height: 60px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 4px; font-family: "Roboto Condensed", sans-serif; text-transform: uppercase; white-space: nowrap; }
.brand__text strong { color: var(--blue); font-size: 24px; font-weight: 700; line-height: 1; }
.brand__text small { color: rgba(0, 0, 0, .6); font-size: 12px; line-height: 1; letter-spacing: -.12px; }

/* Цэс — Figma "tab" (type=Bottom, style=Primary, size=Large) */
.nav { display: flex; align-items: center; justify-content: center; flex: none; }
.nav a {
    display: flex; align-items: center; padding: 8px 0;
}
.nav a span {
    display: flex; align-items: center; height: 40px; padding: 12px 24px;
    border-radius: 999px;
    font-size: 18px; font-weight: 500; line-height: 1; text-transform: uppercase; white-space: nowrap;
    color: rgba(0, 0, 0, .7);
    transition: background-color .15s, color .15s;
}
/* Hover: саарал pill + crimson blue текст */
.nav a:hover span { background: rgba(0, 0, 0, .05); color: #3232b5; }
/* Pressed / идэвхтэй хуудас: цайвар хөх pill (Figma tab state=Pressed) */
.nav a:active span, .nav a.is-active span { background: rgba(0, 0, 255, .05); color: #3232b5; }

/* Баруун хэсэг — gap 12, өндөр 48 */
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 0 0; height: 48px; }
.header__actions .btn { padding: 12px 24px; font-size: 18px; line-height: 1.32; }
.header__actions .btn--gradient:hover { filter: none; box-shadow: none; transform: none; opacity: .7; }
.header__actions .btn .icon { width: 14px; height: 14px; }

/* Хэлний сонголт — Figma "lang" (Default → Hover: shadow, Click: дэлгэгдэнэ 0.3s) */
.lang { position: relative; width: 61px; height: 48px; flex: none; z-index: 5; }
.lang__box {
    position: absolute; top: 0; left: 0; width: 61px; height: 48px;
    padding: 4px; border-radius: 24px; background: #f2f2f2; overflow: hidden;
    transition: height .3s ease-out, box-shadow .1s;
}
.lang__list {
    display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none;
    transform: translateY(calc(var(--sel, 0) * var(--lang-step, -44px)));
    transition: transform .3s ease-out;
}
.lang__item {
    display: flex; align-items: center; justify-content: center;
    width: 53px; height: 40px; padding: 8px 12px; border: 0; border-radius: 999px;
    background: transparent; cursor: pointer;
    font-size: 18px; font-weight: 500; line-height: 1.32; text-transform: uppercase;
    color: rgba(0, 0, 0, .5);
    transition: background-color .2s, color .2s;
}
.lang__item[aria-selected="true"] { background: #fff; border-radius: 24px; color: #000; }
.lang:hover .lang__box, .lang.is-open .lang__box { box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.lang.is-open .lang__box { height: 136px; }
.lang.is-open .lang__list { transform: translateY(0); }
.lang.is-open .lang__item:not([aria-selected="true"]):hover { color: #000; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #000; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ===== Hero (Figma "article fill" — 3 байрлалтай slider) ===== */
.hero { position: relative; margin-top: 4px; }
.hero__stage {
    position: relative;
    aspect-ratio: 1620 / 648;
    --dur: 1s;            /* Figma: Smart animate, 1000ms, Linear */
}
.hero__slide {
    position: absolute; overflow: hidden; background: #000;
    border-radius: var(--radius-xl);
    transition:
            left var(--dur) linear, top var(--dur) linear,
            width var(--dur) linear, height var(--dur) linear,
            opacity var(--dur) linear, filter var(--dur) linear, box-shadow var(--dur) linear;
}
/* Төв (идэвхтэй) — 1620×648 */
.hero__slide.is-center {
    left: 0; top: 0; width: 100%; height: 100%;
    opacity: 1; filter: none; z-index: 3;
    box-shadow: 8px 8px 10px rgba(13, 39, 80, .04);
}
/* Зүүн / баруун жижиг — 600×338, 20% opacity, blur 4 */
.hero__slide.is-left,
.hero__slide.is-right {
    top: 23.92%; width: 37.04%; height: 52.16%;
    opacity: .2; filter: blur(2px); z-index: 1;
}
.hero__slide.is-left { left: 0; }
.hero__slide.is-right { left: 62.96%; }
.hero__slide.is-entering { z-index: 2; }

.hero__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: opacity var(--dur) linear;
}
.hero__img--thumb { opacity: 0; }
.hero__slide:not(.is-center) .hero__img--thumb { opacity: 1; }
/* Төв дээрх бараан градиент */
.hero__slide::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46.6%, #000 100%);
    opacity: 0; transition: opacity var(--dur) linear;
}
.hero__slide.is-center::after { opacity: 1; }

.hero__caption {
    position: absolute; left: 0; bottom: 0; z-index: 1;
    width: min(700px, 100%);
    padding: 24px; display: flex; flex-direction: column; gap: 8px; color: #fff;
    transition: padding var(--dur) linear;
}
.hero__caption h1 {
    font-size: 36px; font-weight: 700; line-height: 1.2;
    transition: font-size var(--dur) linear;
}
.hero__caption p {
    font-size: 14px; line-height: 1.36; color: rgba(255, 255, 255, .7);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: font-size var(--dur) linear;
}
.hero__slide.is-center .hero__caption { padding: 48px; }
.hero__slide.is-center .hero__caption h1 { font-size: 48px; }
.hero__slide.is-center .hero__caption p { font-size: 18px; }

.hero__dots { position: absolute; z-index: 5; right: calc(var(--gutter) + 50px); bottom: 50px; display: flex; gap: 8px; }
.hero__dots button {
    width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--grey-200); transition: width .3s, background .3s;
}
.hero__dots button.is-active { width: 50px; background: var(--yellow); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 72px; padding-bottom: 72px; text-align: center; }
.stat b { display: block; color: var(--blue); font-size: 64px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 18px; color: var(--black-50); }

/* ===== Section titles ===== */
.section-title {
    color: var(--blue); font-size: 36px; font-weight: 800; line-height: 1.4;
    text-transform: uppercase; text-align: center; margin-bottom: 48px;
}
.section-title--normal { font-weight: 700; text-transform: none; margin-bottom: 72px; }
.eyebrow { font-size: 14px; color: var(--black-50); text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.eyebrow--light { color: rgba(255, 255, 255, .6); text-align: left; }

/* ===== Directions ===== */
.directions { background: #fff; padding: 64px 0 48px; }
.cards { display: grid; gap: 24px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }

.card, .course {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-l);
    transition: box-shadow .3s;
}
.card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__title { padding: 20px 24px 24px; font-size: 20px; font-weight: 500; line-height: 1.4; color: var(--black-80); min-height: 104px; transition: color .3s; }
/* Figma "article 1": Hover → сүүдэр 0 0 15 / 15%, гарчиг Blue/100 (Dissolve 300ms) */
.card:hover { box-shadow: 0 0 15px rgba(0, 0, 0, .15); }
.card:hover .card__title { color: var(--blue); }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.partner {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 24px; border-radius: 12px; min-height: 166px; transition: box-shadow .25s;
}
.partner--blue { background: #e7f2fb; }
.partner--purple { background: #f1ebf9; }
.partner__logo { display: grid; place-items: center; width: 136px; height: 118px; background: #fff; border-radius: 8px; }
.partner__logo img { width: 92px; height: auto; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px; background: #fff;
    font-size: 16px; font-weight: 500; line-height: 1; color: var(--blue);
    transition: filter .2s;
}
/* Figma button White/Medium: Hover → drop-shadow 0 0 5 / 15% */
.pill:hover, .partner:hover .pill { filter: drop-shadow(0 0 5px rgba(0, 0, 0, .15)); }

/* ===== Schedule ===== */
.schedule { background: var(--gradient); padding: 48px 0 72px; color: #fff; }
.schedule__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.schedule__title { font-size: 24px; font-weight: 500; line-height: 1.2; }
.days { display: flex; gap: 16px; flex-wrap: wrap; }
.days button {
    padding: 12px 20px; border: 1px solid #fff; border-radius: 999px; cursor: pointer;
    background: transparent; color: #fff; font-size: 16px; font-weight: 500; line-height: 1;
    transition: background-color .2s, color .2s;
}
/* Figma button White/Outline: Hover & Pressed → цагаан дэвсгэр, Blue/100 текст */
.days button:hover, .days button.is-active { background: #fff; color: var(--blue); }

.course { border-radius: 12px; transition: opacity .3s; }   /* Figma "leason": hover өөрчлөлтгүй */
.course__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.course__title { margin-bottom: -4px; font-size: 20px; font-weight: 500; line-height: 1.4; color: var(--black-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course__meta { display: flex; flex-direction: column; font-size: 16px; line-height: 1; }
.course__meta div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--black-10); }
.course__meta dt { color: var(--black-40); }
.course__meta dd { color: var(--black-80); text-align: right; }
.course .btn { padding: 12px 20px; font-size: 16px; line-height: 1; }
.cards--5.is-fading .course { opacity: .3; }

/* ===== Testimonials ===== */
.testimonials { padding: 72px 0 160px; overflow: hidden; }
.testimonials__viewport { overflow: visible; }
.testimonials__track { display: flex; gap: 24px; transition: transform .6s ease; cursor: grab; }
.quote {
    flex: 0 0 calc((100% - 48px) / 3.2);
    background: #fff; border-radius: var(--radius-l); padding: 24px;
    display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow);
}
.quote figcaption { display: flex; align-items: center; gap: 16px; }
.quote img { width: 60px; height: 60px; border-radius: 50%; }
.quote b { font-size: 16px; font-weight: 500; color: #000; }
.quote blockquote { font-size: 14px; line-height: 1.4; color: var(--black-70); }

/* ===== Footer (Figma "footer" device=Desktop, 1920×532) ===== */
.footer { position: relative; background: var(--bg); border-top: 1px solid var(--black-5); overflow: hidden; }
.footer > .container { position: relative; }

/* 1-р мөр: лого + холбоо барих (space-between) */
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 0; flex-wrap: wrap; }
.footer__logos { display: flex; align-items: center; gap: 48px; }
.footer__logos img { width: 60px; height: auto; max-height: 60px; object-fit: contain; }
.footer__logos img:first-child { height: 60px; }
.contact { display: flex; align-items: center; gap: 12px; }
.contact p { margin: 0; font-size: 16px; line-height: 20px; color: rgba(0, 0, 0, .6); white-space: nowrap; }
.contact p small { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1; color: rgba(0, 0, 0, .4); }
.contact p small + * , .contact p small ~ a { display: block; line-height: 1; }
.contact p:has(small) { line-height: 1; font-weight: 500; }
.contact p a { font-weight: 500; color: rgba(0, 0, 0, .6); }
.contact p a:hover { color: var(--blue); }
.contact__icon {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 12px;
    border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; color: var(--blue);
}
.contact__icon .icon { width: 20px; height: 20px; }

/* 2-р мөр: 6 багана (gap 24), дээд мөрнөөс 80px */
.footer__links {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: start;
    padding-top: 80px; padding-bottom: 48px;
}
.col { display: flex; flex-direction: column; gap: 8px; }
.col h4 { margin: 0 0 4px; font-size: 18px; font-weight: 300; line-height: 1.35; color: rgba(0, 0, 0, .4); }
.col a { color: var(--blue); font-size: 16px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col a:hover { text-decoration: underline; }

/* Санал хүсэлт — Figma input (White/Fill) */
.feedback { gap: 8px; }
.field {
    display: flex; align-items: center; gap: 12px; padding: 3px;   /* 40px өндөр (хүрээ дотор) */
    background: #fff; border: 1px solid var(--black-10); border-radius: 999px; color: rgba(0, 0, 0, .5);
    transition: border-color .2s;
}
.field .icon {
    box-sizing: border-box; width: 32px; height: 32px; padding: 8px; flex: none;
    border-radius: 999px; background: rgba(0, 0, 0, .05); color: rgba(0, 0, 0, .5);
}
.field:focus-within { border-color: var(--grad-a); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; height: 30px; font-size: 16px; line-height: 1; color: #000; }
.field input::placeholder { color: rgba(0, 0, 0, .5); }
.field.is-error { border-color: #e5484d; }
.feedback .btn { align-self: flex-start; margin-top: 4px; padding: 12px 20px; font-size: 16px; line-height: 1; }
.feedback__msg { font-size: 14px; color: #1a7f37; margin: 0; }
.feedback__msg:empty { display: none; }

/* 3-р мөр: copyright (72px) */
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--black-5);
    font-size: 16px; line-height: 1; color: rgba(0, 0, 0, .7);
}
.footer__bottom p { margin: 0; }
.socials { display: flex; gap: 16px; }
.socials a { display: flex; }
.socials svg { width: 24px; height: 24px; transition: transform .2s; }
.socials a:hover svg { transform: scale(1.15); }

/* Сакура дэлбээ — petals.css дотор (Figma-ийн яг keyframe-ууд) */
.header__inner, .footer > .container { position: relative; z-index: 1; }

/* Floating chat */
.chat-fab {
    position: fixed; right: 24px; bottom: 50%; z-index: 40;
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 999px 999px 0 999px; color: #fff;
    background: linear-gradient(180deg, var(--grad-a), var(--grad-b));
    box-shadow: 0 8px 20px rgba(118, 75, 162, .35); transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab .icon { width: 24px; height: 24px; }

/* ===== Нэвтрэх / Бүртгүүлэх цонх ===== */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 40px 16px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
    animation: fadeIn .25s ease;
}
.auth {
    position: relative; width: 100%; max-width: 520px; margin: auto;
    background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-xl);
    overflow: hidden; animation: popIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.modal-open { overflow: hidden; }

.auth__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 24px 48px; border-bottom: 1px solid var(--black-10);
}
.auth__head--login { padding-top: 48px; border-bottom-color: var(--black-5); }
.auth__head--login .auth__close { margin-top: -24px; margin-right: -24px; }
.auth__eyebrow { font-size: 14px; text-transform: uppercase; color: var(--black-50); }
.auth__title { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--blue); }
.auth__close {
    display: grid; place-items: center; padding: 8px;
    border: 0; border-radius: 6px; background: none; cursor: pointer; transition: background .2s;
}
.auth__close:hover { background: var(--black-5); }
.auth__close svg { width: 32px; height: 32px; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; }

.auth__form { display: flex; flex-direction: column; gap: 24px; padding: 24px 48px 48px; }
.auth__form--dashed { border-bottom: 1px dashed rgba(0, 0, 0, .2); }
.auth__fields { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field__label { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--black-80); }
.auth-field input {
    width: 100%; padding: 12px 24px;
    border: 1px solid var(--black-10); border-radius: 999px; background: #fff;
    font-size: 18px; line-height: 1.36; color: #000; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-field input::placeholder { color: var(--black-50); }
.auth-field input:focus { border-color: var(--grad-a); box-shadow: 0 0 0 3px rgba(102, 126, 234, .15); }
.auth-field input.is-error { border-color: #e5484d; }

.auth__buttons { display: flex; flex-direction: column; gap: 8px; }
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 12px 24px; border-radius: 999px; cursor: pointer;
    font-size: 18px; font-weight: 500; line-height: 1.32;
    transition: filter .2s, box-shadow .2s, background .2s;
}
.auth-btn .icon { width: 14px; height: 14px; }
.auth-btn--primary { border: 0; color: #fff; background: var(--gradient); }
.auth-btn--primary:hover { filter: brightness(1.08); box-shadow: 0 8px 20px rgba(118, 75, 162, .3); }
.auth-btn--outline { border: 1px solid rgba(0, 0, 255, .2); background: #fff; color: #3232b5; }
.auth-btn--outline:hover { background: rgba(50, 50, 181, .05); }
.auth__alt { padding-top: 24px; border-top: 1px dashed rgba(0, 0, 0, .2); }
.auth-btn--dan { gap: 12px; border: 1px solid var(--black-10); background: #fff; color: var(--black-80); font-weight: 400; line-height: 1.36; }
.auth-btn--dan:hover { background: rgba(0, 0, 0, .03); }
.auth-btn--dan img { width: 65px; height: auto; }
.auth__msg { font-size: 14px; min-height: 0; margin-top: -12px; }
.auth__msg:empty { display: none; }
.auth__msg.is-error { color: #e5484d; }
.auth__msg.is-ok { color: #1a7f37; }

@media (max-width: 480px) {
    .modal { padding: 16px 12px; }
    .auth__head { padding: 20px 24px; }
    .auth__head--login { padding-top: 32px; }
    .auth__head--login .auth__close { margin-top: -16px; margin-right: -12px; }
    .auth__title { font-size: 26px; }
    .auth__form { padding: 20px 24px 32px; }
    .auth-field input, .auth-btn { font-size: 16px; }
}

/* ===== Responsive ===== */
@media (max-width: 1600px) {
    :root { --gutter: 64px; }
    .nav a span { padding: 12px 14px; font-size: 16px; }
    .brand img { width: 48px; height: 48px; }
}
@media (max-width: 1280px) {
    .cards--5 { grid-template-columns: repeat(3, 1fr); }
    .footer__links { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; padding-top: 56px; }
    .quote { flex-basis: calc((100% - 24px) / 2.2); }
    .hero__caption { width: min(700px, 100%); }
}
@media (max-width: 1100px) {
    .burger { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
        background: var(--bg); box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav a { padding: 4px 0; border-bottom: 1px solid var(--black-5); }
    .nav a span { width: 100%; padding: 12px 16px; }
    .header__actions { flex: none; }
    .header__inner { justify-content: space-between; }
    .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger.is-open span:nth-child(2) { opacity: 0; }
    .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .footer__logos { width: 100%; }
}
@media (max-width: 768px) {
    :root { --gutter: 16px; }
    .header__inner { height: 72px; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
    .brand { gap: 8px; }
    .brand img { width: 40px; height: 40px; }
    .brand__text strong { font-size: 18px; }
    .brand__text small { font-size: 10px; }
    .header__actions { gap: 4px; }
    .header__actions .btn { padding: 8px 14px; font-size: 14px; }
    .header__actions .btn .icon { display: none; }
    .brand { min-width: 0; }
    .brand__text strong { font-size: 16px; }
    .brand__text small { font-size: 9px; }
    .hero__stage { aspect-ratio: 4 / 3; }
    .hero__slide { border-radius: var(--radius-l); }
    .hero__caption { width: 100%; padding: 12px; }
    .hero__caption h1 { font-size: 14px; }
    .hero__caption p { font-size: 10px; }
    .hero__slide.is-center .hero__caption { padding: 24px 24px 48px; }
    .hero__slide.is-center .hero__caption h1 { font-size: 28px; }
    .hero__slide.is-center .hero__caption p { font-size: 15px; }
    .hero__dots { right: calc(var(--gutter) + 24px); bottom: 24px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; padding-top: 48px; padding-bottom: 48px; }
    .stat b { font-size: 40px; }
    .stat span { font-size: 15px; }
    .section-title { font-size: 26px; margin-bottom: 32px; }
    .section-title--normal { margin-bottom: 40px; }
    .cards--5 { grid-template-columns: 1fr 1fr; gap: 16px; }
    .card__title { font-size: 16px; padding: 16px; min-height: 0; }
    .course__body { padding: 16px; gap: 20px; }
    .course__title { font-size: 17px; }
    .course__meta { font-size: 14px; }
    .btn--block { font-size: 15px; padding: 10px 12px; }
    .partners { grid-template-columns: 1fr; }
    .partner { min-height: 0; }
    .partner__logo { width: 96px; height: 84px; }
    .schedule__head { flex-direction: column; align-items: flex-start; }
    .days { gap: 8px; flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
    .days button { flex: none; padding: 8px 16px; font-size: 14px; }
    .quote { flex-basis: 85%; }
    .testimonials { padding-bottom: 96px; }
    .footer__top { gap: 20px; justify-content: flex-start; }
    .contact p { white-space: normal; }
    .footer__logos { gap: 20px; }
    .footer__logos img, .footer__logos img:first-child { width: 44px; height: auto; }
    .footer__links { grid-template-columns: 1fr 1fr; }
    .col a { white-space: normal; line-height: 1.3; }
    .feedback { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; gap: 16px; font-size: 14px; }
    .chat-fab { bottom: 24px; right: 16px; }
}
@media (max-width: 420px) {
    .cards--5 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero__slide.is-left,.hero__slide.is-right{cursor:pointer}

@media (max-width: 480px) {
    .lang { width: 46px; height: 40px; --lang-step: -36px; }
    .lang__box { width: 46px; height: 40px; }
    .lang.is-open .lang__box { height: 112px; }
    .lang__item { width: 38px; height: 32px; padding: 0; font-size: 14px; }
    .brand img { width: 34px; height: 34px; }
    .brand__text strong { font-size: 14px; }
    .brand__text small { font-size: 8px; letter-spacing: -.2px; }
    .header__actions .btn { padding: 8px 12px; font-size: 13px; }
    .burger { width: 36px; padding: 8px; }
}

/* ===== Breadcrumb (Figma "path") — бүх дэд хуудсанд ===== */
.crumbs { background: #fff; }
.crumbs__inner { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; line-height: 1; }
.crumbs .icon { width: 16px; height: 16px; }
.crumbs__home { display: flex; color: rgba(0, 0, 0, .8); }
.crumbs__home:hover { color: var(--blue); }
.crumbs__sep { display: flex; color: rgba(0, 0, 0, .5); }
.crumbs a { color: rgba(0, 0, 0, .5); white-space: nowrap; }
.crumbs a:hover { color: var(--blue); }
.crumbs__current { color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Олон хэл (i18n.js) ===== */
html[lang="ja"] body { font-family: "Roboto", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
html[lang="ja"] .nav a span { text-transform: none; }

/* ===== Цэс — дэд цэс (Сургалт) — Figma "menu" + tab (type=Left, size=Large) ===== */
.nav__item { position: relative; display: flex; }
.nav__chev { width: 18px; height: 18px; margin-left: 4px; margin-right: -6px; transition: transform .2s; }
.nav__sub {
    position: absolute; top: calc(100% - 4px); left: 50%; z-index: 60;
    display: flex; flex-direction: column; min-width: 228px;
    padding: 4px 0; background: #fff; border-radius: 24px;
    box-shadow: 0 12px 32px rgba(13, 39, 80, .12), 0 0 0 1px rgba(0, 0, 0, .04);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
/* hover-ийн зай тасрахгүй байлгах гүүр */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__sub a { padding: 4px 8px; }
.nav__sub a span {
    width: 100%; height: 40px; padding: 12px 16px;
    text-transform: none; font-size: 18px; font-weight: 500; color: rgba(0, 0, 0, .7);
}
.nav__sub a:hover span { background: rgba(0, 0, 0, .05); color: #3232b5; }
.nav__sub a.is-active span { background: rgba(0, 0, 255, .05); color: #3232b5; }

.nav__item--drop:hover .nav__sub,
.nav__item--drop:focus-within .nav__sub,
.nav__item--drop.is-open .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--drop:hover .nav__chev,
.nav__item--drop.is-open .nav__chev { transform: rotate(180deg); }
.nav__item--drop:hover > .nav__drop span,
.nav__item--drop.is-open > .nav__drop span { background: rgba(0, 0, 0, .05); color: #3232b5; }
.nav__item--drop > .nav__drop.is-active span { background: rgba(0, 0, 255, .05); color: #3232b5; }

@media (max-width: 1600px) {
    .nav__sub a span { padding: 12px 16px; font-size: 16px; }
}
@media (max-width: 1100px) {
    .nav__item { flex-direction: column; border-bottom: 1px solid var(--black-5); }
    .nav__item > .nav__drop { border-bottom: 0; }
    .nav__item > .nav__drop span { justify-content: space-between; }
    .nav__sub {
        position: static; transform: none; min-width: 0; padding: 0 0 8px 16px;
        background: none; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; display: none;
    }
    .nav__sub::before { display: none; }
    .nav__item--drop:hover .nav__sub, .nav__item--drop:focus-within .nav__sub { transform: none; }
    .nav__item--drop.is-open .nav__sub { display: flex; }
    .nav__item--drop:hover:not(.is-open) .nav__chev { transform: none; }
    .nav__sub a { padding: 2px 0; border-bottom: 0; }
    .nav__chev { margin-right: 0; }
}
@media (max-width: 1100px) { .nav { align-items: stretch; } }