/* ============================
   Khural.mn — Modern Homepage
   ============================ */

:root {
    --brand: #0b3d91;
    --brand-dark: #072b6a;
    --brand-light: #1a5fb4;
    --accent: #c9a227;
    --accent-warm: #e0b83a;
    --red: #b1354e;
    --green: #1a5f3f;
    --text: #1a1f2e;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f7f8fb;
    --bg-dark: #0a1735;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 4px 14px rgba(15,23,42,.08);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.14);
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
}
.eyebrow.light { color: var(--accent-warm); }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,.85);
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.top-bar i { margin-right: 6px; color: var(--accent-warm); }
.top-bar-right a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: all var(--transition);
}
.top-bar-right a:hover { background: var(--accent); color: var(--bg-dark); }
.lang-switch {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    overflow: hidden;
    margin-left: 8px;
}
.lang-switch button {
    padding: 3px 12px;
    color: rgba(255,255,255,.85);
    font-size: 0.75rem;
    font-weight: 600;
}
.lang-switch button.active { background: var(--accent); color: var(--bg-dark); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand);
    flex-shrink: 0;
}
.logo-mark {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11,61,145,.28);
}
.logo-mark svg { width: 28px; height: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.08em;
}
.logo-sub {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand); background: rgba(11,61,145,.06); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.main-nav .fa-chevron-down { font-size: 0.65rem; opacity: .6; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 240px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    display: block !important;
    border: 1px solid var(--line);
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
    display: block;
    padding: 10px 14px;
    width: 100%;
    border-radius: 6px;
}
.dropdown a:hover { background: var(--bg-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--text);
    background: var(--bg-soft);
    transition: all var(--transition);
}
.icon-btn:hover { background: var(--brand); color: white; }
.menu-toggle { display: none; }

/* Search panel */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.search-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.search-panel form {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 12px 18px;
}
.search-panel .fa-magnifying-glass { color: var(--muted); }
.search-panel input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text);
    font-family: inherit;
}
.close-search {
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--muted);
    transition: all var(--transition);
}
.close-search:hover { background: var(--line); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: clamp(460px, 62vh, 620px);
    overflow: hidden;
}
.hero-slider { height: 100%; position: relative; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    color: white;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left center, rgba(0,0,0,.35), rgba(0,0,0,.15));
    pointer-events: none;
}
.hero-content {
    position: relative;
    max-width: 720px;
    z-index: 2;
    animation: heroFade .8s ease both;
}
@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero-content h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
    font-size: 1.05rem;
    max-width: 620px;
    color: rgba(255,255,255,.92);
    margin-bottom: 26px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    transition: all var(--transition);
}
.hero-arrow:hover { background: white; color: var(--brand); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dots button {
    width: 32px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.4);
    transition: all var(--transition);
}
.hero-dots button.active { background: white; width: 48px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-warm); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,162,39,.4); }
.btn-ghost { background: rgba(255,255,255,.15); color: white; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: white; color: var(--brand); }
.btn-ghost.light { color: white; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: white; }
.btn-white { background: white; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Quick services ---------- */
.quick-services {
    position: relative;
    margin-top: -40px;
    z-index: 5;
    padding-bottom: 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    background: var(--bg-soft);
    border-color: var(--line);
    transform: translateY(-3px);
}
.service-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(11,61,145,.1), rgba(26,95,180,.15));
    color: var(--brand);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.service-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.service-info p { font-size: 0.78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 34px;
    gap: 16px;
    flex-wrap: wrap;
}
.see-all, .see-all-sm {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition);
}
.see-all:hover, .see-all-sm:hover { gap: 12px; }
.see-all-sm { font-size: 0.82rem; }

/* ---------- News ---------- */
.news-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 4px;
}
.tab {
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.tab:hover { color: var(--brand); }
.tab.active { background: var(--brand); color: white; }

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
    min-height: 520px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card.featured {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.news-card.featured .news-img { height: 60%; min-height: 300px; }
.news-card.featured h3 { font-size: 1.5rem; }
.news-img {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
}
.news-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,.95);
    color: var(--brand);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.news-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.news-meta i { margin-right: 4px; }
.news-body h3 { margin-bottom: 10px; font-size: 1.08rem; }
.news-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; flex: 1; }
.read-more {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: gap var(--transition);
}
.read-more:hover { gap: 10px; }

