/* PakWork – mobile-first styles */
:root {
  --green: #15803d; --green-d: #0b3d2e; --green-l: #dcfce7; --navy: #0a2a35;
  --blue: #2563eb; --amber: #f59e0b; --red: #dc2626;
  --bg: #f4f7f5; --card: #fff; --ink: #11221b; --muted: #5a6b63; --line: #e2e9e5;
  --radius: 14px; --shadow: 0 2px 10px rgba(11, 61, 46, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 640px; } .mid { max-width: 860px; }
:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green-d); text-decoration: none !important; }
.brand span { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; display: flex; flex-direction: column; }
.brand b { color: var(--green); font-weight: 800; display: inline; }
.brand span { display: block; }
.brand small { display: block; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
.brand-light { color: #fff; } .brand-light b { color: #86efac; }
.menu-btn { background: var(--green-l); color: var(--green-d); border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: .95rem; }
.menu { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 8px; }
.menu.open { display: flex; }
.menu > a { padding: 10px 6px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.menu > a.on { color: var(--green); }
.menu-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; }
.link-quiet { color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu { display: flex !important; flex-direction: row; width: auto; align-items: center; gap: 22px; padding: 0; }
  .menu > a { border: 0; padding: 6px 0; border-bottom: 3px solid transparent; }
  .menu > a.on { border-bottom-color: var(--green); }
  .menu-actions { padding: 0; margin-left: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; min-height: 44px; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: #166534; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd9d4; } .btn-ghost:hover { border-color: var(--green); }
.btn-blue { background: var(--blue); color: #fff; padding: 8px 12px; min-height: 38px; font-size: .9rem; width: 100%; }
.btn-danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .88rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(135deg, #0a2a35 0%, #0b3d2e 70%); color: #fff; position: relative; overflow: hidden; }
.hero-in { display: grid; gap: 28px; padding-block: 36px 90px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: #4ade80; display: block; }
.hero p.lead { color: #d1e7dd; font-size: 1.08rem; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.hero .btn-ghost { border-color: transparent; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: #d1e7dd; padding: 0; list-style: none; margin: 0; }
.trust-row li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #fff; font-size: .75rem; font-weight: 800; margin-right: 7px; }
.hero-art { position: relative; min-height: 190px; }
.hero-art svg.skyline { position: absolute; right: 0; bottom: 0; width: 100%; max-width: 440px; height: auto; opacity: .95; }
.chips { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.chip { background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.chip i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.slogan { position: absolute; right: 8px; top: 0; transform: rotate(-6deg); background: rgba(21,128,61,.85); padding: 8px 16px; border-radius: 4px; font-weight: 800; font-size: 1.15rem; line-height: 1.1; text-align: center; display: none; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.15fr 1fr; padding-block: 56px 110px; }
  .hero-art { min-height: 320px; } .slogan { display: block; }
  .chips { grid-template-columns: 1fr; max-width: 230px; }
}

/* Search bar overlapping hero */
.searchbar { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(11,61,46,.18); padding: 10px; display: grid; gap: 8px; margin-top: -64px; position: relative; z-index: 2; }
.searchbar input, .searchbar select { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; min-height: 48px; width: 100%; background: #fff; }
@media (min-width: 760px) { .searchbar { grid-template-columns: 1fr 240px auto; } }

/* Category strip */
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cat { flex: 0 0 auto; min-width: 108px; text-align: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; font-size: .86rem; font-weight: 600; text-decoration: none !important; }
.cat:hover { border-color: var(--green); box-shadow: var(--shadow); }
.cat .ic { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 12px; font-size: 1.4rem; }

/* Home columns */
.home-grid { display: grid; gap: 18px; margin-block: 14px 40px; }
@media (min-width: 1000px) { .home-grid { grid-template-columns: 1.1fr 1.3fr .9fr; align-items: start; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; } .panel-head a { font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* Job rows */
.job-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; color: inherit; text-decoration: none !important; }
.job-row:first-of-type { border-top: 0; }
.job-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.job-main { flex: 1; min-width: 0; }
.job-main b { display: block; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.job-meta { color: var(--muted); font-size: .82rem; }
.job-side { text-align: right; flex: 0 0 auto; }
.job-side strong { display: block; font-size: .95rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--green-l); color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; } .badge.bad { background: #fee2e2; color: #991b1b; } .badge.info { background: #dbeafe; color: #1e40af; } .badge.gray { background: #e5e7eb; color: #374151; }

/* Freelancer cards */
.fl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fl-grid.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fl-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: #fff; position: relative; min-width: 0; }
.fl-card .online { position: absolute; top: 8px; right: 8px; font-size: .7rem; color: var(--green); font-weight: 700; }
.fl-card .online::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 4px; }
.fl-card b { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.fl-card .sub { font-size: .78rem; color: var(--muted); }
.fl-card .rate { font-size: .85rem; margin: 6px 0 10px; font-weight: 600; }
.star { color: var(--amber); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: 0 0 auto; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.steps .n { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.steps b { display: block; } .steps span { color: var(--muted); font-size: .88rem; }
.cta-join { display: flex; justify-content: center; margin-top: 14px; }

/* Forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .94rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=file], .form select, .form textarea {
  width: 100%; border: 1.5px solid #cfd9d4; border-radius: 10px; padding: 11px 13px; font: inherit; background: #fff; min-height: 46px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #bbf7d0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: 5px; }
.form .help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form button { margin-top: 18px; }
.row2 { display: grid; gap: 0 14px; } @media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.choice { display: grid; gap: 10px; margin-top: 6px; } @media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label { margin: 0; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; }
.choice label:has(input:checked) { border-color: var(--green); background: #f0fdf4; }
.choice label:has(input:focus-visible) { outline: 3px solid #86efac; }
.choice b { display: block; font-size: 1.02rem; } .choice span { font-weight: 400; color: var(--muted); font-size: .88rem; }

.notice { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-weight: 500; }
.notice.ok { background: #dcfce7; color: #14532d; } .notice.err { background: #fee2e2; color: #7f1d1d; }
.notice.warn { background: #fef3c7; color: #78350f; }

/* Pages */
.page { padding-block: 26px 48px; }
.page-head { margin-bottom: 18px; }
.filters { display: grid; gap: 8px; margin-bottom: 16px; } @media (min-width: 760px) { .filters { grid-template-columns: 1fr 220px 140px auto; } }
.filters input, .filters select { border: 1.5px solid #cfd9d4; border-radius: 10px; padding: 11px 13px; font: inherit; min-height: 46px; width: 100%; background: #fff; }
.list { display: grid; gap: 10px; }
.list .job-row { background: #fff; border: 1px solid var(--line) !important; border-radius: 12px; padding: 14px; }
.two-col { display: grid; gap: 18px; } @media (min-width: 900px) { .two-col { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tag { background: #eef4f1; border-radius: 99px; padding: 3px 11px; font-size: .82rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 20px; } @media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .stat b { display: block; font-size: 1.5rem; } .stat span { color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; } .tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; } .tabs a.on { background: var(--green); color: #fff; border-color: var(--green); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: #f1f6f3; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.chat { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 14px; background: #eef4f1; overflow-wrap: anywhere; white-space: pre-line; } .bubble.me { background: var(--green); color: #fff; margin-left: auto; }
.bubble small { display: block; opacity: .7; font-size: .72rem; margin-top: 2px; }
.pay-box { background: #f0fdf4; border: 1px dashed #86efac; border-radius: 12px; padding: 14px; margin: 10px 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Footer */
.site-footer { background: var(--navy); color: #cfe3da; padding-top: 36px; margin-top: 30px; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; } @media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; } .site-footer a { display: block; color: #cfe3da; padding: 3px 0; font-size: .92rem; } .site-footer p { font-size: .9rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-block: 16px; font-size: .82rem; color: #9fbcaf; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article h2 { margin-top: 1.4em; } .article ul { padding-left: 1.2em; } .article li { margin-bottom: .4em; }
.post-card { display: block; color: inherit; } .post-card h2 { margin-bottom: 6px; }
