:root {
    --jade: #123e35;
    --deep: #0a2824;
    --lime: #d8f36a;
    --ink: #213a33;
    --paper: #f6f8f5;
    --muted: #6e7c75;
    --line: #e0e7df;
    --green: #487549;
    --radius: 18px;
    --wrap: min(1240px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 14px/1.9 Vazir, Tahoma, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.skip {
    position: fixed;
    top: -60px;
    right: 20px;
    z-index: 100;
    background: var(--lime);
    color: var(--deep);
    padding: 10px 18px;
    border-radius: 10px;
}
.skip:focus { top: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.topbar { background: var(--jade); color: #e0e8df; font-size: 11px; }
.topbar-in { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); display: inline-block; margin-left: 8px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header-in { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.brand strong { display: block; font-size: 22px; font-weight: 850; letter-spacing: -.6px; line-height: 1.3; white-space: nowrap; }
.brand em { font-style: normal; font-weight: 600; }
.brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { font-size: 12.5px; font-weight: 650; padding: 8px 0; position: relative; white-space: nowrap; }
.site-header nav a:hover { color: #547f2f; }
.site-header nav a.is-on::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: calc(50% - 9px);
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--jade);
}
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions .menu-btn { display: none; }

.btn, .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: #cbe85a; }
.btn-jade { background: var(--jade); color: #fff; }
.btn-jade:hover { background: #1c5347; }
.btn-line { background: #fff; color: var(--jade); border: 1px solid var(--jade); }
.btn-line:hover { background: var(--jade); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: #eaf0e6; }

.kicker { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.section-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.hero-wrap { padding-top: 26px; }
.hero {
    position: relative;
    min-height: 460px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--deep);
    color: #fff;
}
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(10, 40, 36, .92) 0%, rgba(18, 62, 53, .72) 42%, rgba(10, 40, 36, .28) 100%);
}
.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 58px 42px 48px;
}
.tag { color: var(--lime); font-size: 12px; font-weight: 650; }
.hero h1 { margin: 10px 0 0; font-size: 34px; line-height: 1.55; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 12px 0 0; color: #dce7df; font-size: 14px; max-width: 440px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.hero-link { color: #edf3ea; font-size: 13px; font-weight: 650; }
.hero-link:hover { color: var(--lime); }
.hero-stats { display: flex; gap: 22px; margin-top: 28px; color: #c9d9cf; font-size: 12px; }
.hero-stats b { display: block; color: #fff; font-size: 22px; line-height: 1.3; }
.hero-stats span { border-right: 2px solid rgba(255,255,255,.16); padding-right: 14px; }
.hero-stats span:first-child { border-right: 0; padding-right: 0; }

.search-bar {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 8px 8px 14px;
}
.search-bar input {
    flex: 1;
    border: 0;
    background: transparent;
    min-width: 0;
    outline: none;
    font-size: 13px;
}
.search-bar input:focus { box-shadow: none; }

.catalog { padding: 42px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    border: 0;
    background: transparent;
    color: #536b55;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
}
.chip:hover { background: #e7eddf; }
.chip.is-on { background: var(--jade); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.course-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.course-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.badge { border-radius: 30px; padding: 2px 10px; font-size: 10px; font-weight: 700; background: #eef3ea; color: var(--green); }
.badge-open { background: #e7f6ea; color: #1f7a45; }
.badge-soon { background: #fff6d8; color: #8a6a12; }
.badge-full, .badge-closed { background: #f4f1ee; color: #8a6d62; }
.course-card h3 { margin: 8px 0; font-size: 16px; line-height: 1.8; font-weight: 750; }
.course-card h3 a:hover { color: #507b31; }
.meta { margin: 0; color: var(--muted); font-size: 12px; }
.course-card .btn { margin-top: auto; align-self: flex-start; }
.course-card.is-dim { opacity: .72; }
.empty {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}
.pager { margin-top: 22px; }
.pager nav, .pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 0 8px;
    font-size: 12px;
}

.band {
    background: var(--jade);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 36px;
}
.band .kicker, .band .section-title { color: #fff; }
.band .kicker { color: #a6bfad; letter-spacing: .4px; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.band-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
}
.band-card span { color: var(--lime); font-size: 11px; }
.band-card strong { display: block; margin: 6px 0; font-size: 15px; line-height: 1.8; }
.band-card small { color: #d5e4d8; }

.shortcuts { padding: 10px 0 48px; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}
.shortcut:hover { background: #edf4e3; }
.shortcut b { display: block; font-size: 13px; }
.shortcut span { display: block; color: var(--muted); font-size: 11px; }
.shortcut i { margin-right: auto; color: #809767; font-style: normal; }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-band { background: var(--jade); color: #fff; padding: 22px 0; }
.footer-band-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-band strong { font-size: 18px; }
.footer-band span { display: block; color: #bdcfbf; font-size: 12px; }
.footer-band a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #5f7e62; display: grid; place-items: center; color: #fff;
}
.footer-band a:hover { background: var(--lime); color: var(--jade); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr .9fr; gap: 28px; padding: 34px 0; }
.footer-grid h3 { margin: 0 0 12px; font-size: 14px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 12px; margin: 6px 0; }
.footer-grid a:hover { color: var(--jade); }
.footer-grid .brand { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 18px;
    color: var(--muted);
    font-size: 11px;
}

.page-hero { background: var(--jade); color: #fff; padding: 28px 0 34px; }
.page-hero .kicker { color: #c9d9cf; }
.page-hero h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.6; }
.page { padding: 28px 0 64px; }
.sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}
.split { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.prose { font-size: 14px; color: #3d564c; }
.prose p { margin: 0 0 10px; }
.sidebox { position: sticky; top: 108px; display: grid; gap: 10px; }
.note {
    background: #fff8e1;
    border: 1px solid #f0dfa6;
    color: #6b5a1e;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.9;
}
.status-open { color: #1f7a45; font-weight: 800; }
.status-soon { color: #8a6a12; font-weight: 800; }
.status-full, .status-closed { color: #8a6d62; font-weight: 800; }
.req {
    border: 1px solid var(--line);
    background: #f6f8f5;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.stack { display: grid; gap: 14px; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding-bottom: 18px; }
.steps b {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
    background: #e9efdc; color: var(--jade); font-size: 12px;
}
.steps h3 { margin: 4px 0; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table-wrap th, .table-wrap td { text-align: right; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.table-wrap th { background: #eef3ea; color: #5d7264; font-weight: 700; border-top: 0; }
.ltr { direction: ltr; text-align: right; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--paper); }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; padding: 28px 48px; background: var(--paper); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back { color: #5a725c; font-size: 12px; }
.auth-back:hover { color: var(--jade); }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.auth-box { width: min(440px, 100%); }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #e9f3cc; color: var(--jade);
    border-radius: 30px; font-size: 11px; font-weight: 700; padding: 3px 12px;
}
.auth-box h1 { margin: 12px 0 0; font-size: 28px; line-height: 1.5; }
.auth-box .lead-copy { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eef3ea; border-radius: 100px; padding: 4px; margin-top: 18px; }
.tabs button { display: block; width: 100%; border: 0; background: transparent; border-radius: 100px; min-height: 40px; color: #5d7264; font-weight: 650; }
.tabs button[aria-selected="true"] { background: var(--jade); color: #fff; }
.auth-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none !important; }
.field label, .field > span { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd8c4;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    outline: none;
    color: var(--ink);
    box-shadow: none;
    appearance: none;
}
.field input:not([type="checkbox"]):focus {
    border-color: var(--jade);
    box-shadow: 0 0 0 4px #e9efdc;
    background: #fff;
}
.field input::placeholder { color: #8fa099; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4d6356; }
.check input { width: 16px; height: 16px; accent-color: var(--jade); }
.field-error, .err { color: #b2442d; font-size: 11px; margin: 4px 0 0; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-left: 72px; }
.pass-toggle {
    position: absolute; left: 8px; top: 8px;
    height: 32px; padding: 0 10px;
    border: 0; border-radius: 10px; background: #eef3ea; color: var(--jade); font-size: 11px; font-weight: 700;
}
.js-otp-resend {
    border: 0; background: transparent; color: var(--jade); font-size: 12px; font-weight: 650; padding: 0;
}
.js-otp-resend:disabled { color: var(--muted); }
.auth-aside {
    position: relative;
    background: var(--jade);
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
}
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.auth-aside .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,62,53,.25), rgba(10,40,36,.88) 78%); }
.auth-aside .copy { position: absolute; right: 40px; left: 40px; bottom: 42px; }
.auth-aside .copy span { color: var(--lime); letter-spacing: .6px; font-size: 12px; }
.auth-aside .copy h2 { margin: 8px 0; font-size: 30px; line-height: 1.55; max-width: 440px; }
.auth-aside .copy p { margin: 0; color: #dce7df; max-width: 420px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 11px; }

@media (max-width: 1100px) {
    :root { --wrap: min(1240px, calc(100% - 48px)); }
    .cards, .band-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 420px; }
    .hero h1 { font-size: 28px; }
}
@media (max-width: 850px) {
    .head-actions .menu-btn { display: inline-flex; }
    .site-header nav {
        display: none;
        position: absolute;
        z-index: 20;
        top: 86px;
        right: 16px;
        left: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 16px 18px;
        box-shadow: 0 15px 35px #173d2320;
        flex-wrap: wrap;
        gap: 8px 18px;
    }
    .site-header nav.is-open { display: flex; }
    .head-actions .btn-line { display: none; }
    .split, .shortcut-grid, .auth { grid-template-columns: 1fr; }
    .hero-shade { background: linear-gradient(to top, rgba(10, 40, 36, .92), rgba(10, 40, 36, .35)); }
    .hero-copy { max-width: none; padding: 36px 22px 32px; }
    .auth-aside { display: none; }
    .auth-main { padding: 20px 16px 32px; }
    .facts { grid-template-columns: 1fr; }
    .sidebox { position: static; }
}
@media (max-width: 640px) {
    :root { --wrap: calc(100% - 28px); }
    .cards, .band-grid, .footer-grid { grid-template-columns: 1fr; }
    .brand strong { font-size: 18px; }
    .section-title, .page-hero h1 { font-size: 22px; }
    .hero { min-height: 520px; border-radius: 20px; }
    .hero h1 { font-size: 26px; }
    .footer-bottom { flex-direction: column; }
    .topbar { font-size: 10px; }
}