/* ---------- Stats ---------- */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-dark), #14276b);
    color: white;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L40 80 M0 40 L80 40' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.6;
}
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat { padding: 8px; }
.stat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(201,162,39,.15);
    color: var(--accent-warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}
.stat-label {
    color: rgba(255,255,255,.75);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------- Two col: chairman + sessions ---------- */
.two-col { background: var(--bg-soft); }
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}
.chairman-card, .sessions-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.chairman-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.chairman-photo {
    position: relative;
    flex-shrink: 0;
}
.photo-placeholder {
    width: 140px; height: 170px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(11,61,145,.25);
}
.chairman-badge {
    position: absolute;
    bottom: -10px; right: -10px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(201,162,39,.35);
}
.chairman-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.chairman-role {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.chairman-info blockquote {
    background: var(--bg-soft);
    padding: 14px 16px 14px 40px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text);
    position: relative;
    margin-bottom: 18px;
}
.chairman-info blockquote i {
    position: absolute;
    left: 14px; top: 14px;
    color: var(--accent);
    font-size: 1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.session-list li {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.session-list li:last-child { border-bottom: none; }
.session-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}
.session-date .day { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.session-date .month { font-size: 0.7rem; opacity: .9; margin-top: 2px; }
.session-info h4 { font-size: 0.98rem; margin-bottom: 4px; }
.session-info p { color: var(--muted); font-size: 0.82rem; }
.session-info i { color: var(--brand); margin-right: 4px; }
.session-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.session-status.upcoming { background: rgba(201,162,39,.15); color: #7a5f10; }
.session-status.scheduled { background: rgba(11,61,145,.1); color: var(--brand); }

/* ---------- Docs table ---------- */
.docs-section { background: white; }
.docs-table-wrap {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.docs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.docs-table th {
    background: var(--bg-soft);
    padding: 16px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.docs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table tbody tr { transition: background var(--transition); }
.docs-table tbody tr:hover { background: var(--bg-soft); }
.docs-table td:first-child { font-weight: 700; color: var(--brand); }
.docs-table td:last-child a {
    display: inline-flex;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    margin-right: 4px;
    transition: all var(--transition);
}
.docs-table td:last-child a:hover { background: var(--brand); color: white; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tag.blue { background: rgba(11,61,145,.1); color: var(--brand); }
.tag.green { background: rgba(26,95,63,.1); color: var(--green); }
.tag.orange { background: rgba(201,130,26,.12); color: #a56c0e; }

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,162,39,.2), transparent 60%);
    border-radius: 50%;
}
.cta-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-text h2 {
    color: white;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.85); max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.75);
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--accent);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 0.9rem;
    transition: all var(--transition);
}
.footer-col ul a:hover { color: var(--accent-warm); padding-left: 4px; }
.footer-col.about .logo { margin-bottom: 16px; }
.footer-col.about .logo-title { color: white; }
.footer-col.about .logo-sub { color: rgba(255,255,255,.6); }
.footer-col.about p { font-size: 0.9rem; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: white;
    transition: all var(--transition);
}
.socials a:hover { background: var(--accent); color: var(--bg-dark); transform: translateY(-3px); }
.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.contact-list i { color: var(--accent-warm); margin-top: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent-warm); }

/* ---------- Scroll top ---------- */
.scroll-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-dark); transform: translateY(-4px); }

/* ============================
   Responsive
   ============================ */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    .news-card.featured { grid-column: 1 / 3; grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 0; right: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 20px 24px;
        box-shadow: -8px 0 30px rgba(0,0,0,.15);
        transition: right var(--transition);
        overflow-y: auto;
        z-index: 200;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { padding: 12px 16px; }
    .main-nav a.active::after { display: none; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        border: none;
    }
    .menu-toggle { display: inline-flex; }
    .two-col-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cta-inner { text-align: center; justify-content: center; }
    .cta-actions { justify-content: center; }
    .top-bar-left span:not(:first-child) { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 50px 0; }
    .services-grid { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
    .service-card { padding: 12px; }
    .service-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card.featured { grid-column: auto; }
    .news-card.featured .news-img { min-height: 200px; }
    .chairman-card { flex-direction: column; align-items: center; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow.prev { left: 12px; }
    .hero-arrow.next { right: 12px; }
    .top-bar-left span:not(:first-child) { display: inline-flex; }
    .top-bar { font-size: 0.75rem; }
    .top-bar-left, .top-bar-right { gap: 10px; }
    .stats-grid { gap: 18px; }
    .stat-num { font-size: 2.2rem; }
}
