:root {
  --green-900: #0f3d25;
  --green-800: #155332;
  --green-700: #1f6f43;
  --green-600: #2a8a55;
  --green-500: #38a169;
  --green-100: #e3f4e9;
  --green-50: #f2faf5;
  --lime: #9be15d;
  --sun: #f5b83d;
  --sun-100: #fdf1d8;
  --red: #c53030;
  --red-100: #fde8e8;
  --blue: #2a6fb0;
  --blue-100: #e3eef9;
  --ink: #1a2a21;
  --ink-2: #4a5a51;
  --ink-3: #7b8a82;
  --line: #e2e8e4;
  --bg: #f7f9f7;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 25, .06), 0 6px 24px rgba(16, 40, 25, .06);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

.demo-banner { background: var(--sun-100); color: #7a5200; font-size: .875rem; text-align: center; padding: 6px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; background: var(--green-700); color: #fff; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--green-800); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--green-800); }
.btn-ghost:hover { background: var(--green-50); }
.btn-sun { background: var(--sun); color: #3d2a00; }
.btn-sun:hover { background: #e8a82a; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #9b2424; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-50); }
.btn-block { width: 100%; }

.stats-bar { margin-top: -60px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.stats-grid > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats-grid > div:last-child { border-right: 0; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--green-800); }
.stat-label { color: var(--ink-3); font-size: .9rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stats-grid > div:nth-child(2) { border-right: 0; } .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 640px; }
.page-head { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff; padding: 44px 0; }
.page-head p { color: #d9efe1; margin: 0; max-width: 720px; }
.breadcrumbs { font-size: .875rem; color: #bfe0cb; margin-bottom: 8px; }
.breadcrumbs a { color: #fff; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-flat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.project-cover { height: 150px; position: relative; display: grid; place-items: center; font-size: 4rem; background-size: cover; background-position: center; }
.project-cover .badge { position: absolute; top: 12px; left: 12px; }
.project-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { margin: 0; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.project-meta span { background: var(--green-50); padding: 3px 10px; border-radius: 999px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .88rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 700; }
.kv > div { display: flex; flex-direction: column; }
.project-footer { margin-top: auto; display: flex; gap: 10px; }
.project-footer .btn { flex: 1; }

.progress { height: 10px; background: var(--green-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); border-radius: 999px; }
.progress.full > span { background: linear-gradient(90deg, #d49a1e, var(--sun)); }
.progress-row { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 6px; color: var(--ink-2); }
.progress-row b { color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-warn { background: var(--sun-100); color: #8a5a00; }
.tone-bad { background: var(--red-100); color: var(--red); }
.tone-info { background: var(--blue-100); color: var(--blue); }
.tone-good { background: var(--green-100); color: var(--green-800); }
.tone-done { background: #ece9f8; color: #4b3a9a; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; background: #fff; padding: 14px; border-radius: 14px; box-shadow: var(--shadow); }
.filters > * { flex: 1 1 180px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label.field small { font-weight: 500; color: var(--ink-3); }
input, select, textarea { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(42,138,85,.15); }
textarea { min-height: 96px; resize: vertical; }
.form-section { border-top: 1px solid var(--line); padding-top: 20px; }
.form-section h3 { color: var(--green-800); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: auto; }
.error-box { background: var(--red-100); color: var(--red); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.info-box { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.warn-box { background: var(--sun-100); color: #7a5200; padding: 12px 16px; border-radius: 12px; font-size: .92rem; }

.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-option { border: 2px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: #fff; text-align: left; font: inherit; color: inherit; }
.role-option:hover { border-color: var(--green-500); }
.role-option.selected { border-color: var(--green-700); background: var(--green-50); }
.role-option .ico { font-size: 1.8rem; }
@media (max-width: 520px) { .role-picker { grid-template-columns: 1fr; } }

.auth-wrap { max-width: 560px; margin: 48px auto; }

/* Steps / how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 10px; background: var(--green-700); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.flow-item { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.flow-item .n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.flow-item.key { border-color: var(--sun); background: var(--sun-100); }
.flow-arrow { text-align: center; color: var(--green-600); line-height: 1; padding: 3px 0; font-size: .9rem; }

.feature { display: flex; gap: 14px; }
.feature .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; font-size: 1.5rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }

.cta { background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta p { color: #d9efe1; margin: 0; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; padding: 28px; } }

/* Project page */
.project-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.sticky { position: sticky; top: 88px; }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; } .sticky { position: static; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; padding: 12px 14px; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--green-800); border-bottom-color: var(--green-700); }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.detail-table th { color: var(--ink-3); font-weight: 600; width: 45%; padding-right: 12px; }
.detail-table td { font-weight: 700; }
.guarantee { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.guarantee .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--green-100); }
.guarantee p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.rating { color: var(--sun); letter-spacing: 1px; }
.timeline { display: flex; flex-direction: column; gap: 18px; }
.tl-item { border-left: 3px solid var(--green-100); padding-left: 18px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--green-600); border: 3px solid #fff; }
.tl-item .when { font-size: .82rem; color: var(--ink-3); }
.tl-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.tl-media img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin-top: 10px; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.status-track { display: flex; gap: 4px; margin: 12px 0 4px; }
.status-track span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.status-track span.on { background: var(--green-600); }
.status-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); gap: 4px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 28px 0 64px; align-items: start; }
.dash-side { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; position: sticky; top: 88px; }
.dash-side .who { padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dash-side .who b { display: block; }
.dash-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.dash-side a:hover { background: var(--green-50); text-decoration: none; }
.dash-side a.active { background: var(--green-100); color: var(--green-900); }
.dash-side .count { margin-left: auto; background: var(--sun); color: #3d2a00; border-radius: 999px; font-size: .75rem; padding: 1px 8px; font-weight: 800; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .dash-side .who { width: 100%; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.kpi .v { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.kpi .l { font-size: .85rem; color: var(--ink-3); }
.kpi.accent { background: var(--green-700); } .kpi.accent .v { color: #fff; } .kpi.accent .l { color: #cfe7d8; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafcfa; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcfa; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .ico { font-size: 2.4rem; }

/* Charts (bir rangli gorizontal ustunlar) */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 110px; gap: 10px; align-items: center; font-size: .85rem; }
.bar-row .track { height: 14px; background: var(--green-50); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--green-600); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .lbl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.col-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.col-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.col-chart .col .fill { background: var(--green-600); border-radius: 4px 4px 0 0; min-height: 2px; }
.col-chart .col:hover .fill { background: var(--green-800); }
.col-labels { display: flex; gap: 6px; font-size: .7rem; color: var(--ink-3); margin-top: 6px; }
.col-labels span { flex: 1; text-align: center; }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .8rem; z-index: 200; white-space: nowrap; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 90px 1fr 80px; } }

/* Modal & toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 30, 18, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; }
.modal-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-3); line-height: 1; }
#toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; max-width: 360px; animation: slidein .2s ease-out; }
.toast.ok { background: var(--green-700); }
.toast.err { background: var(--red); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }
.loader { padding: 80px 16px; text-align: center; color: var(--ink-3); }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe7d8; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; }
.footer-grid a, .footer-grid span { display: block; color: #cfe7d8; margin-bottom: 6px; font-size: .93rem; }
.footer-grid p { font-size: .93rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #9fc4ad; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.img-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.img-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs button { border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.pill-tabs button.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.dash > * { min-width: 0; }
table.data td:first-child { min-width: 180px; }

/* ======================================================================
   Sarlavha: yuqori yashil panel + oq qidiruv paneli (maket asosida)
   ====================================================================== */
:root { --top: #145a3c; --top-dark: #0f4a31; --mauve: #a8969f; --mauve-dark: #97848e; }
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--top); color: #cfe3d7; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; min-height: 32px; gap: 16px; }
.top-nav { display: flex; gap: 0; flex-wrap: nowrap; margin-left: -7px; }
.top-nav a { color: #c8ddd0; padding: 6px 7px; line-height: 20px; white-space: nowrap; }
.top-nav a:hover { color: #fff; text-decoration: none; }
.top-nav a.active { color: #fff; font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.top-mail { color: #c8ddd0; display: inline-flex; align-items: center; gap: 6px; }
.top-mail:hover { color: #fff; text-decoration: none; }
.top-sep { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.top-auth { display: inline-flex; align-items: center; gap: 10px; }
.top-link { color: #c8ddd0; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.top-link:hover { color: #fff; text-decoration: none; }
.avatar.sm { width: 20px; height: 20px; font-size: .62rem; background: rgba(255,255,255,.2); }

/* Til tanlash */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.lang-btn:hover { background: rgba(255,255,255,.16); }
.flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); list-style: none; margin: 0; padding: 6px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); min-width: 230px; z-index: 80; }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); border-radius: 8px; cursor: pointer; text-align: left; }
.lang-menu button:hover { background: var(--green-50); }
.lang-menu button.on { background: var(--green-100); font-weight: 700; color: var(--green-900); }
.lang-menu button svg:last-child:not(.flag svg) { margin-left: auto; color: var(--green-700); }
.lang-menu .flag { width: 26px; height: 18px; }

.mainbar-inner { display: flex; align-items: center; gap: 20px; min-height: 58px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--green-900); flex: none; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--green-600); }
.logo-light { color: #fff; } .logo-light b { color: var(--lime); }
.search { display: flex; align-items: center; background: #f0f2f1; border-radius: 999px; padding: 0 6px 0 18px; width: 260px; height: 40px; }
.search input { border: 0; background: transparent; padding: 0; height: 100%; box-shadow: none !important; font-size: 14px; }
.search button { border: 0; background: none; color: #333; cursor: pointer; padding: 6px 10px; display: grid; place-items: center; }
.mainbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: #222; border-radius: 50%; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: #f0f2f1; text-decoration: none; }
.dot-count { position: absolute; top: 3px; right: 2px; background: #e03e3e; color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.btn-contact { background: var(--top); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 2px; white-space: nowrap; }
.btn-contact:hover { background: var(--top-dark); text-decoration: none; }
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--green-900); padding: 4px 8px; }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px 0 14px; }
.mobile-menu a { display: block; padding: 10px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid #f1f3f2; }
.mobile-menu a.active { color: var(--green-700); }
.mobile-auth { display: flex; gap: 16px; padding-top: 12px; }
.mobile-auth .top-link { color: var(--green-800); font-weight: 700; }
.mobile-auth .avatar.sm { background: var(--green-700); color: #fff; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }

@media (max-width: 1180px) {
  .top-nav { display: none; }
  .top-right { margin-left: 0; width: 100%; justify-content: flex-end; }
  .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  .top-mail span, .top-mail + .top-sep { display: none; }
  .top-mail { display: none; }
  .lang-name { display: none; }
  .search { display: none; }
  .btn-contact { padding: 9px 12px; font-size: 13px; }
  .top-right { justify-content: space-between; }
  .top-right > .top-sep { display: none; }
}
@media (max-width: 420px) {
  .btn-contact { display: none; }
}

/* Bildirishnomalar */
.notif-pop { position: absolute; right: 0; top: calc(100% + 4px); width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: 14px; box-shadow: 0 14px 44px rgba(0,0,0,.2); z-index: 90; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-list.full { max-height: none; padding: 0; }
.notif { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid #f1f3f2; color: var(--ink); font-size: .9rem; }
.notif:hover { background: #fafcfa; text-decoration: none; }
.notif.unread { background: var(--green-50); border-left: 3px solid var(--green-600); }
.notif span { color: var(--ink-2); }
.notif small { color: var(--ink-3); font-size: .78rem; }
.notif-all { display: block; text-align: center; padding: 10px; font-weight: 700; font-size: .9rem; }
.link-btn { background: none; border: 0; color: var(--green-700); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; text-decoration: underline; }
.loader.small { padding: 20px; }

/* ======================================================================
   Bosh sahifa: surat fonidagi hero (maket asosida)
   ====================================================================== */
.hero {
  --hero: url("https://images.unsplash.com/photo-1488459716781-31db52582fe9?auto=format&fit=crop&w=1920&q=70");
  position: relative; color: #fff; min-height: 540px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(rgba(10, 20, 14, .45), rgba(10, 20, 14, .5)), var(--hero) center / cover no-repeat, linear-gradient(135deg, #2d5a2e, #6b7f3a 45%, #b5562b);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 44% 100%, 0 100%);
  padding: 60px 0 110px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #222; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 400; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.hero-pill:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pill-dot { width: 12px; height: 12px; border-radius: 50%; background: #1f9d3a; }
.pill-link { color: var(--top); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.hero-title { font-family: "Open Sans", sans-serif; font-weight: 300; font-size: clamp(3rem, 8vw, 5rem); letter-spacing: -.01em; margin: 26px 0 6px; line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: #eef3ef; margin: 0 0 40px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hbtn { display: inline-block; padding: 12px 24px; font-weight: 600; font-size: 15px; border-radius: 2px; }
.hbtn:hover { text-decoration: none; }
.hbtn-light { background: #fff; color: #1a2a21; }
.hbtn-light:hover { background: #eef2ef; }
.hbtn-mauve { background: var(--mauve); color: #fff; }
.hbtn-mauve:hover { background: var(--mauve-dark); }
@media (max-width: 640px) { .hero { min-height: 460px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); } .hero-pill { font-size: 13px; padding: 8px 14px; } }

.triad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.triad-card { background: var(--bg); border-radius: 16px; padding: 26px; border: 1px solid var(--line); }
.triad-card .ico { font-size: 2rem; margin-bottom: 8px; }
.triad-card p { color: var(--ink-2); font-size: .94rem; }
.triad-card a { font-weight: 700; }
@media (max-width: 800px) { .triad-grid { grid-template-columns: 1fr; } }
.steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Yangiliklar */
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.news-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.news-img { height: 170px; background: var(--green-100) center / cover no-repeat; }
.news-img-empty { display: grid; place-items: center; font-size: 3rem; }
.news-body { padding: 16px 18px 20px; }
.news-body h3 { margin: 6px 0; }
.news-body p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.article { font-size: 1.02rem; line-height: 1.75; }
.article-img { width: 100%; border-radius: 12px; margin-bottom: 18px; max-height: 420px; object-fit: cover; }
.project-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; cursor: zoom-in; }
.contact-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
ul.cols-2 { columns: 2; gap: 24px; margin: 0; padding-left: 18px; }
@media (max-width: 520px) { ul.cols-2 { columns: 1; } }

/* Shartnomalar */
.contract-card { border-left: 4px solid var(--green-600); }
.contract-steps { display: grid; gap: 12px; }
.cstep { display: flex; gap: 12px; align-items: flex-start; }
.cstep > div { display: flex; flex-direction: column; gap: 6px; }
.cstep .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.steps-list { margin: 8px 0 0; padding-left: 20px; }
.file-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; }
.upload-btn.disabled { opacity: .6; pointer-events: none; }

/* To'lov usullari */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.pay-method { border: 2px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; position: relative; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.pay-method.off { opacity: .55; cursor: not-allowed; }
.pm-logo { font-weight: 800; font-size: 1.05rem; }
.pm-payme { color: #0fbcc4; }
.pm-click { color: #0073ff; }
.pm-uzum { color: #7000ff; }
.pm-bank { color: var(--green-800); }
.pm-test { color: #8a5a00; }
.pay-status { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-preview { height: 160px; border-radius: 12px; background: #ccc center / cover; position: relative; }
.hero-preview span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 6px; }
.mb-1 { margin-bottom: .5rem; }
.footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1.2fr; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-logos { letter-spacing: .02em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.dash > * { min-width: 0; }
table.data td:first-child { min-width: 160px; }
.cstep > div { align-items: flex-start; }
@media (max-width: 1340px) { .top-mail span { display: none; } }
