:root { --portal-ink:#172b42; --portal-muted:#596c82; --portal-line:#dce4ee; --portal-accent:#ed7b38; --portal-navy:#172f4a; --ink:var(--portal-ink); --muted:var(--portal-muted); --line:var(--portal-line); --paper:#f3f6fa; --card:#fff; --canvas:#f3f6fa; --teal:#23577a; --teal-dark:#183c59; --steel:#23577a; --steel-dark:#172f4a; --orange:#b9521d; --blue:#23577a; --accent:#df6a2c; --accent-dark:#b9521d; font-family:"Segoe UI",system-ui,-apple-system,sans-serif; color-scheme:light; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:#f3f6fa; color:var(--portal-ink); font-family:"Segoe UI",system-ui,-apple-system,sans-serif; font-size:16px; line-height:1.5; }
[hidden] { display:none!important; }
a,button,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #e8792e; outline-offset:4px; }
.portal-header { background:var(--portal-navy); color:#fff; border:0; }
.portal-header__bar { width:min(1320px,calc(100% - 64px)); min-height:78px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.portal-brand { display:inline-flex; gap:12px; align-items:center; color:#fff; font-size:21px; font-weight:750; letter-spacing:-.025em; text-decoration:none!important; }
.portal-brand__mark { display:grid; place-items:center; width:42px; height:42px; border-radius:12px 12px 4px 12px; background:var(--portal-accent); color:#142b43; font-size:25px; font-weight:850; }
.portal-brand small { display:block; margin:0; font-size:12px; color:#bacbdc; font-weight:450; letter-spacing:.04em; }
.portal-private { color:#c4d4e4; font-size:14px; }
.portal-nav { display:block; background:#fff; border-bottom:1px solid var(--portal-line); }
.portal-nav__inner { width:min(1320px,calc(100% - 64px)); margin:auto; display:flex; gap:8px; padding:10px 0; }
.portal-nav a { display:flex; align-items:center; gap:9px; min-height:44px; padding:10px 18px; color:#50647a; border-radius:9px; font-size:14px; font-weight:650; text-decoration:none; white-space:nowrap; }
.portal-nav a>span { font-size:19px; width:20px; text-align:center; line-height:1; }
.portal-nav a:hover { background:#f0f4f9; color:#172f4a; text-decoration:none; }
.portal-nav a[aria-current=page] { background:#fff1e7; color:#a44314; box-shadow:inset 0 -2px #e8792e; }
.portal-account { position:relative; border:0; padding:0; margin:0; }
.portal-account summary { display:flex; align-items:center; gap:10px; padding:8px 0 8px 10px; color:#fff; font-size:14px; font-weight:600; cursor:pointer; list-style:none; }
.portal-account summary::-webkit-details-marker { display:none; }
.portal-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#344f6b; color:#dce8f5; }
.portal-account__menu { position:absolute; right:0; top:calc(100% + 9px); z-index:30; width:240px; padding:7px; background:#fff; border:1px solid var(--portal-line); border-radius:12px; box-shadow:0 16px 40px #132d4826; }
.portal-account__menu a,.portal-account__menu button { display:block; width:100%; text-align:left; padding:12px; margin:0; border:0; border-radius:7px; background:none; color:var(--portal-ink); font:inherit; font-size:14px; cursor:pointer; min-height:44px; text-decoration:none; }
.portal-account__menu a:hover,.portal-account__menu button:hover { background:#edf3f8; }
.portal-account__menu form { margin:0; border-top:1px solid var(--portal-line); }
.portal-account__menu button { color:#ac3c32; }
.portal-skip { position:fixed; top:-100px; left:12px; z-index:100; padding:12px 20px; border-radius:8px; background:#fff; color:#172b42; }
.portal-skip:focus { top:12px; }
.container,.shell { width:min(1320px,calc(100% - 64px)); }
main:not(.container):not(.shell) { width:min(1320px,calc(100% - 64px)); max-width:1320px; padding:30px 0 56px; }
.page { padding:30px 0 56px; }
h1 { font-size:clamp(28px,3vw,38px); line-height:1.16; letter-spacing:-.035em; }
h2 { font-size:clamp(22px,2vw,27px); line-height:1.25; letter-spacing:-.02em; }
h3 { font-size:18px; }
.lead { font-size:16px; line-height:1.6; }
.eyebrow { color:#8b5737; font-size:12px; letter-spacing:.11em; }
.panel,.workspace,.auth-card,.latest-products,.results,.metrics>div,.stats article { background:#fff; border-color:var(--portal-line); box-shadow:0 4px 18px #1a35520a; border-radius:16px; }
.panel,.auth-card { padding:28px; }
.hero,.intro { padding:6px 0 24px; align-items:center; gap:24px; }
.hero h1 { margin-bottom:8px; }
.balance { min-width:156px; border-radius:14px; box-shadow:none; background:#e8f0f8; color:#183c59; padding:16px 22px; }
.balance span,.balance small { color:#526b83; font-size:14px; }
.balance strong { font-size:36px; }
.stats { gap:16px; margin-bottom:24px; }
.stats span,.metrics span { font-size:14px; }
.stats strong { font-size:24px; }
.stats article { padding:18px 22px; }
.field>span,.field small,.form-note,.form-actions p,.updated small,.muted,.help { font-size:14px; }
input,textarea,select { font-size:16px; }
input:not([type=checkbox]):not([type=hidden]),textarea { min-height:46px; border-radius:9px; border-color:#c4d1df; background:#fff; }
.field input:focus,.field textarea:focus { border-color:#477da7; box-shadow:0 0 0 3px #477da721; }
.primary,.search-button,.button,button.secondary { min-height:46px; box-shadow:none; border-radius:9px; }
.primary { background:#23577a; }
.primary:hover { background:#183c59; }
.primary:disabled,button:disabled { opacity:.6; }
.cost,.reward { font-size:14px; white-space:normal; text-align:center; }
.panel__heading { margin-bottom:22px; }
.table-wrap { border-radius:10px; border:1px solid var(--portal-line); }
th { font-size:12px; padding:12px; background:#f5f8fb; }
td { padding:14px 12px; }
tbody tr:hover { background:#f8fafc; }
.badge { font-size:13px; line-height:1.4; }
.badge--refunded,.badge--cancelled { color:#8a5721; background:#fff1dc; }
.user-card { background:#f9fbfd; }
.history-grid { gap:24px; }
.auth-card { max-width:460px; margin:42px auto; padding:36px; border-top:4px solid #e8792e; }
.auth-card h1 { font-size:32px; }
.auth-card .lead { margin-bottom:24px; }
.auth-note { margin:24px 0 0; padding-top:20px; border-top:1px solid var(--portal-line); color:var(--portal-muted); font-size:14px; }
.document-tabs,.section-nav { display:flex; align-items:center; gap:6px; padding:6px; margin:0 0 22px; background:#e8eef6; border-radius:12px; width:fit-content; max-width:100%; }
.document-tabs a,.section-nav a { min-height:44px; display:flex; align-items:center; padding:10px 20px; text-decoration:none; color:#52677f; font-size:15px; font-weight:650; border-radius:8px; }
.document-tabs a[aria-current=true],.section-nav a[aria-current=page] { background:#fff; color:#172f4a; box-shadow:0 2px 5px #172f4a0c; }
.form-step { grid-column:1/-1; display:flex; align-items:center; gap:10px; margin-top:10px; font-size:16px; font-weight:650; }
.form-step span { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#edf2f8; color:#506b85; font-size:13px; }
.file-field { padding:24px; border:1.5px dashed #b6c9dc; border-radius:12px; background:#f7faff; }
.file-field input { border:0!important; padding:8px 0; background:transparent!important; }
input::file-selector-button { border:1px solid #c9d6e4; border-radius:7px; background:#fff; color:#254b6c; padding:10px 13px; margin-right:12px; cursor:pointer; }
.form-feedback:empty { display:none; }
.rules { margin-top:20px; padding:16px 0 0; border:0; border-top:1px solid var(--portal-line); }
.rules summary { font-size:14px; color:#52677f; cursor:pointer; }
.rules p { margin:12px 0 0; }
.empty { padding:28px 18px; border:1px dashed #d7e1ec; border-radius:10px; background:#f9fbfd; text-align:center; font-size:14px; }
.workspace__heading { align-items:flex-start; }
.workspace__heading h1 { max-width:750px; }
.request-form textarea { min-height:200px; }
.workspace__heading .updated { min-width:210px; border-left:0; border-radius:10px; padding:12px 16px; background:#f3f7fb; }
.updated span { font-size:13px; }
.updated small { font-size:12px; }
.request-form__actions { padding-top:0; }
.latest-products__list { max-height:350px; }
.latest-product__description strong { font-size:14px; white-space:normal; }
.latest-product__description span { font-size:12px; background:#e8f0f8; color:#355974; }
.latest-product time,.latest-product__city { font-size:12px; }
.latest-product__price { font-size:14px; }
.results { margin-bottom:24px; }
.results-summary span,.results-summary small,.results-summary .history-ref { font-size:12px; }
.offer { grid-template-columns:145px minmax(200px,1fr) minmax(150px,.6fr) 300px; padding:18px; background:#fff; }
.offer__place small,.offer__product small,.offer__price small,.offer__availability span,.offer__price span,.offer__rank,.offer__supplier { font-size:12px; }
.offer__supplier { background:#e8f0f8; color:#355974; white-space:normal; }
.offer__product strong { font-size:16px; }
.offer__price .rate-grid small,.offer__price .rate-grid .rate-hint,.offer__price .procurement>span,.offer__price .procurement__hint,.offer__availability .weight-line span { font-size:12px; }
.offer__price .rate-grid strong { white-space:normal; font-size:14px; overflow:visible; overflow-wrap:anywhere; }
.offer__price .procurement__detail,.offer__price a,.weight-line b { font-size:14px; }
.offer__availability strong { font-size:14px; }
.offer__product span { white-space:normal; font-size:14px; }
.results-summary { min-width:0; }
.footer,footer { font-size:13px; color:#63758a; }
@media(max-width:1100px) { .offer { grid-template-columns:140px minmax(0,1fr); }.offer__price { grid-column:2; }.request-form { grid-template-columns:minmax(0,1fr) 280px; }.history-grid { grid-template-columns:1fr; } }
@media(max-width:760px) {
  .portal-header__bar,.portal-nav__inner,.container,.shell,main:not(.container):not(.shell) { width:calc(100% - 32px); }
  .portal-header__bar { min-height:70px; gap:12px; }
  .portal-brand { font-size:18px; }.portal-brand__mark { width:36px; height:36px; font-size:22px; }
  .portal-account summary>[data-account-name],.portal-private { display:none; }
  .portal-nav__inner { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  .portal-nav a { padding:8px 10px; font-size:13px; gap:6px; white-space:normal; }
  .page,main:not(.container):not(.shell) { padding-top:22px; }
  .panel,.auth-card,.workspace { padding:20px; border-radius:12px; }
  .hero,.intro { flex-direction:column; align-items:stretch; }
  .balance { display:flex; align-items:center; gap:12px; padding:12px 18px; }.balance span { margin-right:auto; }.balance strong { margin:0; font-size:30px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.stats article { padding:14px; }.stats strong { font-size:21px; }
  .stats article:last-child:nth-child(odd) { grid-column:1/-1; }
  .stats[aria-label="Статистика пользователя"] article:last-child { display:none; }
  .document-tabs { width:100%; }.document-tabs a { flex:1; justify-content:center; padding:10px; }
  .panel__heading { flex-direction:column; gap:12px; }
  .request-form { grid-template-columns:1fr; }.workspace__heading { flex-direction:column; gap:16px; }.workspace__heading .updated { width:100%; }
  .offer { grid-template-columns:1fr; gap:14px; }.offer__price { grid-column:auto; }.offers,.more-offers { margin-left:0; }
  .results__heading { flex-direction:column; align-items:stretch; }.results-summary { text-align:left; }
  .latest-product { grid-template-columns:minmax(0,1fr) auto; padding:14px; gap:6px 12px; }.latest-product time { grid-column:1/-1; }.latest-product__description { grid-column:1/-1; }
  .latest-product__city { grid-column:1; }.latest-product__price { grid-column:2; white-space:normal; }
  .latest-products__heading { align-items:flex-start; flex-direction:column; gap:8px; }.latest-products__heading>p { text-align:left; font-size:14px; }
  .auth-card { margin:22px auto; padding:26px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { animation:none!important; transition:none!important; } }
