@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #edf2f6;
  --text: #303c47;
  --muted: #667684;
  --line: #ccd9e3;
  --nav: #385d76;
  --link: #315f7d;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--page);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--link);
  text-decoration: none;
}

.partner-badges {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  background: transparent;
}

.partner-badges img {
  height: 84px;
  width: auto;
  max-width: 19%;
  display: block;
  object-fit: contain;
  filter: saturate(0.95);
}

a:hover {
  text-decoration: underline;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid #2c759b;
  outline-offset: 3px;
}

.container {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  color: #fff;
  background: var(--nav);
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  background: #fff;
  border-top: 3px solid var(--nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #2e526c;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.brand>span {
  color: #6d7b87;
  font-size: 12px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}

.local-label {
  color: #6b7b88;
  font-size: 11px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lang-switch .lang {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 3px;
  background: #e6eef3;
  color: #4a697b;
  font-size: 12px;
  text-decoration: none;
}

.lang-switch .lang.active {
  background: #6f8f9f;
  color: #fff;
}

.header-qr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
}

.header-qr svg {
  width: 15px;
  height: 15px;
}

.navigation-bar {
  background: #c72b24;
  border-bottom: 1px solid #a8241d;
}

.main-nav {
  display: flex;
  align-items: stretch;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 10px 23px;
  font-size: 13px;
  border-right: 1px solid #ffffff24;
  min-height: 41px;
}

/* Ensure header tools (including login) remain visible on narrow screens */
.header-tools {
  z-index: 2;
}

.header-tools .login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav a:first-child {
  border-left: 1px solid #ffffff24;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #2b4d65;
  text-decoration: none;
}

.page-main {
  flex: 1;
  padding-top: 19px;
  padding-bottom: 27px;
}

.site-warning {
  background: #fff3c5;
  border: 1px solid #f0d98a;
  color: #6b581f;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
}

.main-layout {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-top: 12px;
}

.main-left {
  flex: 1 1 0;
}

.sidebar {
  width: 280px;
  flex: 0 0 280px;
}

.sidebar-search {
  background: #fff;
  border: 1px solid #d7e0e7;
  padding: 12px;
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #c7d6de;
  font-size: 13px;
}

.search-row button {
  min-width: 44px;
  background: #c62828;
  color: #fff;
  border: none;
  padding: 6px 8px;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: block;
  border: 1px solid #d7e0e7;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-title {
  padding: 10px 12px;
  background: #e74b3b;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* Вынесено из .card-title — правила были вложены по ошибке и не применялись */
.main-nav a[href="/login"] { background: #6b7b88; color: #fff; }
.participants-row td { background: #efefef; }
.transaction-table { border: 1px solid #a8c6cf; }
.transaction-table th, .transaction-table td { border-color: #a8c6cf; }

.card+.card {
  margin-top: 0;
}

.information-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e4d48c;
  background: #fff9df;
  padding: 12px 16px;
  margin-bottom: 19px;
  color: #6a5e32;
}

.information-notice svg {
  width: 21px;
  height: 21px;
  color: #8f7c36;
}

.information-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.information-notice strong {
  font-weight: 500;
}

.content-panel {
  background: #fff;
  border: 1px solid #d7e0e7;
  padding: 24px 30px 18px;
  min-width: 0;
}

.content-panel h1 {
  margin: 0 0 23px;
  text-align: center;
  color: #354b5b;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.6;
}

.parameter-column {
  width: 28%;
}

.value-column {
  width: 72%;
}

.transaction-table th,
.transaction-table td {
  border: 1px solid var(--line);
  padding: 10px 15px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.transaction-table th {
  background: #f2f6f9;
  text-align: left;
  color: #506575;
  font-size: 13px;
  font-weight: 400;
}

.transaction-table td {
  background: #fff;
}

.document-title {
  font-weight: 500;
}

.is-empty {
  color: #6d7b85;
}

.notary-name {
  font-size: 14px;
  font-weight: 600;
  color: #354d61;
  margin-bottom: 4px;
}

.notary-detail {
  font-size: 13px;
  line-height: 1.7;
  color: #526674;
}

.participants-row th {
  vertical-align: middle;
}

.participants-row td {
  padding-top: 16px;
  padding-bottom: 17px;
}

.participant p {
  margin: 0;
}

.participant .participant-role {
  margin-bottom: 8px;
  color: #536674;
  font-size: 13px;
}

.participant-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.participant+.participant {
  margin-top: 24px;
}

.property-location {
  white-space: pre-line;
}

.cadastral-number {
  font-variant-numeric: tabular-nums;
}

.contract-price {
  font-weight: 500;
}

.transaction-identifier {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f7f9fb;
  font-size: 13px;
  line-height: 1.8;
  color: #455b6b;
  overflow-wrap: anywhere;
}

.transaction-identifier strong {
  font-weight: 600;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding-top: 15px;
  font-size: 11px;
}

.record-actions>span {
  color: #bec9d1;
}

.record-actions a,
.record-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  font-size: inherit;
}

.record-actions button:hover {
  text-decoration: underline;
}

.record-actions svg {
  width: 14px;
  height: 14px;
}

.record-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.copy-fallback {
  margin-top: 15px;
  color: #5c7180;
  text-align: left;
  font-size: 12px;
}

.copy-fallback input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #b9cbd8;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  border-radius: 0;
}

.site-footer {
  background: #e4ebf0;
  border-top: 1px solid #d3dee6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 21px;
  color: #5f7483;
}

.footer-inner strong {
  font-size: 13px;
  font-weight: 500;
}

.footer-inner>span {
  font-size: 11px;
  line-height: 1.7;
}

.page-message {
  border: 1px solid var(--line);
  background: #f6f9fb;
  padding: 35px 16px;
  text-align: center;
  font-size: 13px;
  color: #5e7484;
}

.page-error {
  border: 1px solid #d9b6ab;
  background: #fff6f2;
  padding: 18px;
  font-size: 13px;
  color: #785c50;
}

.page-error p {
  margin: 0 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 33px;
  padding: 7px 12px;
  border: 1px solid #b7c9d7;
  border-radius: 0;
  background: #f4f7fa;
  color: var(--link);
  font-size: 12px;
  line-height: 1.5;
}

.button:hover {
  background: #e9f0f5;
  text-decoration: none;
}

.button-primary {
  background: #a8241d;
  text-decoration: none;
  color: #fff;
}

.button-primary:hover {
  background: #2b4d65;
}

.button svg {
  width: 15px;
  height: 15px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 24px);
  width: max-content;
  padding: 12px 16px;
  background: #2d4b60;
  color: #fff;
  border: 1px solid #45667d;
  font-size: 12px;
  line-height: 1.6;
}

background: #a8241d;
flex: 1;
padding-top: 20px;
padding-bottom: 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  min-height: 32px;
  margin-bottom: 15px;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.qr-panel {
  width: min(500px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7e0e7;
  padding: 24px 28px;
  text-align: center;
}

.qr-panel h1 {
  margin: 0 0 5px;
  color: #354f63;
  font-size: 22px;
  font-weight: 500;
}

.qr-intro {
  margin: 0 0 21px;
  color: #637a8a;
  font-size: 12px;
}

.qr-frame {
  width: min(260px, 100%);
  margin: 0 auto 20px;

  .brand-logo {
    height: 48px;
    display: block;
  }

  padding: 5px;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.qr-panel h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.qr-network-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #617685;
  margin: 12px 0;
  line-height: 1.7;
}

.qr-network-note svg {
  width: 15px;
  height: 15px;
}

.network-url {
  display: block;
  font-family: Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  margin: 15px 0 18px;
  border: 1px solid #dde5eb;
  background: #f6f8fa;
}

.qr-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.qr-footnote {
  max-width: 500px;
  margin: 17px auto 0;
  color: #637785;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}

.qr-message {
  padding: 55px 0;
  font-size: 13px;
  color: #5c7283;
}

.qr-error>svg {
  width: 32px;
  height: 32px;
  margin: 17px 0;
  color: #7f6a5f;
}

.qr-error p {
  font-size: 13px;
  line-height: 1.7;
  color: #765e50;
}

@media (max-width: 760px) {

  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 80px;
    gap: 16px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand>span {
    font-size: 11px;
  }

  .header-tools {
    gap: 14px;
  }

  .header-tools .local-label {
    display: none;
  }

  .header-qr {
    font-size: 11px;
  }

  .main-nav a {
    padding-inline: 18px;
  }

  .content-panel {
    padding: 21px 17px 14px;
  }

  .content-panel h1 {
    font-size: 21px;
    margin-bottom: 21px;
  }

  .transaction-table th,
  .transaction-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {

  .container {
    width: calc(100% - 16px);
  }

  .header-inner {
    min-height: 79px;
    padding-inline: 5px;
    gap: 10px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand>span {
    font-size: 11px;
  }

  .header-qr {
    font-size: 11px;
    gap: 5px;
  }

  .header-qr svg {
    width: 14px;
    height: 14px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .main-nav a {
    padding: 9px 4px;
    min-height: 38px;
    font-size: 11px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .page-main {
    padding-top: 12px;
    padding-bottom: 17px;
  }

  .information-notice {
    padding: 10px;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
  }

  .information-notice svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .information-notice p {
    font-size: 11px;
    line-height: 1.7;
  }

  .content-panel {
    padding: 18px 8px 10px;
  }

  .content-panel h1 {
    font-size: 20px;
    margin: 0 4px 18px;
  }

  .transaction-table {
    font-size: 14px;
    line-height: 1.6;
  }

  .transaction-table th,
  .transaction-table td {
    padding: 9px 8px;
  }

  .transaction-table th {
    font-size: 13px;
  }

  .notary-name {
    font-size: 14px;
    line-height: 1.65;
  }

  .notary-detail {
    font-size: 13px;
  }

  .participants-row td {
    padding-top: 14px;
    padding-bottom: 15px;
  }

  .participant .participant-role {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .participant-name {
    font-size: 14px;
    line-height: 1.7;
  }

  .participant+.participant {
    margin-top: 22px;
  }

  .transaction-identifier {
    font-size: 13px;
    padding: 10px 9px;
  }

  .record-actions {
    font-size: 11px;
    gap: 10px;
    padding-top: 10px;
  }

  .footer-inner {
    padding: 17px 5px;
  }

  .footer-inner>span {
    font-size: 11px;
  }

  .qr-main {
    padding-top: 12px;
    padding-bottom: 22px;
  }

  .qr-panel {
    padding: 20px 16px;
  }

  .qr-network-note {
    font-size: 11px;
  }

  .qr-footnote {
    padding-inline: 8px;
  }
}

@media (max-width: 360px) {
  .brand strong {
    font-size: 19px;
  }

  .header-qr {
    font-size: 10px;
  }

  .content-panel {
    padding-inline: 6px;
  }

  .transaction-table th,
  .transaction-table td {
    padding-inline: 6px;
  }

  .main-nav a {
    font-size: 10px;
    padding-inline: 3px;
  }

  .content-panel h1 {
    font-size: 19px;
  }
}

@media print {

  .site-header,
  .navigation-bar,
  .record-actions,
  .copy-fallback,
  .toast,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .container {
    width: 100%;
  }

  .page-main,
  .content-panel {
    padding: 0;
  }

  .content-panel {
    border: 0;
  }

  .information-notice {
    margin-bottom: 16px;
  }

  .transaction-table tr {
    break-inside: avoid;
  }

  .site-footer {
    background: #fff;
    margin-top: 15px;
  }
}