/* Агент Агенту — стили. Без фреймворков: страница должна открываться быстро и на слабом телефоне. */

/* Fira Sans — тот же шрифт, что в макетах BAZISPRO. Логотип набран Unbounded и лежит в кривых (static/img/brand). */
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Regular.f14fd3a540af.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Medium.cfe6bc1f7c0f.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-SemiBold.e6ca3a73c6dc.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Bold.8a53d8c8bf90.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-ExtraBold.7bc6e8eae0b5.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --paper: #ECECEC;
  --grid: #DFDFDF;
  --surface: #FFFFFF;
  --ink: #242424;
  --muted: #5E5E5E;
  --label: #7A7A7A;
  --line: #DFDFDF;
  --line-strong: #BDBDBD;
  --rule: #242424;
  --frame: 1px solid var(--ink);
  --accent: #C43034;
  --accent-ink: #9E2629;
  --accent-soft: #F7E5E5;
  --lamp-green: #1F9D55;
  --lamp-green-text: #157A40;
  --lamp-off: #BDBDBD;
  --shadow: 0 10px 30px rgba(0, 0, 0, .07);
  --radius: 0;
  --radius-lg: 0;
  --wrap: 1180px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 19 18 6'/%3E%3Cpath d='M8 6h10v10'/%3E%3C/g%3E%3C/svg%3E");
  --arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23242424' stroke-width='3'%3E%3Cpath d='M5 19 18 6'/%3E%3Cpath d='M8 6h10v10'/%3E%3C/g%3E%3C/svg%3E");
  --arrow-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23C43034' stroke-width='3'%3E%3Cpath d='M5 19 18 6'/%3E%3Cpath d='M8 6h10v10'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px);
  background-size: 90px 90px;
  background-position: -2px -2px;
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: "tnum" 0;
}
img, svg { max-width: 100%; }
/* Блоки при прокрутке выезжают сбоку (static/js/app.js): без этого на телефоне появлялась бы горизонтальная прокрутка */
main { overflow-x: clip; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-weight: 800; }
.display { text-transform: uppercase; font-weight: 800; line-height: .98; letter-spacing: -0.01em; font-size: clamp(40px, 7.4vw, 86px); text-wrap: balance; }
.display-m { font-size: clamp(32px, 5.2vw, 58px); }
.accent { color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; width: 13px; height: 13px; background: var(--accent); flex: none; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
h2 { font-size: clamp(21px, 2.6vw, 27px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* ---------- шапка и подвал ---------- */
.site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 22px; }
@media (min-width: 720px) { .brand img { height: 26px; } }
.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav .btn { padding: 8px 14px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

.site-footer { margin-top: 72px; background: var(--surface); padding: 44px 0 24px; font-size: 15px; }
.footer-logo { display: block; height: 52px; width: auto; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }
.footer-legal { display: grid; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-docs a { color: var(--muted); }
.footer-owner { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- кнопки: красный прямоугольник со стрелкой, как в BAZISPRO ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 12px 22px; border: 2px solid var(--accent); border-radius: 0;
  background: var(--accent); color: #fff; font: 500 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-arrow::after { content: ""; width: 15px; height: 15px; background: var(--arrow) center / contain no-repeat; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline.btn-arrow::after { background-image: var(--arrow-red); }
.btn-outline.btn-arrow:hover::after { background-image: var(--arrow); }
.btn-small { min-height: 40px; padding: 7px 14px; font-size: 15px; }
.btn-danger { background: var(--ink); border-color: var(--ink); }
.btn-danger:hover { background: #000; border-color: #000; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.link-button.danger { color: var(--accent); }
.inline-form { display: inline; }

/* ---------- статус заявки: зелёный горит только у открытой, остальные — квадраты ---------- */
.lamp { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; vertical-align: middle; }
.lamp-dot { width: 12px; height: 12px; background: var(--lamp-off); flex: none; box-sizing: border-box; }
.lamp-green .lamp-dot { border-radius: 50%; background: var(--lamp-green); box-shadow: 0 0 0 4px rgba(31, 157, 85, .18), 0 0 14px rgba(31, 157, 85, .5); }
.lamp-amber .lamp-dot { background: var(--ink); }
.lamp-blue .lamp-dot { background: transparent; border: 2px solid var(--ink); }
.lamp-red .lamp-dot { background: var(--accent); }
.lamp-done .lamp-dot { background: var(--lamp-off); }
.lamp-green .lamp-text { color: var(--lamp-green-text); }
.lamp-red .lamp-text { color: var(--accent); }
.lamp-off .lamp-text, .lamp-done .lamp-text { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .board .lamp-green .lamp-dot { animation: glow 2.8s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(31, 157, 85, .12), 0 0 20px rgba(31, 157, 85, .6); } }
}

/* ---------- главная ---------- */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 24px; align-items: start; }
.hero > * { min-width: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(40px, 5.6vw, 72px); }
.hero h1 .accent { white-space: nowrap; }
.lead { font-size: 19px; line-height: 1.55; max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-note { font-size: 15px; }
@media (min-width: 920px) { .hero { grid-template-columns: 1.3fr .8fr; gap: 48px; padding-top: 64px; } }

/* Карточки сложных случаев на первом экране: парят и расходятся при прокрутке (как карточки техники на bazisrent.ru) */
.hero-cases { display: flex; gap: 18px; align-items: flex-start; margin: 28px 0 0; }
.case-slot { flex: 0 0 196px; position: relative; z-index: 1; }
.case-slot:nth-child(1) { --tilt: -3deg; }
.case-slot:nth-child(2) { --tilt: 2.2deg; margin-top: 30px; }
.case-slot:nth-child(3) { --tilt: -1.4deg; margin-top: 10px; }
.case-card { display: grid; gap: 6px; padding: 12px 12px 12px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 16px 36px rgba(0, 0, 0, .13); transform: rotate(var(--tilt, 0deg)); }
.case-card:hover { color: var(--ink); box-shadow: 0 20px 44px rgba(0, 0, 0, .2); }
.case-card:hover .case-go { background-color: var(--accent-ink); }
.case-pic { display: grid; place-items: center; height: 84px; margin-bottom: 4px; background: var(--paper); }
.case-pic svg { width: 62px; height: 62px; }
.case-kind { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.case-name { min-height: 2.5em; font-size: 15px; font-weight: 700; line-height: 1.25; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.case-go { flex: none; width: 30px; height: 30px; background: var(--accent) var(--arrow) center / 14px no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .case-card { animation: levitate 6.2s ease-in-out infinite; }
  .case-slot:nth-child(2) .case-card { animation-duration: 7.4s; animation-delay: -2.6s; }
  .case-slot:nth-child(3) .case-card { animation-duration: 5.6s; animation-delay: -1.3s; }
  @keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--tilt, 0deg) * -.5)); }
  }
}
@media (min-width: 920px) {
  /* на широком экране карточки лежат внахлёст под табло, как коллаж */
  .hero-cases { display: block; position: relative; height: 470px; margin-top: 34px; }
  .case-slot { position: absolute; width: 196px; margin: 0 !important; }
  .case-slot:nth-child(1) { left: 0; top: 0; }
  .case-slot:nth-child(2) { left: 218px; top: 40px; }
  .case-slot:nth-child(3) { left: 92px; top: 232px; z-index: 2; }
}
@media (max-width: 719px) {
  .hero-cases { margin: 24px -20px 0; padding: 6px 20px 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-cases::-webkit-scrollbar { display: none; }
  .case-slot { flex-basis: 168px; scroll-snap-align: start; }
}

.board { background: var(--ink); color: #F2F2F2; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 12px; margin-bottom: 4px; }
.board-title { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0; color: #fff; }
.board-count { font-size: 14px; color: #BDBDBD; font-variant-numeric: tabular-nums; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "lamp what when" "lamp where where"; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.board-row .lamp { grid-area: lamp; align-self: start; padding-top: 6px; }
.board-what { grid-area: what; font-weight: 600; }
.board-where { grid-area: where; color: #BDBDBD; font-size: 14px; }
.board-when { grid-area: when; color: #BDBDBD; font-size: 13px; white-space: nowrap; }
.board-empty { color: #D6D6D6; margin: 16px 0; }
.board .board-foot { color: #A8A8A8; margin: 12px 0 0; }

.section { padding-top: 56px; }
.section-tight { margin-top: 36px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 16px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; width: 34px; height: 34px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (min-width: 920px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 20px; }
  .steps li { grid-template-columns: 1fr; align-content: start; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 16px; }
  .steps li::before { grid-row: auto; margin-bottom: 10px; }
}

/* Блоки на клетке: каждый в тонкой графитовой рамке, внутри клетки нет (утверждено 19.10.2026) */
.type-list { display: grid; gap: 14px; margin-top: 18px; }
.type-item { padding: 26px 28px; border: var(--frame); background: var(--paper); }
.type-item > :last-child { margin-bottom: 0; }
.type-item h3 { font-size: 21px; }
.type-item h3 a { color: var(--ink); text-decoration: none; }
.type-item h3 a:hover { color: var(--accent); }
.type-item p { color: var(--muted); max-width: 72ch; }
.tags { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; background: var(--surface); }
.tags a:hover { border-color: var(--accent); color: var(--accent); }

.split { display: grid; gap: 24px; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks:not(.compact) { display: grid; gap: 10px; }
.checks li { position: relative; padding: 16px 20px 16px 46px; border: var(--frame); background: var(--paper); max-width: 72ch; }
.checks li::before { content: ""; position: absolute; left: 20px; top: 23px; width: 11px; height: 11px; background: var(--accent); }
.checks.compact li { padding: 8px 0 8px 30px; border: 0; border-bottom: 1px solid var(--rule); background: none; }
.checks.compact li::before { left: 2px; top: 14px; }

/* ---------- страницы контента ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs-back { margin: 20px 0 0; font-size: 15px; }
.page-head { padding: 24px 0 8px; }
.page-head .meta { font-size: 14px; }
.answer { border-left: 4px solid var(--accent); padding-left: 16px; }
.doc { max-width: 760px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--surface); }
.prose blockquote { margin: 1em 0; padding: 8px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; vertical-align: middle; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-list li { padding: 14px 18px; border: var(--frame); background: var(--paper); }
.link-list p { margin: 4px 0 0; font-size: 15px; }
/* Вопросы и ответы — как на bazisrent.ru: номер, вопрос, тонкий плюс/минус справа, ответ серым под вопросом */
.faq-list { display: grid; gap: 10px; margin-top: 20px; }
.faq-item { padding: 0 24px; border: var(--frame); background: var(--paper); }
.faq-item summary { display: grid; grid-template-columns: 56px 1fr 28px; column-gap: 16px; align-items: start; padding: 26px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { padding-top: 5px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--label); font-variant-numeric: tabular-nums; }
.faq-q { margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-icon { position: relative; width: 24px; height: 24px; justify-self: end; margin-top: 2px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -1px; background: var(--ink); transition: transform .2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 44px 28px 72px; color: var(--muted); }
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .faq-item summary { grid-template-columns: 30px 1fr 22px; column-gap: 10px; padding: 20px 0; }
  .faq-icon { width: 20px; height: 20px; }
  .faq-item { padding: 0 16px; }
  .faq-a { padding: 0 0 22px 40px; }
  .type-item { padding: 20px 18px; }
  .checks li { padding: 14px 16px 14px 40px; }
  .checks li::before { left: 16px; top: 21px; }
}
@media (prefers-reduced-motion: reduce) { .faq-icon::after { transition: none; } }
.sources ol { padding-left: 1.3em; font-size: 15px; }
.cta { margin: 40px 0 0; padding: 22px; background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.letters a { min-width: 34px; padding: 5px 8px; text-align: center; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); }
.glossary dt { font-weight: 650; margin-top: 18px; scroll-margin-top: 16px; }
.glossary dt:target { color: var(--accent); }
.glossary dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.glossary dfn { font-style: normal; }
.empty { color: var(--muted); padding: 16px 0; }

/* ---------- формы ---------- */
.panel { background: var(--surface); box-shadow: var(--shadow); padding: 22px; margin: 20px 0; border: 0; }
.panel h2 { font-size: 20px; margin-top: 8px; }
fieldset.panel { min-width: 0; }
legend { font-weight: 650; font-size: 18px; padding: 0 6px; margin-left: -6px; }
.field { margin: 0 0 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.req { color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0;
  background: #fff; color: var(--ink); font: 16px/1.4 var(--font);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(196, 48, 52, .2); outline-offset: 0; }
input[type=file] { font: 15px var(--font); max-width: 100%; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.field ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.field ul label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.field ul input { accent-color: var(--accent); width: 18px; height: 18px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.error { color: var(--accent); font-size: 14px; margin: 6px 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--accent); }
.grid-2 { display: grid; gap: 0 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.form-inline { margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0 8px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; min-width: 180px; flex: 1 1 180px; }
.filters .check-inline { flex-direction: row; align-items: center; gap: 8px; min-width: auto; flex: 0 0 auto; padding-bottom: 12px; }

.flash { list-style: none; padding: 0; margin: 16px 0 0; }
.flash li { padding: 12px 16px; background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--ink); margin-bottom: 8px; }
.flash-success { border-left-color: var(--lamp-green) !important; }
.flash-warning { border-left-color: var(--accent) !important; }
.flash-error { border-left-color: var(--accent) !important; }
.notice { margin: 16px 0; padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.notice p { margin-bottom: 10px; }

/* ---------- кабинет и биржа ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.subnav { display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.req-list { list-style: none; padding: 0; margin: 12px 0 0; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.req-row + .req-row { border-top: 1px solid var(--line); }
.req-link { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.req-link:hover { background: #F6F6F6; color: var(--ink); }
.req-link .lamp { padding-top: 5px; }
.req-main { display: flex; flex-direction: column; min-width: 0; }
.req-title { font-weight: 600; }
.req-meta { color: var(--muted); font-size: 14px; }
.req-side { grid-column: 2; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.req-budget { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.req-note { padding: 6px 16px 10px 42px; font-size: 13px; color: var(--accent); }
@media (min-width: 720px) {
  .req-link { grid-template-columns: auto 1fr auto; align-items: center; }
  .req-side { grid-column: auto; justify-content: flex-end; text-align: right; }
}
.choice-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.choice-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 64px 18px 20px; position: relative; background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; text-decoration: none; color: var(--ink); }
.choice-list a::after { content: ""; position: absolute; right: 14px; top: 50%; width: 36px; height: 36px; margin-top: -18px; background: var(--accent) var(--arrow) center / 14px no-repeat; }
.choice-list a:hover { border-color: var(--accent); }
.pager { display: flex; gap: 16px; justify-content: center; padding: 16px 0; }

.req-head { padding-top: 16px; }
.req-head h1 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 10px; }
.req-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .req-layout { grid-template-columns: 1.35fr 1fr; gap: 40px; } .chat-col { position: sticky; top: 16px; } }
.next { background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--accent); padding: 20px 22px; margin-top: 8px; }
.next-title { font-size: 18px; margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.secondary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.secondary summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.paylink { padding: 10px 12px; background: #F1F1F1; word-break: break-all; }
.paylink-warn { background: #FCEBE8; }
.offers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; }
.offer-selected { border-color: var(--ink); }
.offer p { margin: 0 0 4px; }
.offer-side { text-align: right; }
.offer-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.doc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.timeline li { position: relative; padding: 6px 0 6px 22px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; background: var(--line-strong); }
.timeline time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }

.chat-col { background: var(--surface); box-shadow: var(--shadow); padding: 18px; }
.chat-col h2 { font-size: 18px; }
.threads { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.threads a { padding: 4px 10px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.threads a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.messages { list-style: none; padding: 0; margin: 0 0 12px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { align-self: flex-start; max-width: 88%; padding: 8px 12px; background: #F1F1F1; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.msg-mine { align-self: flex-end; background: #E6E6E6; }
.msg-system { align-self: stretch; max-width: none; background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }
.msg-flagged { box-shadow: inset 3px 0 0 var(--accent); }
.msg-meta { font-size: 12px; color: var(--muted); }
.msg-flag { font-size: 12px; color: var(--accent); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 46px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); box-shadow: var(--shadow); overflow: hidden; margin: 16px 0; }
.stats div { background: var(--surface); padding: 14px 16px; }
.stats dt { color: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats-wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.table-wrap { overflow-x: auto; background: var(--surface); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes li.unread { font-weight: 600; }
.verify-verified { border-left: 4px solid var(--lamp-green); }
.verify-pending { border-left: 4px solid var(--line-strong); }
.verify-new, .verify-rejected { border-left: 4px solid var(--accent); }
.verify-blocked { border-left: 4px solid var(--ink); }
.secret { font-size: 17px; letter-spacing: .08em; word-break: break-all; }
.wrap-anywhere { overflow-wrap: anywhere; }
.plain-steps { padding-left: 1.3em; }
