/* Legal pages and consent controls share the site's existing typography. */
.legal-page {
  background: #f3f5f7;
  color: #202a35;
}
.legal-header {
  background: #142331;
  padding: 12px 0;
}
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-header a:last-child {
  color: #f1c66e;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.legal-header img {
  width: 150px;
  height: 70px;
  object-fit: contain;
}
.legal-shell {
  max-width: 1120px;
  margin: auto;
  padding: 48px 24px 80px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  max-width: 840px;
  letter-spacing: -0.025em;
}
.legal-date {
  color: #586575;
  margin: 18px 0;
}
.legal-draft {
  padding: 20px 24px;
  border-left: 4px solid #b68b39;
  background: #fff2d7;
  line-height: 1.6;
  margin: 24px 0 32px;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.legal-nav a {
  padding: 10px 15px;
  border: 1px solid #c5cdd5;
  border-radius: 7px;
  color: #263c50;
  background: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-nav a[aria-current] {
  background: #142331;
  color: #f1c66e;
}
.legal-columns {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
}
.legal-toc {
  align-self: start;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.legal-page a {
  overflow-wrap: anywhere;
}
.legal-toc a,
.legal-body a {
  color: #72500c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-body {
  background: white;
  padding: 32px;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  min-width: 0;
}
.legal-body section {
  scroll-margin-top: 20px;
}
.legal-body section + section {
  margin-top: 36px;
}
.legal-body h2 {
  font-size: 23px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.legal-body p,
.legal-body dl {
  font-size: 16px;
  line-height: 1.8;
  margin: 12px 0;
}
.legal-body dt {
  font-weight: 700;
  margin-top: 16px;
}
.legal-body dd {
  margin: 5px 0 12px;
  color: #4a5765;
}
.legal-page a:focus-visible,
.cookie-notice a:focus-visible {
  outline: 3px solid #b88b39;
  outline-offset: 4px;
}
#inquiry-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f3f5f7;
  border: 1px solid #cbd2da;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  margin: 18px 0;
}
#inquiry-form .consent-row input {
  appearance: auto;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 3px 0 0;
  accent-color: #8a641f;
}
#inquiry-form .consent-row a,
.privacy-links a {
  color: #765211;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-links {
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0;
}
.privacy-links a {
  display: inline-block;
  margin-right: 14px;
}
.cookie-notice {
  position: fixed;
  z-index: 45;
  bottom: 20px;
  left: 20px;
  width: min(510px, calc(100% - 40px));
  padding: 20px;
  background: #142331;
  color: #fff;
  border: 1px solid #bf9c59;
  border-radius: 12px;
  box-shadow: 0 8px 36px #0004;
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-notice h2 {
  font-size: 18px;
  color: #f1c66e;
  margin: 0 0 8px;
}
.cookie-notice p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.cookie-notice a {
  color: #f1c66e;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cookie-actions button {
  padding: 10px 22px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #f1c66e;
  color: #142331;
  font-weight: 700;
  cursor: pointer;
}
.cookie-actions a {
  font-size: 13px;
}
body:has(dialog[open]) .cookie-notice {
  visibility: hidden;
}
@media (max-width: 767px) {
  .legal-shell {
    padding: 28px 18px 48px;
  }
  .legal-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .legal-toc {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .legal-body {
    padding: 22px 18px;
  }
  .legal-body h2 {
    font-size: 21px;
  }
  .legal-draft {
    padding: 16px;
  }
  .legal-nav a {
    font-size: 13px;
    padding: 9px;
  }
  .cookie-notice {
    left: 12px;
    width: calc(100% - 24px);
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 16px;
  }
  .legal-page .cookie-notice {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

#inquiry-form .consent-row {
  flex-direction: row;
}
#inquiry-form .consent-row > span {
  display: block;
  flex: 1;
  color: #354351;
  font-size: 14px;
  line-height: 1.65;
}
#inquiry-form .consent-row a {
  display: inline;
}

.legal-page .legal-body p {
  color: #465462;
}
.legal-page .section-note {
  color: #7b5a20;
}
.legal-page .legal-body strong {
  color: #202a35;
}

/* 2026-11-20: audit fixes — compact cookie bar, header CTA, show-more, focus, hero country links. */
.cookie-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(640px, calc(100% - 40px));
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
}
.cookie-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-notice button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: #f1c66e;
  color: #142331;
  font-weight: 700;
  cursor: pointer;
}
.header-cta {
  min-height: 44px;
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.show-more {
  display: flex;
  margin: 28px auto 0;
  min-width: 240px;
  justify-content: center;
  border: 1px solid #c9ced5;
  background: #fff;
  color: #171a20;
}
.show-more:hover {
  border-color: #bf9c59;
}
.show-more[hidden] {
  display: none;
}
.country:focus-visible {
  outline-offset: -3px;
}
.hero-countries > a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.hero-countries > a:hover {
  border-bottom-color: currentColor;
}
@media (max-width: 1280px) {
  .header-cta {
    display: none;
  }
}
@media (max-width: 767px) {
  .cookie-notice {
    left: 12px;
    width: calc(100% - 24px);
    padding: 8px 8px 8px 12px;
    gap: 10px;
  }
  .cookie-notice p {
    font-size: 12px;
  }
}

/* 2026-11-20: «Пример отчёта» — the auction sheet next to a plain-language reading. */
.report {
  background: #fff;
  color: #1d2530;
}
.report h2,
.report h3 {
  color: #171a20;
}
.report .heading-aside {
  color: #5d6874;
}
.report .section-note {
  color: #82602c;
}
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.report-sheet {
  display: block;
  border: 1px solid #d8dde3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #171a20;
  text-decoration: none;
}
.report-sheet img {
  display: block;
  width: 100%;
  height: auto;
}
.report-sheet span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid #e3e7ec;
  color: #5f6872;
}
.report-notes h3 {
  font-size: 22px;
  margin: 0 0 18px;
}
.report-notes dl {
  margin: 0 0 24px;
  display: grid;
  gap: 0;
}
.report-notes dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e3e7ec;
}
.report-notes dt {
  color: #5f6872;
  font-size: 14px;
}
.report-notes dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #202a35;
}
@media (max-width: 900px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .report-notes dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Просмотр фото поверх страницы (lightbox.js) */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(10, 13, 18, 0.94);
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(10, 13, 18, 0.6);
}
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 48px;
  overflow: auto;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
}
.lightbox.zoomed .lightbox-stage {
  display: block;
}
.lightbox.zoomed .lightbox-stage img {
  max-width: none;
  max-height: none;
  width: max(100%, 1400px);
  cursor: zoom-out;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 1;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}
.lightbox-close {
  top: 8px;
  right: 8px;
}
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-arrow.prev {
  left: 8px;
}
.lightbox-arrow.next {
  right: 8px;
}
.lightbox-count {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #c9d1da;
}
.meta-note {
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.75;
}
