/* ============================================================
   Narrow Gate ("НАРИЙН ГАРЦ") — Modern Landing Page
   Scoped under .lp so it never affects other pages / the
   shared template. New class names are all prefixed `lp-`.
   ============================================================ */

.lp {
    --lp-brand: #3f51b5;
    --lp-brand-d: #2c3a91;
    --lp-brand-l: #6573c3;
    --lp-accent: #ff7a59;
    --lp-accent-d: #f4623a;
    --lp-ink: #161b33;
    --lp-body: #5a6072;
    --lp-muted: #8a90a2;
    --lp-line: #e7e9f2;
    --lp-bg: #ffffff;
    --lp-bg-soft: #f6f7fb;
    --lp-shadow: 0 18px 40px -18px rgba(22, 27, 51, .28);
    --lp-shadow-sm: 0 10px 24px -14px rgba(22, 27, 51, .26);
    --lp-radius: 18px;
    --lp-radius-sm: 12px;

    font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--lp-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp h1, .lp h2, .lp h3, .lp h4, .lp h5 {
    font-family: 'Montserrat', 'Roboto', 'Segoe UI', sans-serif;
    color: var(--lp-ink);
    line-height: 1.18;
    margin: 0;
    letter-spacing: -.01em;
}

.lp p { margin: 0; }
.lp img { max-width: 100%; }

.lp__wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- Section rhythm + headings ---------- */
.lp-section { padding: 92px 0; position: relative; }
.lp-section--soft { background: var(--lp-bg-soft); }

.lp-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.lp-head__eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lp-brand);
    background: rgba(63, 81, 181, .09);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.lp-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.lp-head p { margin-top: 16px; font-size: 17px; color: var(--lp-body); }

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.lp-btn i { font-size: 14px; }
.lp-btn--primary {
    background: linear-gradient(135deg, var(--lp-brand-l), var(--lp-brand));
    color: #fff;
    box-shadow: 0 14px 26px -12px rgba(63, 81, 181, .7);
}
.lp-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(63, 81, 181, .8); color: #fff; }
.lp-btn--accent {
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-d));
    color: #fff;
    box-shadow: 0 14px 26px -12px rgba(244, 98, 58, .65);
}
.lp-btn--accent:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 20px 34px -12px rgba(244, 98, 58, .75); }
.lp-btn--ghost {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(4px);
}
.lp-btn--ghost:hover { background: #fff; color: var(--lp-brand); border-color: #fff; transform: translateY(-3px); }
.lp-btn--outline {
    background: transparent;
    border-color: var(--lp-line);
    color: var(--lp-ink);
}
.lp-btn--outline:hover { border-color: var(--lp-brand); color: var(--lp-brand); transform: translateY(-3px); }

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f1430;
}
.lp-hero__slides { position: absolute; inset: 0; z-index: 0; }
.lp-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 7s ease;
}
.lp-hero__slide.is-active { opacity: 1; transform: scale(1); }
.lp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(20, 25, 64, .92) 0%, rgba(28, 38, 110, .72) 45%, rgba(28, 38, 110, .28) 100%);
}
.lp-hero__wrap { position: relative; z-index: 2; width: 100%; }
.lp-hero__inner { max-width: 640px; padding: 70px 0; color: #fff; }
.lp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.lp-hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 0 4px rgba(255, 122, 89, .3); }
.lp-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.lp-hero h1 .accent {
    background: linear-gradient(120deg, #ffd166, var(--lp-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lp-hero__lead {
    margin-top: 22px;
    font-size: 18.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .9);
    max-width: 540px;
}
.lp-hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* hero controls */
.lp-hero__dots {
    position: absolute;
    left: 0; right: 0; bottom: 40px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.lp-hero__dots button {
    width: 30px; height: 5px;
    border: 0; padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .3s ease, width .3s ease;
}
.lp-hero__dots button.is-active { background: #fff; width: 46px; }

.lp-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.lp-hero__wave svg { width: 100%; height: 70px; display: block; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.lp-stats { position: relative; z-index: 4; margin-top: -54px; }
.lp-stats__card {
    background: #fff;
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.lp-stat { padding: 30px 22px; text-align: center; border-right: 1px solid var(--lp-line); }
.lp-stat:last-child { border-right: 0; }
.lp-stat__num {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--lp-brand);
    line-height: 1;
}
.lp-stat__num span { color: var(--lp-accent); }
.lp-stat__label { margin-top: 8px; font-size: 14px; color: var(--lp-muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.lp-about__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.lp-about__media { position: relative; }
.lp-about__media img {
    width: 100%;
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow);
    display: block;
}
.lp-about__media::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--lp-radius);
    background: linear-gradient(135deg, rgba(63, 81, 181, .16), rgba(255, 122, 89, .14));
    z-index: -1;
}
.lp-about__body h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 18px; }
.lp-about__body p { font-size: 16.5px; margin-bottom: 16px; }
.lp-about__points { list-style: none; margin: 22px 0 30px; padding: 0; }
.lp-about__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
    color: var(--lp-ink);
}
.lp-about__points i {
    color: var(--lp-brand);
    background: rgba(63, 81, 181, .1);
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 13px;
    flex: none;
}

