/* Digital RFQ КОРВЕТ — «заводской шильдик-паспорт».
   Бренд-токены сняты с oilpump.ru 19.09.2026 (шаблон Bitrix 435КБ + custom.css):
   • кобальт #004AC5 — фирменный (168 вхождений в шаблоне), жёлтый #FFC000/#FFAE00 (приборные риски),
     графит #191919, фон #F0F1F6
   • Ubuntu (custom.css) + Roboto — шрифты сайта
   • лого 323×98 PNG (шапка сайта, марка Dextra)
   Концепция: секции как паспортные таблички насоса — кобальтовые шапки с гравировкой номера,
   жёлтые приборные риски, пары min/max как единые измерительные блоки со стрелкой диапазона.
   Отличия от существующих RFQ: ЭНА (карточки), ONIS (чипы-степпер), ГМС (формуляр с миллиметровкой),
   КНЗ (горизонтальный леджер), Ливнынасос (вертикальный разрез скважины), ИСТРАТЕХ (оранжевый щит).
   Кобальт — только у КОРВЕТ. Ни одного прямого цвета в правилах — только переменные. Обе темы ≥ WCAG AA. */

:root {
  --brand: #004AC5;          /* кобальт — фирменный цвет сайта */
  --brand-deep: #191919;     /* графит шапок */
  --brand-ink: #0D358C;      /* производный тёмный кобальт */
  --accent: #FFC000;         /* жёлтый приборный */
  --accent-2: #FFAE00;
  --accent-soft: rgba(255, 192, 0, .16);
  --ok: #2E7D32;
  --warn: #B26A00;
  --err: #C62828;
  --bg: #F0F1F6;
  --paper: #FFFFFF;
  --paper-2: #F6F7FA;
  --line: #DCDDE3;
  --line-strong: #B9BCC7;
  --ink: #1A1C22;
  --ink-2: #4A4E58;
  --ink-3: #7C818D;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(20, 24, 34, .10), 0 4px 14px rgba(20, 24, 34, .07);
  --font: 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif;
  --head: 'Ubuntu', 'Roboto', 'Segoe UI', sans-serif;
  --mono: 'Consolas', 'Roboto Mono', 'Courier New', monospace;
}
[data-theme="dark"] {
  --brand: #5B8AE8;
  --brand-deep: #12161D;
  --brand-ink: #0D1B3D;
  --accent: #FFC933;
  --accent-2: #FFB300;
  --accent-soft: rgba(255, 201, 51, .18);
  --ok: #7BC47F;
  --warn: #E0A458;
  --err: #E57373;
  --bg: #10131A;
  --paper: #171B23;
  --paper-2: #1C212B;
  --line: #2A303C;
  --line-strong: #3C4351;
  --ink: #E6E9EF;
  --ink-2: #B2B9C5;
  --ink-3: #7E8593;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.45; }

/* ---------- демо-флаг ---------- */
.demo-flag {
  background: var(--brand-deep); color: #fff; text-align: center;
  padding: 8px 14px; font-size: 12.5px; letter-spacing: .01em;
}
.demo-flag b { color: var(--accent); }

/* ---------- каркас ---------- */
.shell { display: flex; min-height: calc(100vh - 38px); align-items: stretch; }
.side { width: 280px; flex: 0 0 280px; background: var(--brand); color: #EDF2FB; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.main__body { flex: 1; padding: 22px 26px 10px; max-width: 1120px; width: 100%; margin: 0 auto; }

/* ---------- «паспортная табличка» ---------- */
.nameplate { border: 2px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 14px 12px; background: var(--brand-ink); position: relative; }
.nameplate::before, .nameplate::after { /* крепёжные усики таблички */
  content: ''; position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px rgba(255,192,0,.3);
}
.nameplate::before { left: 14px; }
.nameplate::after { right: 14px; }
.nameplate__brand { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); padding: 10px 8px; margin-bottom: 8px; }
.nameplate__logo { max-width: 170px; height: auto; display: block; }
.nameplate__doc { font-family: var(--head); font-size: 12px; text-align: center; color: #D8E2F5; letter-spacing: .02em; margin-bottom: 10px; }
.nameplate__prog { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--accent); border-top: 1px dashed rgba(255,255,255,.3); padding-top: 8px; }

/* ---------- оглавление ---------- */
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc__cap { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #A9BEE8; padding: 6px 8px 4px; }
.toc__item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; color: #E3EBF9; padding: 7px 8px; font: inherit; font-size: 12.5px; border-radius: var(--radius); cursor: pointer; }
.toc__item:hover { background: rgba(255,255,255,.10); }
.toc__item.is-cur { background: var(--accent); color: #1A1C22; }
.toc__item.is-done { color: #A9BEE8; }
.toc__no { font-family: var(--mono); font-size: 11px; opacity: .8; }
.toc__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc__ok { color: #9FD3A2; font-size: 12px; }

.side__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.theme-toggle { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center; }
.theme-toggle__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }

/* ---------- заголовок формы ---------- */
.formhead { margin-bottom: 14px; }
.formhead__kicker { font-family: var(--head); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; }
.formhead__title { font-family: var(--head); font-size: 23px; margin: 4px 0 6px; font-weight: 500; letter-spacing: .01em; }
.formhead__lead { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 72ch; }

/* ---------- секция = паспортная табличка ---------- */
.fsection { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.sechead { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; background: var(--brand); color: #fff; border-bottom: 4px solid var(--accent); }
.sechead__no { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent); background: var(--brand-ink); min-width: 36px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); }
.sechead__t { flex: 1; min-width: 0; }
.sechead__title { font-family: var(--head); font-size: 15.5px; margin: 0; font-weight: 500; letter-spacing: .02em; }
.sechead__doc { display: block; color: #B9CBEA; font-size: 11.5px; }
.sechead__gauge { /* приборная риска таблички */
  width: 34px; height: 10px; flex: 0 0 34px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px);
}

/* ---------- строки «термин → измерительный блок» ---------- */
.fbody { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 1fr); }
.frow { display: contents; }
.frow > .frow__term, .frow > .frow__in { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.frow__term { color: var(--ink); border-right: 2px solid var(--line); font-family: var(--head); }
.frow__in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--paper-2); }
.frow__unit { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.freq { color: var(--brand); font-weight: 700; margin-left: 3px; }
.frow-hint { display: block; width: 100%; color: var(--ink-3); font-size: 11.5px; font-weight: 400; margin-top: 3px; line-height: 1.35; font-family: var(--font); }
.frow[hidden] { display: none; }

/* ---------- измерительный блок min ↔ max ---------- */
.minmax { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.minmax__cell { display: flex; align-items: center; gap: 6px; flex: 1 1 90px; min-width: 0; }
.minmax__tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--ink-3); border-radius: 2px; padding: 2px 6px; }
.minmax__cell .finput { flex: 1; min-width: 0; }
.minmax__arrow { color: var(--accent-2); font-weight: 700; font-size: 15px; }

/* ---------- контролы ---------- */
.finput, .ftextarea, .fselect {
  flex: 1 1 180px; min-width: 0; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 10px; outline: none;
}
.finput:focus, .ftextarea:focus, .fselect:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 74, 197, .16); }
.ftextarea { resize: vertical; min-height: 60px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips--col { flex-direction: column; align-items: stretch; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; background: var(--paper); font-size: 12px; color: var(--ink); user-select: none; }
.fchips--col .fchip { border-left: 3px solid var(--accent); }
.fchip:hover { border-color: var(--brand); }
.fchip input { accent-color: var(--brand); margin: 0; }
.fchip:has(input:checked) { border-color: var(--brand); background: rgba(0, 74, 197, .08); font-weight: 600; }

/* ---------- кнопки/навигация ---------- */
.stepnav { display: flex; align-items: center; gap: 10px; margin: 16px 0 26px; flex-wrap: wrap; }
.btn { font: inherit; font-size: 13.5px; font-weight: 600; border-radius: var(--radius); border: 1px solid transparent; padding: 10px 18px; cursor: pointer; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.stepnav__next, .stepnav__send { background: var(--brand); color: #fff; }
.stepnav__next:hover, .stepnav__send:hover { background: var(--brand-ink); }
.stepnav__errors { color: var(--err); font-size: 13px; }
.hintline { min-height: 18px; color: var(--ink-2); font-size: 13px; }
.notice--err { border: 1px solid var(--err); color: var(--err); border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; background: rgba(198, 40, 40, .07); }

/* ---------- сводка ---------- */
.review { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.review__head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--brand); color: #fff; border-bottom: 4px solid var(--accent); font-size: 14px; }
.review__head a { color: var(--accent); }
.u-mla { margin-left: auto; font-size: 13px; }
.review__body { padding: 6px 16px 12px; }
.review__block { padding: 8px 0; }
.review__block dt { font-family: var(--head); font-weight: 700; color: var(--brand); font-size: 12.5px; margin-bottom: 4px; }
.review__row { display: flex; gap: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.review__row span { color: var(--ink-2); min-width: 0; flex: 1.2; }
.review__row b { flex: 1; text-align: right; overflow-wrap: anywhere; }

/* ---------- порядок отправки ---------- */
.dnote { display: flex; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; background: var(--paper-2); font-size: 13.5px; }
.dnote__n { flex: 0 0 26px; height: 26px; border-radius: var(--radius); background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.dnote--warn { border-color: var(--warn); }
.dnote--warn .dnote__n { background: var(--warn); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.consent input { accent-color: var(--brand); margin-top: 2px; }
.consent-note { color: var(--ink-3); font-size: 12.5px; padding: 0 2px; }
.u-mt12 { margin-top: 12px; } .u-mt14 { margin-top: 14px; } .u-mt18 { margin-top: 18px; }
.u-grey { color: var(--ink-3); }
.group__src--plain { color: var(--ink-3); font-size: 12.5px; }

/* ---------- вложения ---------- */
.files { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.files__list { list-style: none; margin: 0; padding: 0; }
.files__list li { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.files__list li span:first-child { flex: 1; overflow-wrap: anywhere; }
.files__list button { border: 0; background: transparent; color: var(--err); font-size: 16px; cursor: pointer; }

/* ---------- финал ---------- */
.done { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; text-align: center; }
.done__mark { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: rgba(46, 125, 50, .12); display: grid; place-items: center; }
.done__mark svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.4; }
.done h1 { font-family: var(--head); font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.done__id { font-family: var(--mono); color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.done p { color: var(--ink-2); font-size: 14px; max-width: 62ch; margin: 8px auto; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 14px 26px; }
.footer__cols { max-width: 1120px; margin: 0 auto; display: flex; gap: 26px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.footer__blk b { color: var(--ink); }
.footer__blk a { color: var(--brand); }
.footer__note { flex: 1 1 260px; color: var(--ink-3); min-width: 220px; }

/* ---------- honeypot ---------- */
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .shell { flex-direction: column; }
  .side { width: 100%; flex: none; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .nameplate { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; }
  .nameplate__doc { text-align: left; margin: 0; flex: 1; }
  .nameplate__prog { border: 0; padding: 0; margin-left: auto; }
  .toc { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .toc__cap { display: none; }
  .toc__item { width: auto; }
  .side__foot { margin: 0; }
}
@media (max-width: 760px) {
  .main__body { padding: 16px 12px 8px; }
  .fbody { grid-template-columns: 1fr; }
  .frow__term { border-right: 0; }
  .formhead__title { font-size: 18px; }
}
