@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url(inter-cyrillic.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: light;
  --ink: #202321;
  --muted: #5c625d;
  --soft: #f4f5f1;
  --paper: #fff;
  --line: #e0e4de;
  --dark: #1b1d1e;
  --yellow: #fadb50;
  --yellow-soft: #fff5c7;
  --green: #20533e;
  --green-soft: #e8f4ea;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7d6711; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; vertical-align: middle; flex: none; }
button svg { width: 18px; height: 18px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.15; }
h1 { font-size: clamp(32px, 3.3vw, 53px); font-weight: 740; }
h2 { font-size: 24px; font-weight: 720; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; }
.app { display: grid; min-height: 100vh; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 18px 19px; color: #f8faf6; background: var(--dark); }
.brand { display: flex; gap: 13px; align-items: center; margin: 0 9px 44px; font-size: 21px; line-height: 1.17; font-weight: 760; letter-spacing: -.045em; }
.brand small, .profile-button small { display: block; margin-top: 4px; color: #aeb6ae; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.brand-mark { display: block; flex: none; border-radius: 11px; object-fit: cover; }
.nav-label { margin: 0 12px 10px; color: #a9afa9; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; min-height: 46px; gap: 11px; margin: 2px 0; padding: 9px 12px; border-radius: 9px; color: #d8ddd7; font-size: 15px; font-weight: 560; }
.nav-link:hover, .profile-button:hover { background: #303431; }
.nav-link.current { background: #3b3522; color: #ffe574; font-weight: 690; }
.nav-link.current svg { color: #ffe574; }
.sidebar-footer { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin-top: auto; }
.profile-button { width: 100%; border: 0; border-top: 1px solid #3a3c3a; color: inherit; display: flex; gap: 11px; background: transparent; align-items: center; text-align: left; padding: 15px 8px 8px; border-radius: 0 0 8px 8px; font-size: 14px; font-weight: 650; }
.avatar { display: block; flex: none; border-radius: 50%; object-fit: cover; }
.workspace { min-width: 0; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.crumb-divider { margin: 0 10px; color: #777f77; }
.demo-label { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid #e5d488; border-radius: 999px; background: #fff8d9; padding: 5px 11px; font-size: 13px; font-weight: 660; color: #594a19; }
.demo-label span { width: 7px; height: 7px; background: #8a6818; border-radius: 50%; }
.mobile-menu { display: none; }
main { max-width: 1550px; margin: 0 auto; padding: 30px 36px 36px; }
main:focus { outline: none; }
.feed-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; min-height: 178px; padding: 28px 31px; border-radius: 19px; background: #232623; color: #fafcf6; }
.feed-hero::after { content: ""; position: absolute; pointer-events: none; width: 388px; height: 388px; right: -37px; top: -116px; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 14px, #ecca531b 15px 16px, transparent 17px 27px); transform: rotate(-16deg) scaleX(1.15); }
.hero-copy, .feed-hero .button { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #ffe179; font-size: 14px; font-weight: 640; margin-bottom: 9px; }
.hero-kicker svg { width: 17px; height: 17px; }
.hero-copy p { color: #d6ddd1; margin-top: 9px; font-size: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 15px; border: 1px solid #d7ddd6; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 680; text-align: center; line-height: 1.25; }
.button:hover { background: #eff2eb; border-color: #b8c2b5; }
.button.primary { background: var(--yellow); color: #22221a; border-color: var(--yellow); }
.button.primary:hover { background: #f5cd30; border-color: #f5cd30; }
.button.dark { color: #fff; background: var(--dark); border-color: var(--dark); }
.button.dark:hover { background: #3a3f37; }
.button.text { background: transparent; border-color: transparent; padding-inline: 4px; color: var(--green); }
.button.text:hover { text-decoration: underline; }
.button.compact { min-height: 35px; padding: 6px 11px; }
.button.inline { width: fit-content; }
.feed-tools { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(140px, 225px) auto; gap: 10px; margin-top: 20px; }
.search-box { display: flex; align-items: center; min-width: 0; gap: 10px; padding-inline: 13px; border: 1px solid #d8ddd6; background: #fff; border-radius: 9px; color: var(--muted); }
.search-box:focus-within { outline: 2px solid #948125; outline-offset: 1px; }
.search-box input { width: 100%; border: 0; min-height: 41px; background: transparent; outline: none; min-width: 0; color: var(--ink); font-size: 15px; }
.search-box input:focus-visible { outline: none; }
select { appearance: none; border: 1px solid #d8ddd6; border-radius: 9px; width: 100%; min-height: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='none' stroke='%23606962' stroke-width='1.7' d='m3 3 5 4 5-4'/%3E%3C/svg%3E") right 13px center no-repeat; color: var(--ink); padding: 8px 35px 8px 12px; font-size: 14px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; }
.tab, .chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e0e5dd; border-radius: 999px; background: #f7f8f5; color: #454d44; padding: 4px 9px; font-size: 13px; font-weight: 550; }
.tab { padding: 5px 12px; background: #fff; min-height: 33px; }
.tab:hover { border-color: #8c9c8a; }
.tab[aria-pressed="true"] { background: #272b26; color: #fff; border-color: #272b26; }
.chip.good { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip.warn { background: var(--yellow-soft); color: #645112; border-color: transparent; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 11px; }
.section-heading span { color: var(--muted); font-size: 14px; }
.orders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-card, .panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.order-card { min-width: 0; padding: 15px 19px; }
.order-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 29%); gap: 16px; padding: 19px; }
.order-content { min-width: 0; }
.order-meta { display: flex; gap: 7px 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.source-badge { display: inline-grid; place-items: center; width: 23px; height: 23px; background: #eef1eb; border-radius: 6px; }
.source-badge.partner { background: var(--yellow-soft); color: #504213; }
.source-badge svg { width: 15px; height: 15px; }
.order-title { margin-top: 9px; }
.order-title button { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; line-height: inherit; font: inherit; }
.order-title button:hover { text-decoration: underline; }
.order-card.featured h3 { font-size: 26px; }
.order-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.order-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.order-price { font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
.order-image { align-self: stretch; min-height: 155px; border-radius: 10px; background: radial-gradient(circle at 72% 45%, #e1eadd 0, #c8ddca 49%, #a9c8b2 100%); overflow: hidden; }
.order-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; display: block; }
.empty { grid-column: 1 / -1; padding: 30px; background: #fff; border: 1px dashed #cdd7ca; border-radius: 12px; color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-heading h1 { font-size: clamp(30px, 3.4vw, 43px); }
.page-heading p { margin-top: 7px; color: var(--muted); }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: 15px; align-items: start; }
.stage-layout > div { min-width: 0; }
.panel { min-width: 0; padding: 21px; }
.panel + .panel { margin-top: 14px; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.panel-heading p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.stages { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 17px; }
.stage { display: flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 43px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4c554d; font-size: 14px; font-weight: 650; }
.stage.active { border-color: #e4ca5f; background: var(--yellow-soft); color: #4e4115; }
.stage:hover { border-color: #a29664; }
.stage svg { width: 17px; height: 17px; }
.field { display: grid; gap: 5px; color: var(--ink); font-size: 14px; font-weight: 660; }
.field + .field { margin-top: 12px; }
.field input, .field textarea { width: 100%; min-height: 40px; color: var(--ink); background: #fafbf9; border: 1px solid #dce2db; border-radius: 8px; padding: 8px 10px; font-weight: 460; font-size: 15px; }
.field textarea { display: block; resize: vertical; min-height: 82px; line-height: 1.52; }
.field textarea.response { min-height: 166px; }
.field input[type="file"] { font-size: 14px; }
.field select { background-color: #fafbf9; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid .field + .field { margin: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.aside-note { border: 1px solid #e6dcae; border-radius: 10px; padding: 12px 13px; background: #fff8dc; color: #55482c; font-size: 14px; }
.aside-note strong { display: block; color: #3c331d; margin-bottom: 3px; }
.question-list { margin: 4px 0 0; padding: 0; list-style: none; }
.question-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.question-list li:first-child { border-top: 0; }
.info-list { margin: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: 14px; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 670; text-align: right; }
.estimate { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--yellow-soft); }
.estimate b { white-space: nowrap; font-size: 22px; letter-spacing: -.03em; color: #362e16; }
.estimate small { color: #594e2a; font-size: 13px; text-align: right; }
.file-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.file-strip .chip { max-width: 100%; overflow-wrap: anywhere; }
.result-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.result-list li { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 7px; background: #f3f6f0; color: #374438; font-size: 14px; }
.result-list li.warn { background: #fff3ca; color: #5a4817; }
.result-list svg { width: 17px; height: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.stat { display: grid; align-content: start; gap: 4px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat.highlight { background: var(--yellow-soft); border-color: #ece0ac; }
.stat span { color: var(--muted); font-size: 14px; }
.stat strong { font-size: clamp(21px,2.2vw,30px); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.stat small { color: #4d584e; font-size: 13px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; white-space: nowrap; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 580; }
td:first-child { font-weight: 690; }
td .button { text-align: left; }
.reminder { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; }
.reminder svg { color: #7b6120; }
.reminder small { display: block; color: var(--muted); margin-top: 3px; }
.payment-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
dialog { width: min(565px, calc(100vw - 26px)); max-height: 92dvh; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; padding: 23px; box-shadow: 0 18px 90px #1c281c44; }
dialog::backdrop { background: #16201ba0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.dialog-head button { display: grid; place-items: center; min-width: 37px; min-height: 37px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.dialog-body p { margin-bottom: 10px; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.checkbox input { accent-color: #715c0d; width: 17px; height: 17px; }
.toast { position: fixed; z-index: 4; right: 20px; bottom: 20px; max-width: calc(100vw - 40px); padding: 11px 15px; border-radius: 10px; color: #fff; background: #24392e; box-shadow: 0 6px 30px #15291b3a; font-size: 14px; }
[hidden] { display: none !important; }
@media (max-width: 1150px) {
  .app { grid-template-columns: 200px minmax(0,1fr); }
  main { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
}
@media (max-width: 940px) {
  .stage-layout { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .feed-hero { padding: 24px; }
}
@media (max-width: 710px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(270px, 84vw); z-index: 3; box-shadow: 0 0 35px #0d170c50; }
  .sidebar:not(.open) { display: none; }
  .sidebar .brand { margin-bottom: 20px; }
  .workspace { min-width: 0; }
  .topbar { height: 55px; padding-inline: 12px; gap: 8px; }
  .breadcrumb { margin-right: auto; line-height: 1.2; }
  .breadcrumb .book, .crumb-divider { display: none; }
  .mobile-menu { display: grid; place-items: center; background: #fff; min-height: 38px; min-width: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
  main { padding: 13px 12px 25px; }
  .feed-hero { display: grid; justify-content: start; gap: 13px; padding: 19px; min-height: 160px; }
  .feed-hero .button { justify-self: start; }
  .orders, .feed-tools { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .search-box { grid-column: 1 / -1; }
  .orders { grid-template-columns: minmax(0,1fr); }
  .order-card.featured { grid-template-columns: minmax(0, 1fr); }
  .order-image { order: -1; max-height: 135px; min-height: 135px; }
  .page-heading { flex-wrap: wrap; margin-bottom: 11px; }
  .panel { padding: 15px; }
  .stages { gap: 4px; }
  .stage { gap: 4px; padding: 5px; font-size: 12px; }
  .stage svg { width: 14px; height: 14px; }
}
@media (max-width: 360px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
}
