:root {
  --ink: #15253d;
  --muted: #66758b;
  --line: #dfe6ee;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --navy: #10243f;
  --blue: #1467df;
  --blue-dark: #0d54bd;
  --cyan: #eaf5ff;
  --green: #168a62;
  --green-soft: #e8f7f1;
  --warning: #c56b13;
  --warning-soft: #fff5e8;
  --shadow: 0 16px 42px rgba(18, 38, 65, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand > span:last-child > span { color: var(--blue); }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--blue); color: white; font-weight: 900;
  box-shadow: 0 7px 15px rgba(20, 103, 223, .25);
}
.nav { display: flex; align-items: center; gap: 28px; color: #435269; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--blue); }
.icon-button { border: 0; background: transparent; color: var(--blue); font-size: 10px; cursor: pointer; }
.avatar, .client-avatar {
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800;
}
.avatar { width: 38px; height: 38px; font-size: 12px; }

.hero { background: linear-gradient(135deg, #0e223d 0%, #142f50 68%, #16476b 100%); color: white; }
.hero-inner { max-width: 1180px; margin: auto; padding: 34px 24px 30px; }
.back { display: inline-block; color: #b9cbe0; font-size: 13px; margin-bottom: 24px; }
.back:hover { color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr 290px; gap: 60px; align-items: center; }
.eyebrow { color: #86dfc3; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #42d69f; margin-right: 8px; box-shadow: 0 0 0 5px rgba(66, 214, 159, .12); }
h1 { max-width: 780px; margin: 13px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -1.5px; }
.subtitle { max-width: 760px; margin: 0; color: #bed0e1; font-size: 17px; }
.subtitle strong { color: #fff; }
.budget-card { padding: 23px 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.budget-card span, .budget-card small { display: block; color: #b9cce0; }
.budget-card span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.budget-card strong { display: block; margin: 5px 0 4px; font-size: 25px; }
.budget-card small { font-size: 11px; }
.metadata { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #c3d3e2; font-size: 13px; }
.metadata b { color: #67b0ff; margin-right: 6px; }

.layout { max-width: 1180px; margin: 34px auto 64px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.content-card, .offer-card, .client-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.content-card { padding: 8px 38px; }
.content-card section { padding: 28px 0 32px; }
.content-card section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.3px; }
.content-card > section > p { margin: 0; color: #536277; }
.alert-box { display: flex; gap: 14px; margin-top: 23px; padding: 17px; border: 1px solid #f2d5ac; border-radius: 12px; background: var(--warning-soft); }
.alert-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #f3a33b; color: white; font-weight: 900; }
.alert-box strong { font-size: 14px; color: #7d4814; }
.alert-box p { margin: 2px 0 0; color: #8a623a; font-size: 13px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.check-list > div { display: flex; gap: 12px; }
.check-list > div > span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.check-list p { margin: 0; }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: 14px; }
.check-list small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span { padding: 7px 11px; border: 1px solid #cfe0f3; border-radius: 8px; background: #f3f8fe; color: #32628f; font-size: 12px; font-weight: 700; }

.sidebar { display: grid; gap: 20px; }
.offer-card { overflow: hidden; }
.offer-head { display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 800; }
.secure { color: var(--green); font-size: 11px; font-weight: 700; }
.field-row { padding: 0 22px; margin-top: 17px; }
.field-row label { display: block; margin-bottom: 6px; color: #45546a; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #ccd6e2; border-radius: 9px; background: white; color: var(--ink); outline: none; }
input, select { height: 43px; padding: 0 13px; }
textarea { padding: 11px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,103,223,.1); }
.primary-button { width: calc(100% - 44px); margin: 20px 22px 0; padding: 12px 16px; border: 0; border-radius: 9px; background: var(--blue); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(20,103,223,.22); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button span { float: right; }
.fine-print { margin: 11px 20px 18px; text-align: center; color: #8a96a6; font-size: 10px; }
.client-card { padding: 21px; }
.client-card h3 { margin: 0 0 17px; font-size: 15px; }
.client-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.client-avatar { width: 42px; height: 42px; font-size: 12px; }
.client-profile strong, .client-profile span { display: block; }
.client-profile strong { font-size: 14px; }
.client-profile span { color: var(--muted); font-size: 11px; }
dl { margin: 14px 0 0; }
dl div { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; }
dt { color: var(--muted); } dd { margin: 0; font-weight: 700; }.verified { color: var(--green); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; display: flex; gap: 12px; align-items: center; width: min(370px, calc(100vw - 48px)); padding: 16px; border: 1px solid #bfe4d6; border-radius: 12px; background: white; box-shadow: 0 20px 55px rgba(18,38,65,.18); transform: translateY(140%); opacity: 0; transition: .3s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.toast strong, .toast small { display: block; }.toast strong { font-size: 13px; }.toast small { color: var(--muted); font-size: 11px; }
footer { min-height: 78px; padding: 25px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 11px; }
footer nav { display: flex; gap: 24px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .budget-card { max-width: 360px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
}
@media (max-width: 650px) {
  .topbar { height: 62px; padding: 0 18px; }
  .nav a, .icon-button { display: none; }
  .hero-inner { padding: 25px 18px; }
  h1 { font-size: 31px; }
  .subtitle { font-size: 15px; }
  .metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .layout { margin-top: 18px; padding: 0 12px; }
  .content-card { padding: 4px 20px; }
  .check-list { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  footer { padding: 25px 18px; align-items: flex-start; gap: 15px; }
  footer nav { flex-direction: column; gap: 5px; text-align: right; }
}
