:root {
  --green: #21473d;
  --green2: #315e50;
  --ink: #202b28;
  --muted: #727c77;
  --cream: #f4f2ec;
  --line: #e6e7e1;
  --white: #fff;
  --gold: #c4a16a;
  --font: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: var(--font); }
a { color: inherit; }

.header { height: 82px; padding: 0 clamp(22px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #efefeb; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; font: 700 17px/1.15 var(--font); letter-spacing: -.04em; }
.brand-mark { display: block; flex: none; width: 48px !important; height: 48px !important; max-width: 48px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; color: #89918c; font: 500 9px/1 var(--font); letter-spacing: .15em; text-transform: uppercase; }
.mark { width: 40px; height: 40px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--green); color: #f7f3eb; font: 700 19px var(--font); }
.header nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.header nav a { color: #56615c; font: 500 12px var(--font); text-decoration: none; transition: color .2s ease; }
.header nav a:hover { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font: 600 12px var(--font); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px #21473d22; }
.button.primary:hover { background: #183b32; box-shadow: 0 12px 25px #21473d34; }
.button.outline { color: var(--green); border-color: #d9ded9; background: rgba(255,255,255,.76); }
.button.outline:hover { border-color: var(--green); background: #fff; }
.button.small { min-height: 40px; padding: 0 17px; }

.hero { min-height: 620px; padding: 58px clamp(22px, 6vw, 90px); display: grid; grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr); gap: clamp(34px, 5vw, 78px); align-items: center; background: var(--cream); }
.hero-copy { max-width: 600px; }
.kicker { display: flex; align-items: center; gap: 11px; color: #917447; font: 700 9px/1.4 var(--font); letter-spacing: .2em; }
.kicker.dark { color: #657a6e; }
.kicker-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #c4a16a20; }
.hero h1 { margin: 23px 0 18px; max-width: 620px; color: #1e2e29; font: 600 clamp(42px, 5vw, 68px)/1.08 var(--font); letter-spacing: -.065em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { max-width: 490px; color: #69746e; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.trust { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 30px; color: #707b74; font-size: 10px; line-height: 1.6; letter-spacing: .005em; }
.trust i { width: 3px; height: 3px; border-radius: 50%; background: #b59663; }
.hero-art { position: relative; min-height: 0; width: 100%; display: block; overflow: hidden; border-radius: 26px; background: #d7cbb8; box-shadow: 0 28px 70px #22382c1c; }
.hero-image { display: block; width: 100%; height: clamp(420px, 39vw, 560px); object-fit: cover; object-position: center; }
.hero-caption { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid #ffffff82; border-radius: 16px; background: #fffdf9e8; backdrop-filter: blur(14px); box-shadow: 0 8px 24px #1d30201a; }
.hero-caption-mark { color: #9c8055; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero-caption div { display: grid; gap: 3px; }
.hero-caption strong { color: #25332d; font-size: 12px; font-weight: 600; }
.hero-caption div span { color: #79817c; font-size: 10px; }
.caption-arrow { margin-left: auto; color: var(--green); font-size: 17px; }

.section { padding: 90px clamp(22px, 8vw, 122px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section h2 { margin: 12px 0 8px; color: #25322e; font: 600 clamp(29px, 3.4vw, 43px)/1.16 var(--font); letter-spacing: -.06em; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .panel { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: 0 7px 24px #26372e08; }
.card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: #d7ded7; box-shadow: 0 18px 36px #26372e12; }
.card .tag { color: #9c8055; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.card h3, .panel h3 { margin: 13px 0 8px; color: #293631; font: 600 17px/1.35 var(--font); letter-spacing: -.035em; }
.card p, .panel p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 18px; border-top: 1px solid #eef0eb; color: #738078; font-size: 10px; }
.card-meta strong { color: var(--green); font-size: 14px; font-weight: 700; }
.empty { grid-column: 1/-1; padding: 36px; border: 1px dashed #d8ded8; border-radius: 16px; color: var(--muted); text-align: center; }
.how { background: #fafaf8; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 38px; }
.steps article { padding: 20px 0 0; border-top: 1px solid #d8ded8; }
.steps b { color: #ad9062; font: 600 11px var(--font); letter-spacing: .14em; }
.steps h3 { margin: 18px 0 8px; color: #293631; font: 600 17px var(--font); }
.steps p { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.workspace { background: #f7f8f5; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.workspace-grid .panel:first-child { grid-row: span 2; }
label { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; color: #53615a; font-size: 11px; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid #dfe4de; border-radius: 11px; padding: 13px 14px; background: #fff; color: var(--ink); font: 500 12px var(--font); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: #8aab9a; box-shadow: 0 0 0 3px #315e5014; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: #849089 !important; font-size: 10px !important; }
.notice { padding: 13px 15px; border: 1px solid #dceae1; border-radius: 12px; background: #f0f7f2; color: var(--green); font-size: 11px; }
.provider-tools, .notifications, .fulfillment-section { border-top: 1px solid #e9ece7; margin-top: 25px; padding-top: 12px; }
.price-list, .estimate-history, .notification-list { display: grid; gap: 9px; margin: 14px 0; }
.price-item, .notification, .admin-article-row { border-bottom: 1px solid #edf0eb; padding: 11px 0; font-size: 11px; }
.fulfillment-section { grid-column: 1/-1; }
.fulfillment-card { margin: 14px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.fulfillment-head, .milestone-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.milestone-row { padding: 12px 0; border-bottom: 1px solid #edf0eb; font-size: 11px; }
.message-list { display: grid; gap: 8px; margin: 10px 0; }
.message-bubble { padding: 12px 14px; border-radius: 13px; background: #f4f3ee; }
.message-bubble p { margin: 6px 0; }
.message-bubble time, .notification time, .public-review time { color: #8a938e; font-size: 9px; }
.message-form, .review-form, .dispute-form { display: grid; gap: 10px; margin-top: 18px; }
.message-form textarea, .review-form textarea, .dispute-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 500 12px var(--font); }
.review-form select { width: max-content; border: 1px solid var(--line); border-radius: 10px; padding: 9px; font: 500 11px var(--font); }
.admin-reviews, .provider-reviews { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.moderation-card, .public-review { margin: 10px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rating-summary { color: var(--green) !important; font-weight: 700; }
.article-form { display: grid; gap: 10px; }
.article-form input, .article-form textarea, .article-form select { width: 100%; }
.article-list { display: grid; gap: 8px; margin-top: 18px; }
.article-page { max-width: 1000px; margin: 0 auto; }
.article-page article { max-width: 760px; margin: 0 auto; }
.article-page h1 { color: #25322e; font: 600 clamp(34px,5vw,58px)/1.12 var(--font); letter-spacing: -.055em; }
.article-page p { margin: 20px 0; font-size: 15px; line-height: 1.9; }
.error { margin-top: 12px; color: #a33b36; font-size: 11px; }
.text-button { padding: 12px 0 0; border: 0; background: none; color: var(--green2); cursor: pointer; font: 600 11px var(--font); }
.text-button:hover { color: #142f28; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px clamp(22px, 8vw, 122px); background: #1f4036; color: #dfe9e2; font-size: 10px; }
.brand-mini { display: flex; align-items: center; gap: 9px; color: #f5f3ec; font: 600 12px var(--font); }
.brand-mini .brand-mark { width: 30px !important; height: 30px !important; max-width: 30px; }
dialog { width: min(440px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 1px solid #e8e9e3; border-radius: 22px; box-shadow: 0 26px 90px #182c2152; }
dialog::backdrop { background: #142c258a; backdrop-filter: blur(4px); }
dialog form { position: relative; padding: 34px; }
dialog h2 { margin: 10px 0 20px; color: #25322e; font: 600 27px var(--font); letter-spacing: -.05em; }
.close { position: absolute; top: 13px; right: 18px; border: 0; background: none; color: #748079; font: 400 24px var(--font); cursor: pointer; }
.full { width: 100%; margin-top: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 50; transform: translate(-50%,20px); opacity: 0; pointer-events: none; padding: 12px 18px; border: 1px solid #ffffff25; border-radius: 999px; background: #203c33; color: #fff; font: 500 11px var(--font); box-shadow: 0 12px 28px #1f403638; transition: .2s; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); gap: 30px; }
  .hero h1 { font-size: clamp(40px,5vw,58px); }
  .hero-image { height: 470px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header { height: 70px; padding: 0 20px; }
  .header nav { gap: 12px; }
  .header nav a { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 26px; }
  .hero-copy { max-width: 580px; }
  .hero h1 { max-width: 560px; font-size: clamp(39px,9vw,58px); }
  .hero-copy > p { font-size: 13px; }
  .hero-image { height: clamp(320px,70vw,470px); }
  .hero-art { border-radius: 20px; }
  .hero-caption { right: 10px; bottom: 10px; left: 10px; gap: 10px; padding: 12px; border-radius: 13px; }
  .hero-caption strong { font-size: 10px; }
  .hero-caption div span { font-size: 9px; }
  .section { padding: 64px 20px; }
  .section-head { align-items: start; flex-direction: column; gap: 18px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-grid .panel:first-child { grid-row: auto; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  footer { align-items: start; flex-direction: column; padding: 26px 20px; }
}
@media (max-width: 520px) {
  .brand { font-size: 15px; }
  .brand .mark { width: 36px; height: 36px; }
  .header #authOpen, .header #logout { min-height: 40px; padding: 0 15px; font-size: 10px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust { gap: 7px; font-size: 9px; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .section h2 { font-size: 30px; }
  .panel, .card { padding: 20px; }
  dialog form { padding: 28px 22px; }
}

.role-switch{display:grid;gap:6px;min-width:170px;font-size:12px;color:#66736f}.role-switch select{min-height:42px;padding:8px 12px;border:1px solid #d7dfda;border-radius:10px;background:#fff;color:#193e35;font:inherit;font-size:14px}@media(max-width:720px){.role-switch{grid-column:1/-1;min-width:0}}
.tool-panel{margin:40px auto;max-width:1200px}.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin-top:22px}.tool-card{display:grid;align-content:start;gap:12px;padding:22px;border:1px solid var(--line,#e5e5e0);border-radius:18px;background:#fff}.tool-card h3{margin:0}.tool-result{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;padding:14px;border-radius:12px;background:#f2f4f1;color:#26352f;font:13px/1.55 ui-monospace,Consolas,monospace}.admin-tool-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.admin-simulation{align-items:end;max-width:600px}.role-switch{display:grid;gap:7px;font-size:13px;font-weight:600;color:#42504a}.role-switch select{min-width:180px;border:1px solid #ccd3ce;border-radius:10px;padding:10px;background:#fff;font:inherit}@media(max-width:700px){.tool-panel{margin:24px 16px;padding:18px}.admin-simulation{display:grid}}