/* ============================================================
   COURSES
   ============================================================ */
.lp-courses__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.lp-course {
    position: relative;
    border-radius: var(--lp-radius);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--lp-shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}
.lp-course:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow); }
.lp-course__img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s ease;
}
.lp-course:hover .lp-course__img { transform: scale(1.07); }
.lp-course::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 48, .92) 8%, rgba(15, 20, 48, .35) 55%, rgba(15, 20, 48, .05) 100%);
}
.lp-course__body { position: relative; z-index: 2; padding: 30px; color: #fff; width: 100%; }
.lp-course__tag {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.lp-course__body h3 { color: #fff; font-size: 23px; font-weight: 700; margin-bottom: 14px; }
.lp-course__meta { list-style: none; padding: 0; margin: 0 0 20px; }
.lp-course__meta li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .88);
    padding: 3px 0;
}
.lp-course__meta i { color: var(--lp-accent); margin-top: 4px; flex: none; }
.lp-course__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    transition: background .25s ease, color .25s ease, gap .25s ease;
}
.lp-course__link:hover { background: #fff; color: var(--lp-brand); gap: 12px; }
.lp-courses__more { text-align: center; margin-top: 46px; }

/* ============================================================
   FEATURES / WHY US
   ============================================================ */
.lp-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-feature {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 32px 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lp-feature:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow); border-color: transparent; }
.lp-feature__icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-brand-l), var(--lp-brand));
    margin-bottom: 22px;
    box-shadow: 0 12px 22px -12px rgba(63, 81, 181, .8);
}
.lp-feature:nth-child(3n+2) .lp-feature__icon { background: linear-gradient(135deg, #ff9a76, var(--lp-accent-d)); box-shadow: 0 12px 22px -12px rgba(244, 98, 58, .7); }
.lp-feature:nth-child(3n) .lp-feature__icon { background: linear-gradient(135deg, #46c9a8, #1f9e87); box-shadow: 0 12px 22px -12px rgba(31, 158, 135, .7); }
.lp-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lp-feature p { font-size: 14.5px; }

/* ============================================================
   TOOLS BAND (dictionary / translation quick links)
   ============================================================ */
.lp-tools__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.lp-tool {
    display: block;
    text-align: center;
    padding: 30px 18px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-sm);
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lp-tool:hover { transform: translateY(-5px); box-shadow: var(--lp-shadow-sm); border-color: transparent; text-decoration: none; }
.lp-tool i {
    font-size: 28px;
    color: var(--lp-brand);
    transition: transform .3s ease;
}
.lp-tool:hover i { transform: scale(1.12); }
.lp-tool span {
    display: block;
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--lp-ink);
}
.lp-tool small { display: block; margin-top: 4px; color: var(--lp-muted); font-size: 12.5px; }

/* ============================================================
   NEWS BAND (latest published news)
   ============================================================ */
.lp-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.lp-news__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    overflow: hidden;
    box-shadow: var(--lp-shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.lp-news__card:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow); border-color: transparent; }
.lp-news__media {
    position: relative;
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--lp-bg-soft);
    overflow: hidden;
}
.lp-news__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,27,51,0) 45%, rgba(22,27,51,.55));
    opacity: .9;
    transition: transform .4s ease;
}
.lp-news__card:hover .lp-news__media { transform: scale(1.04); }
.lp-news__media.is-empty {
    background: linear-gradient(135deg, var(--lp-brand-l), var(--lp-brand));
    display: grid; place-items: center;
}
.lp-news__media.is-empty::after { display: none; }
.lp-news__ph i { font-size: 46px; color: rgba(255, 255, 255, .55); }
.lp-news__date {
    position: absolute;
    left: 14px; bottom: 14px;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(22, 27, 51, .62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12.5px; font-weight: 600;
}
.lp-news__date i { color: var(--lp-accent); }
.lp-news__cat {
    position: absolute;
    left: 14px; top: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
    line-height: 1.5;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.lp-news__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.lp-news__title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.lp-news__title a {
    color: var(--lp-ink);
    text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s ease;
}
.lp-news__title a:hover { color: var(--lp-brand); }
.lp-news__excerpt {
    font-size: 14.5px; color: var(--lp-body); margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-news__foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--lp-line);
}
.lp-news__views { display: inline-flex; align-items: center; gap: 7px; color: var(--lp-muted); font-size: 13px; font-weight: 600; }
.lp-news__views i { color: var(--lp-brand-l); }
.lp-news__link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--lp-brand); font-weight: 700; font-size: 14px; text-decoration: none;
    transition: gap .25s ease;
}
.lp-news__link:hover { gap: 11px; color: var(--lp-brand-d); text-decoration: none; }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.lp-cta { padding: 0 0 96px; }
.lp-cta__inner {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 60px;
    text-align: center;
    background: linear-gradient(130deg, var(--lp-brand-d), var(--lp-brand) 55%, var(--lp-brand-l));
    box-shadow: 0 30px 60px -28px rgba(44, 58, 145, .8);
}
.lp-cta__inner::before,
.lp-cta__inner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.lp-cta__inner::before { width: 320px; height: 320px; top: -140px; right: -90px; }
.lp-cta__inner::after { width: 240px; height: 240px; bottom: -120px; left: -60px; background: rgba(255, 122, 89, .18); }
.lp-cta h2 { position: relative; color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.lp-cta p { position: relative; color: rgba(255, 255, 255, .88); font-size: 17px; margin: 16px auto 32px; max-width: 560px; }
.lp-cta__btns { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .lp-section { padding: 70px 0; }
    .lp-about__grid { grid-template-columns: 1fr; gap: 40px; }
    .lp-about__media::before { inset: 16px -16px -16px 16px; }
    .lp-features__grid { grid-template-columns: repeat(2, 1fr); }
    .lp-tools__grid { grid-template-columns: repeat(2, 1fr); }
    .lp-news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .lp-hero { min-height: 560px; }
    .lp-hero__inner { padding: 50px 0; }
    .lp-stats { margin-top: -36px; }
    .lp-stats__card { grid-template-columns: repeat(2, 1fr); }
    .lp-stat:nth-child(2) { border-right: 0; }
    .lp-stat:nth-child(1), .lp-stat:nth-child(2) { border-bottom: 1px solid var(--lp-line); }
    .lp-courses__grid { grid-template-columns: 1fr; }
    .lp-news__grid { grid-template-columns: 1fr; }
    .lp-cta__inner { padding: 44px 26px; }
}
@media (max-width: 520px) {
    .lp-features__grid, .lp-tools__grid { grid-template-columns: 1fr; }
    .lp-hero__cta .lp-btn, .lp-cta__btns .lp-btn { width: 100%; justify-content: center; }
}
