/* FarmIsh — asosiy uslublar */
:root {
  --brand: #0e7c66;
  --brand-dark: #0a5f4e;
  --brand-light: #e3f3ef;
  --accent: #f59e0b;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1a2420;
  --muted: #6b7a74;
  --line: #e2e8e5;
  --danger: #d14343;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 35, .06), 0 6px 20px rgba(20, 40, 35, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; }

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff;
  display: inline-grid; place-items: center; font-size: 1.4rem; font-weight: 800; line-height: 1;
}
.logo__text b { color: var(--brand); }
.logo--sm { font-size: 1.05rem; }
.logo--sm .logo__mark { width: 26px; height: 26px; font-size: 1.1rem; }

.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { background: var(--brand-light); color: var(--brand-dark); }
.nav a.nav__cta { background: var(--brand); color: #fff; font-weight: 600; }
.nav a.nav__cta:hover { background: var(--brand-dark); }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.script-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 6px 10px; border-radius: 8px; font: inherit; font-size: .85rem; cursor: pointer;
}
.script-toggle:hover { border-color: var(--brand); color: var(--brand); }
.authbox { display: flex; align-items: center; gap: 8px; }
.authbox .user { font-size: .9rem; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; border: 0; background: none; width: 40px; height: 40px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .authbox .user { display: none; }
}

.demo-banner { background: #fff7e6; color: #7a4b00; border-bottom: 1px solid #ffe2b0; font-size: .85rem; padding: 6px 0; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-light); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg); }
.btn--danger { background: #fdecec; color: var(--danger); }
.btn--sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn--tg { background: #229ED9; color: #fff; }
.btn--tg:hover { background: #1b86b9; }

/* Hero */
.hero { background: linear-gradient(160deg, #0e7c66 0%, #0a5f4e 60%, #084a3d 100%); color: #fff; padding: 56px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn--primary { background: #fff; color: var(--brand-dark); }
.hero .btn--primary:hover { background: #e9f5f1; }
.hero .btn--outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.hero .btn--outline:hover { background: rgba(255,255,255,.12); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 16px; }
.stat__num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: .85rem; opacity: .85; }
@media (max-width: 860px) {
  .hero { padding: 36px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .stat__num { font-size: 1.4rem; }
}

/* Search bar */
.searchbar {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 10px;
  margin-top: -28px; position: relative; z-index: 2;
}
@media (max-width: 860px) { .searchbar { grid-template-columns: 1fr; margin-top: 16px; } }

/* Sections */
.section { padding: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cfdcd7; }
.card__title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.card__title a { color: inherit; }
.card__sub { color: var(--muted); font-size: .92rem; }
.card__salary { font-weight: 700; color: var(--brand-dark); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag--brand { background: var(--brand-light); color: var(--brand-dark); border-color: transparent; }
.tag--accent { background: #fff3dc; color: #8a5a00; border-color: transparent; }
.tag--hot { background: #fdecec; color: var(--danger); border-color: transparent; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; font-weight: 800; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Two-side CTA */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__box { border-radius: var(--radius); padding: 28px; color: #fff; }
.split__box--a { background: var(--brand); }
.split__box--b { background: #1f2937; }
.split__box h3 { color: #fff; font-size: 1.3rem; }
.split__box p { opacity: .9; }
.split__box .btn { background: #fff; color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Page layout */
.page { padding: 28px 0 48px; }
.page__head { margin-bottom: 20px; }
.page__head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.page__head p { color: var(--muted); margin: 0; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 80px; }
.sidebar h3 { font-size: 1rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.sidebar h3 .chev { display: none; font-size: .8rem; color: var(--muted); transition: transform .15s; }
@media (max-width: 860px) {
  .sidebar { position: static; padding: 12px 16px; }
  .sidebar h3 { margin: 0; cursor: pointer; user-select: none; }
  .sidebar h3 .chev { display: inline; }
  .sidebar form { display: none; margin-top: 12px; }
  .sidebar.open form { display: grid; }
  .sidebar.open h3 .chev { transform: rotate(180deg); }
}
.results__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.form--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 720px; }
.form--narrow { max-width: 440px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--danger); }
.field .hint { font-size: .8rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--text); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14,124,102,.35); border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form__error { color: var(--danger); font-size: .9rem; }
.divider { text-align: center; color: var(--muted); font-size: .85rem; position: relative; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 0; }
.divider span { background: var(--surface); padding: 0 10px; position: relative; z-index: 1; }

/* Detail */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.detail__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.detail__company { color: var(--muted); font-size: 1.05rem; }
.detail__salary { font-size: 1.3rem; font-weight: 800; color: var(--brand-dark); margin: 10px 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.prose { white-space: pre-wrap; line-height: 1.65; }
.contact-list { display: grid; gap: 10px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* Resume card */
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.rcard__name { font-weight: 700; font-size: 1.05rem; }
.rcard__line { color: var(--muted); font-size: .92rem; }
.rcard__about { font-size: .92rem; margin-top: 6px; color: var(--text); }
.rcard__right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 600px) { .rcard { grid-template-columns: 1fr; } .rcard__right { align-items: flex-start; text-align: left; } }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.table th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }

/* Misc */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty__icon { font-size: 2rem; margin-bottom: 8px; }
.notice { background: var(--brand-light); color: var(--brand-dark); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.notice--warn { background: #fff7e6; color: #7a4b00; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--on { color: var(--ok); }
.status--off { color: var(--muted); }
.loader { display: grid; place-items: center; padding: 40px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #1a2420; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }
.success-box { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; margin: 0 auto; }
.success-box__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.footer__tag { margin: 8px 0 0; }
.footer__links { display: grid; gap: 6px; }
.footer__links a { color: var(--text); }
.footer__contact { display: grid; gap: 6px; text-align: right; }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr; } .footer__contact { text-align: left; } }
