/* RFPGU.TAXI — публичная проверка путевых листов, светлая реестровая тема.
   Самодостаточный файл: legacy style.css на этой странице не подключать. */
:root {
  color-scheme: only light;
  --blue: #075da6;
  --ink: #202b39;
  --subtle: #627185;
  --line: #e1e7ef;
  --canvas: #f4f6f9;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color-scheme: only light; }
body {
  margin: 0; padding: 0; min-width: 0; min-height: 100vh;
  background: var(--canvas); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
.page-topbar { background: #fff; border-bottom: 1px solid var(--line); }
.page-topbar-inner {
  max-width: 1050px; min-height: 70px; margin: 0 auto; padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-link:focus-visible { outline: 3px solid #72ade2; outline-offset: 4px; }
.brand-symbol {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid;
  place-items: center; background: #fff; border: 1px solid #dde6f1; border-radius: 6px;
}
.brand-symbol svg { display: block; width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 17px; letter-spacing: .035em; color: #153c60; line-height: 1.15; }
.brand-text small { font-size: 10px; color: #6c7b89; }
.topbar-caption { font-size: 12px; color: var(--subtle); text-align: right; }
.hero { background: var(--blue); color: #fff; }
.hero::before, .hero::after { display: none !important; }
.hero-inner { max-width: 1050px; margin: 0 auto; padding: 26px 24px 29px; }
.hero-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #d2eaff; }
.hero h1 { margin: 6px 0 0; color: #fff; font-size: clamp(23px, 3vw, 29px); font-weight: 700; line-height: 1.23; }
.hero p { margin: 6px 0 0; color: #e8f3fd; font-size: 13px; line-height: 1.5; }
main.card {
  width: min(100% - 40px, 1000px); max-width: 1000px;
  margin: 20px auto 36px; padding: 28px 32px 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  box-shadow: 0 3px 15px rgba(25,47,75,.025);
}
.page-crumbs { margin-bottom: 20px; font-size: 12px; color: #7a8795; }
.page-crumbs span { margin: 0 7px; color: #9cabb9; }
main.card > .header { margin: 0 0 23px; text-align: left; }
.record-eyebrow { display: none; }
main.card .header h2 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 700; }
main.card .header p { margin: 7px 0 0; color: var(--subtle); font-size: 13px; }
.record-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.record-head:has(#number-section[hidden]) { grid-template-columns: 1fr; }
#status, #number-section {
  min-width: 0; min-height: 82px; margin: 0; padding: 17px 19px;
  border: 1px solid #dbe4ef; border-radius: 5px;
  background: #fff; color: var(--ink);
}
#status {
  display: flex; justify-content: center; align-items: center;
  text-align: center; font-size: 17px; font-weight: 700;
}
#status.valid { color: #19673b; background: #eef8f0; border-color: #d0e5d5; }
#status.closed { color: #78500d; background: #fff8ea; border-color: #f0e0bd; }
#status.revoked { color: #96323d; background: #fff3f3; border-color: #edcbd0; }
#status.not-found { color: #7f5a15; background: #fff9ee; border-color: #e9d9ae; }
#number-section { text-align: left; }
#number-section .muted { margin: 0 0 5px; font-size: 12px; color: #5c7089; }
#number-section .number { font-size: clamp(20px, 2.7vw, 26px); color: var(--blue); line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
#timer-section {
  margin: 12px 0 0; padding: 14px 19px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 5px; background: #f9fbfd;
  text-align: left;
}
#timer-section p { margin: 0; color: #56677c; font-size: 13px; }
#timer { font-size: clamp(22px, 3vw, 30px); font-weight: 750; color: #144b80; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#details { min-width: 0; margin-top: 24px; background: #fff; color: var(--ink); }
#details .section {
  display: block; min-width: 0; margin: 0 0 25px; padding: 0;
  border: 0; border-radius: 0; box-shadow: none;
  background: #fff !important; color: var(--ink);
}
#details .section:last-child { margin-bottom: 0; }
#details .section h2 {
  margin: 0; padding: 10px 0 11px 11px;
  border: 0; border-bottom: 1px solid #dbe4ee; border-left: 3px solid var(--blue);
  background: #fff; color: #243447; font-size: 17px; font-weight: 700; line-height: 1.3;
}
#details .field {
  display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  gap: 0; min-width: 0; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid #edf0f5;
  background: #fff !important; color: var(--ink);
  font-size: 14px; line-height: 1.5;
}
#details .field:last-child { border-bottom: 0; }
#details .field-label, #details .field-value {
  min-width: 0; margin: 0; padding: 11px 13px;
  border: 0; box-shadow: none; background: #fff !important;
  overflow-wrap: anywhere; word-break: normal; white-space: normal;
}
#details .field-label { color: #5f6e80 !important; font-weight: 500; text-align: left; }
#details .field-value { color: #1f2937 !important; font-weight: 650; text-align: left; }
#journal-footer {
  display: flex; align-items: flex-start; gap: 13px;
  margin-top: 25px; padding: 16px 17px;
  background: #f3faf5; color: #246b42; border: 1px solid #d6e8da;
  border-radius: 5px; font-size: 12px; line-height: 1.6;
}
#journal-footer p { margin: 0; }
#journal-footer .check {
  width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center;
  border-radius: 50%; background: #2f8653; color: #fff; line-height: 1; font-weight: 800;
}
.loading, .error {
  padding: 20px; border-radius: 5px; border: 1px solid #e3e9f1;
  background: #f9fbfe; color: #52687e; text-align: center;
}
.error { background: #fff5f5; border-color: #f0d5d5; color: #933744; }
.bottom-brand, .site-footer { display: none !important; }
@media (max-width: 700px) {
  .page-topbar-inner { min-height: 65px; padding: 10px 16px; }
  .hero-inner { padding: 23px 17px 25px; }
  main.card { width: calc(100% - 24px); margin: 12px auto 25px; padding: 22px 16px 25px; }
  .page-crumbs { margin-bottom: 18px; }
  .record-head { grid-template-columns: 1fr; gap: 9px; }
  #status, #number-section { min-height: 65px; padding: 14px 15px; }
  #details .field { grid-template-columns: minmax(0, 35%) minmax(0, 65%); }
  .topbar-caption { display: none; }
}
@media (max-width: 460px) {
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 9px; }
  main.card .header h2 { font-size: 20px; }
  #timer-section { align-items: flex-start; flex-direction: column; gap: 5px; }
  #details .section h2 { font-size: 16px; }
  #details .field { grid-template-columns: 1fr; gap: 0; padding: 10px 1px; }
  #details .field-label { padding: 0 11px 3px; font-size: 12px; }
  #details .field-value { padding: 0 11px 0; font-size: 14px; }
}

/* CUSTOM BRAND LOGO V7 — one source of truth */
.page-topbar,
.page-topbar-inner,
.brand-link {
  overflow: visible;
}
.page-topbar-inner {
  min-height: 0;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: block;
  flex: 0 1 500px;
  width: 500px;
  min-width: 0;
  max-width: 100%;
  height: auto;
  text-decoration: none;
}
.brand-link .brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: 1304 / 372;
  object-fit: contain;
  object-position: left center;
  clip-path: none;
}
@media (max-width: 700px) {
  .page-topbar-inner {
    justify-content: center;
    padding: 12px 16px;
  }
  .brand-link {
    flex: 0 1 350px;
    width: 350px;
    max-width: 100%;
  }
  .topbar-caption { display: none; }
}


/* LOGO SIZE V9 */

.brand-link {
  width: 380px;
  flex: 0 1 380px;
  max-width: 100%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}

@media (max-width: 700px) {
  .brand-link {
    width: 260px;
    flex: 0 1 260px;
    max-width: 100%;
  }
}


/* MOBILE LOGO LEFT ALIGN */

@media (max-width: 700px) {
  .page-topbar-inner {
    justify-content: flex-start;
  }

  .brand-link {
    margin-left: 0;
    margin-right: auto;
  }
}
