@font-face {
  font-family: "Montserrat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/montserrat-cyrillic-wght-normal-EAA9jha_.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/montserrat-latin-wght-normal-l_AIctKy.woff2') format('woff2-variations');
}

:root {
  color-scheme: dark;
  --bg: #101211;
  --panel: #171918;
  --panel-2: #1d201e;
  --text: #f1f0eb;
  --muted: #9a9d97;
  --line: rgba(255,255,255,.11);
  --accent: #e5eee5;
  --green: #a8c3a9;
  --red: #d6a19b;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 6%, rgba(116,143,121,.13), transparent 28rem),
    radial-gradient(circle at 3% 100%, rgba(255,255,255,.05), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat Variable", Montserrat, Arial, sans-serif;
  font-weight: 400;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 32px 24px;
  border-right: 1px solid var(--line); background: rgba(15,17,16,.86); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; z-index: 5;
}
.brand { width:max-content; text-decoration:none; font-size: 24px; letter-spacing: .14em; font-weight: 500; margin-bottom: 46px; }
.brand .dot { color: var(--green); }
.nav { display: grid; gap: 7px; }
.nav button {
  border: 0; background: transparent; color: var(--muted); text-align: left;
  padding: 12px 14px; border-radius: 12px; transition: .2s ease;
}
.nav button:hover, .nav button.active { background: rgba(255,255,255,.07); color: var(--text); }
.account { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.account strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.account span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.account button { border: 0; background: transparent; color: var(--muted); padding: 16px 0 0; font-size: 12px; }

.main { padding: 38px clamp(24px, 5vw, 72px) 72px; max-width: 1440px; width: 100%; margin: 0 auto; }
.topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .18em; margin-bottom: 11px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(31px, 4vw, 52px); line-height: 1.02; font-weight: 300; letter-spacing: -.045em; margin-bottom: 9px; }
h2 { font-size: 25px; font-weight: 400; letter-spacing: -.025em; }
h3 { font-size: 15px; font-weight: 500; }
.lead { color: var(--muted); max-width: 680px; line-height: 1.65; font-size: 13px; }

.button { border: 1px solid var(--line); background: var(--text); color: #111; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.button.secondary { background: transparent; color: var(--text); }
.button.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: transparent; }
.button.danger { background: transparent; color: var(--red); border-color: rgba(214,161,155,.35); }
.button:disabled { opacity: .45; cursor: default; }
.icon-button { width: 40px; height: 40px; display:grid; place-items:center; border-radius: 50%; border:1px solid var(--line); background:transparent; color:var(--text); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.card { background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 24px; }
.project-card { grid-column: span 6; min-height: 275px; display:flex; flex-direction:column; position:relative; cursor:pointer; transition: .25s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); box-shadow: var(--shadow); }
.project-card .number { position:absolute; top:22px; right:22px; color:var(--muted); font-size:11px; }
.project-card .status { color:var(--green); text-transform:uppercase; font-size:9px; letter-spacing:.15em; }
.project-card h2 { margin: 54px 0 10px; font-size: clamp(25px,3vw,38px); font-weight:300; }
.project-card .address { color:var(--muted); font-size:12px; line-height:1.6; }
.project-card footer { margin-top:auto; display:flex; gap:18px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }

.metric { grid-column: span 3; padding: 22px; min-height: 134px; }
.metric strong { display:block; font-size:36px; font-weight:300; margin:17px 0 5px; }
.metric span { color:var(--muted); font-size:11px; }
.section { margin-top: 40px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:17px; }
.section-head h2 { margin:0; }

.project-hero { border:1px solid var(--line); border-radius:24px; min-height:300px; padding:clamp(25px,5vw,56px); position:relative; overflow:hidden; background:linear-gradient(135deg, rgba(165,190,169,.12), rgba(255,255,255,.02) 45%, transparent); }
.project-hero:after { content:""; position:absolute; width:340px; height:340px; border-radius:50%; right:-90px; top:-120px; border:1px solid rgba(255,255,255,.1); box-shadow:0 0 90px rgba(146,182,151,.12) inset; }
.project-hero h1 { max-width:800px; margin-top:60px; }
.project-meta { position:absolute; top:25px; right:30px; font-size:10px; color:var(--muted); letter-spacing:.12em; text-transform:uppercase; }
.now { grid-column:span 8; padding:28px; }
.now .stage { color:var(--green); font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.now h2 { font-size:34px; font-weight:300; margin:22px 0 10px; }
.timeline { grid-column:span 4; padding:26px; }
.stage-row { position:relative; padding:0 0 20px 24px; color:var(--muted); font-size:12px; }
.stage-row:last-child { padding-bottom:0; }
.stage-row:before { content:""; position:absolute; left:2px; top:5px; width:7px; height:7px; border-radius:50%; border:1px solid var(--muted); }
.stage-row:not(:last-child):after { content:""; position:absolute; left:5px; top:15px; width:1px; height:calc(100% - 12px); background:var(--line); }
.stage-row.current { color:var(--text); }
.stage-row.current:before { background:var(--green); border-color:var(--green); box-shadow:0 0 16px var(--green); }
.stage-row.done:before { background:#70766f; border-color:#70766f; }

.files { display:grid; gap:9px; }
.file-row { display:grid; grid-template-columns:minmax(0,1fr) 150px 160px auto; gap:18px; align-items:center; padding:17px 18px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }
.file-row:hover { background:rgba(255,255,255,.045); }
.file-name { min-width:0; }
.file-name strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; font-weight:500; }
.file-name small, .file-cell { color:var(--muted); font-size:10px; }
.pill { display:inline-flex; align-items:center; min-height:25px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.07); color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.pill.pending { color:#dcc99d; background:rgba(220,201,157,.09); }
.pill.approved { color:var(--green); background:rgba(168,195,169,.1); }
.pill.changes_requested { color:var(--red); background:rgba(214,161,155,.1); }
.file-actions { display:flex; justify-content:flex-end; gap:7px; }
.file-actions button { min-height:34px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--text); font-size:10px; padding:0 12px; }

.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:var(--radius); }
table { width:100%; border-collapse:collapse; min-width:720px; }
th, td { text-align:left; padding:17px 18px; border-bottom:1px solid var(--line); font-size:12px; }
th { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.12em; font-weight:500; }
tr:last-child td { border-bottom:0; }

.modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(7px); display:grid; place-items:center; padding:22px; z-index:50; }
.modal { width:min(620px,100%); max-height:90vh; overflow:auto; background:#171918; border:1px solid var(--line); border-radius:24px; padding:30px; box-shadow:var(--shadow); }
.modal.large { width:min(1100px,100%); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.modal-head h2 { margin:0; }
.form { display:grid; gap:15px; }
.form.two { grid-template-columns:1fr 1fr; }
.field { display:grid; gap:8px; }
.field.full { grid-column:1 / -1; }
.field label { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.13em; }
.field input, .field textarea, .field select { width:100%; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.04); color:var(--text); padding:13px 14px; outline:none; }
.field select { color-scheme:dark; cursor:pointer; }
.field select option { background:#171918; color:var(--text); }
.field textarea { min-height:110px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:rgba(229,238,229,.48); }
.actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:11px; }
.empty { border:1px dashed var(--line); border-radius:var(--radius); padding:48px 24px; text-align:center; color:var(--muted); font-size:12px; line-height:1.6; }

.login-page { min-height:100vh; display:grid; grid-template-columns:1.15fr .85fr; }
.login-art { padding:56px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.login-art:before { content:""; position:absolute; inset:11% -18% auto auto; width:min(58vw,780px); aspect-ratio:1; border-radius:50%; border:1px solid rgba(255,255,255,.11); box-shadow:0 0 140px rgba(120,156,127,.13) inset, 0 0 100px rgba(120,156,127,.08); }
.login-art h1 { max-width:700px; position:relative; font-size:clamp(48px,7vw,104px); }
.login-art p { color:var(--muted); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.login-panel { display:grid; place-items:center; padding:35px; }
.login-box { width:min(390px,100%); }
.login-box h2 { font-weight:300; font-size:32px; margin-bottom:10px; }
.login-box .lead { margin-bottom:32px; }
.login-box .button { width:100%; margin-top:8px; }
.login-legal { border-top:1px solid var(--line); margin-top:30px; padding-top:18px; color:var(--muted); font-size:9px; line-height:1.6; }
.login-legal p { margin:0 0 9px; }
.login-legal a { color:var(--text); text-underline-offset:3px; }
.error { color:var(--red); font-size:11px; min-height:16px; }

.viewer { min-height:65vh; background:#0b0c0c; border-radius:15px; display:grid; place-items:center; overflow:hidden; }
.viewer img { max-width:100%; max-height:72vh; object-fit:contain; }
.viewer iframe { width:100%; height:72vh; border:0; background:#fff; }
.viewer-fallback { text-align:center; color:var(--muted); padding:45px; }

.ai-panel { display:grid; grid-template-rows:1fr auto; min-height:430px; }
.ai-messages { display:flex; flex-direction:column; gap:12px; overflow:auto; max-height:55vh; padding:6px 3px 20px; }
.message { max-width:84%; border:1px solid var(--line); border-radius:16px; padding:14px 16px; font-size:12px; line-height:1.65; white-space:pre-wrap; }
.message.user { align-self:flex-end; background:var(--text); color:#111; }
.message.assistant { align-self:flex-start; background:rgba(255,255,255,.035); }
.ai-compose { display:flex; gap:9px; border-top:1px solid var(--line); padding-top:17px; }
.ai-compose textarea { flex:1; min-height:48px; max-height:120px; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); border-radius:14px; padding:13px; resize:none; }

.toast { position:fixed; left:50%; bottom:26px; transform:translate(-50%, 30px); opacity:0; pointer-events:none; background:var(--text); color:#111; border-radius:999px; padding:13px 19px; font-size:11px; z-index:100; transition:.25s ease; box-shadow:var(--shadow); }
.toast.show { transform:translate(-50%,0); opacity:1; }
.mobile-head { display:none; }
.cabinet-legal { border-top:1px solid var(--line); margin-top:70px; padding-top:22px; display:flex; justify-content:space-between; gap:22px; color:var(--muted); font-size:9px; line-height:1.6; }
.cabinet-legal div { display:flex; flex-wrap:wrap; gap:10px 22px; }
.cabinet-legal a { color:var(--text); text-underline-offset:3px; }
.cabinet-legal p { max-width:470px; margin:0; text-align:right; }

@media (max-width: 900px) {
  .shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; height:auto; left:12px; right:12px; bottom:12px; top:auto; border:1px solid var(--line); border-radius:18px; padding:8px; flex-direction:row; backdrop-filter:blur(22px); }
  .brand, .account { display:none; }
  .nav { display:flex; width:100%; justify-content:space-around; }
  .nav button { text-align:center; flex:1; padding:11px 7px; font-size:10px; }
  .main { padding:24px 17px 100px; }
  .mobile-head { display:block; width:max-content; margin-bottom:27px; font-size:18px; letter-spacing:.12em; text-decoration:none; }
  .cabinet-legal { margin-top:48px; padding-bottom:18px; flex-direction:column; }
  .cabinet-legal p { text-align:left; }
  .metric { grid-column:span 6; }
  .project-card { grid-column:span 12; min-height:230px; }
  .now, .timeline { grid-column:span 12; }
  .file-row { grid-template-columns:minmax(0,1fr) auto; }
  .file-cell { display:none; }
  .login-page { grid-template-columns:1fr; }
  .login-art { min-height:34vh; padding:30px 24px; border-right:0; border-bottom:1px solid var(--line); }
  .login-art h1 { font-size:46px; margin-top:55px; }
  .login-panel { padding:38px 24px; align-items:start; }
}

@media (max-width: 560px) {
  .topline { display:block; }
  .topline .button { margin-top:18px; }
  .metric { grid-column:span 12; min-height:105px; }
  .metric strong { font-size:28px; margin-top:11px; }
  .project-hero { min-height:250px; }
  .project-hero h1 { margin-top:75px; font-size:34px; }
  .project-meta { left:25px; right:auto; }
  .form.two { grid-template-columns:1fr; }
  .modal { padding:23px 18px; border-radius:18px; }
  .file-row { align-items:start; }
  .file-actions { flex-direction:column; }
  .message { max-width:94%; }
}
