:root {
  --op-ink: #111617;
  --op-teal: #17aeb5;
  --op-teal-dark: #087f86;
  --op-canvas: #f7f9f9;
  --op-line: #d8e1e3;
  --op-mint: #e5f4ec;
  --op-ice: #eaf2f5;
  --op-amber: #fff1d4;
  --op-rose: #fbe8e8;
  --service-shell-surface: #ffffff;
  --service-shell-border: var(--op-line);
  --service-shell-text: var(--op-ink);
  --service-shell-muted: #526164;
  --service-shell-primary: var(--op-teal-dark);
  --service-shell-primary-hover: #05666b;
  --service-shell-soft: var(--op-ice);
  --service-shell-focus: #17aeb5;
  --op-content-surface: #ffffff;
  --op-content-muted: #526164;
  --op-content-radius: 6px;
  --op-content-radius-compact: 4px;
}

body.search-page,
body.appraisal-page,
body.public-advisor-page,
body.company-analytics-page,
body.client-assistant-page,
body:has([data-op-service-nav]) {
  background-color: var(--op-canvas) !important;
  background-image: none !important;
}

[data-op-service-page] {
  color: var(--op-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

[data-op-service-page] :where(button, input, select, textarea) {
  letter-spacing: 0;
}

body[data-op-service-page="search"] :where(
  .hero-main,
  .card,
  .lot-card,
  .request-empty,
  .request-item,
  .crm-panel,
  .empty,
  .empty-diagnostics li,
  .result-section > summary,
  .fact,
  .market,
  .advisor-question,
  .advisor-hints article,
  .advisor-next,
  .risk,
  .decision-status
) {
  border-radius: var(--op-content-radius) !important;
  box-shadow: none !important;
}

body[data-op-service-page="search"] :where(.hero-main, .card, .lot-card) {
  background: var(--op-content-surface);
}

body[data-op-service-page="search"] :where(
  .ghost,
  .primary,
  .secondary,
  .appraise,
  .approve,
  .reject,
  .post,
  .source,
  .history-toggle,
  .field input,
  .field select,
  .field textarea,
  .post-preview
) {
  border-radius: var(--op-content-radius) !important;
  box-shadow: none !important;
}

body[data-op-service-page="search"] :where(
  .context-pill,
  .tag,
  .empty-source-chips span,
  .advisor-head span,
  .advisor-status
) {
  border-radius: var(--op-content-radius-compact) !important;
}

/* Keep the appraisal workspace on the shared portal geometry. */
body[data-op-service-page="appraisal"] .shell {
  width: min(1480px, calc(100% - 40px));
}

body[data-op-service-page="appraisal"] .appraisal-hero {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-op-service-page="appraisal"] .appraisal-hero .hero-main {
  border: 1px solid var(--op-line);
  border-radius: var(--op-content-radius) !important;
  background: var(--op-content-surface);
  box-shadow: none !important;
}

body[data-op-service-page="appraisal"] :where(
  .appraisal-conversation,
  .appraisal-workbench,
  .appraisal-panel,
  .appraisal-status,
  .document-slot,
  .document-slot-icon,
  .document-slot-action,
  .appraisal-extras,
  .appraisal-file-details,
  .appraisal-correction-details,
  .appraisal-critical-question,
  .appraisal-recognized.assistant-result,
  .recognized-limitations,
  .evidence-row,
  .evidence-file-icon,
  .appraisal-report-view,
  .appraisal-metric,
  .appraisal-decision,
  .assistant-avatar,
  .assistant-avatar-small,
  .assistant-progress,
  .public-access-badge
) {
  border-radius: var(--op-content-radius) !important;
  box-shadow: none !important;
}

body[data-op-service-page="appraisal"] :where(
  .appraisal-free-text,
  .appraisal-intake-row input,
  .appraisal-panel input,
  .appraisal-panel select,
  .appraisal-panel textarea,
  .appraisal-output textarea,
  .file-button,
  .appraisal-generate,
  .appraisal-report-toolbar button,
  .appraisal-report-toolbar a
) {
  border-radius: var(--op-content-radius) !important;
}

body[data-op-service-page="appraisal"] .appraisal-generate {
  box-shadow: none !important;
}

body[data-op-service-page="advisor"] .public-advisor-header {
  min-height: 0;
  padding: 4px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-op-service-page="advisor"] .public-advisor-guide {
  padding: 16px 0 16px 18px;
  border: 0;
  border-left: 4px solid var(--op-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-op-service-page="advisor"] :where(
  .public-advisor-workspace,
  .public-advisor-chips span,
  .public-advisor-need textarea,
  .public-advisor-example,
  .public-advisor-submit,
  .public-advisor-filter-panel,
  .public-advisor-filter-fields input,
  .public-advisor-filter-fields select,
  .public-advisor-filter-checks span,
  .public-advisor-active-filters,
  .public-advisor-selected-chip,
  .public-advisor-privacy,
  .public-advisor-status,
  .public-advisor-engine,
  .public-advisor-facts span,
  .public-advisor-program-box,
  .public-advisor-program-count,
  .public-advisor-program,
  .public-advisor-route,
  .public-advisor-route-rank,
  .public-advisor-verification,
  .public-advisor-questions,
  .public-advisor-boundary,
  .public-advisor-active-filter-head button,
  .public-advisor-manual-count
) {
  border-radius: var(--op-content-radius) !important;
}

body[data-op-service-page="advisor"] :where(
  .public-advisor-workspace,
  .public-advisor-submit,
  .public-advisor-route
) {
  box-shadow: none !important;
}

body[data-op-service-page="advisor"] .public-advisor-route[data-fit="primary"] {
  background: var(--op-content-surface);
}

.service-navigation,
.product-tabs.service-navigation {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px;
  overflow: visible !important;
  border: 1px solid var(--service-shell-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
  box-shadow: 0 10px 26px rgba(18, 43, 46, 0.07);
  white-space: normal !important;
}

.service-navigation .service-navigation__link,
.product-tabs.service-navigation .service-navigation__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 8px 12px;
  flex: initial;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--service-shell-text);
  background: transparent;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  position: relative;
  gap: 7px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.service-navigation .service-navigation__link::before,
.product-tabs.service-navigation .service-navigation__link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.72;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15V5a2 2 0 0 1 2-2h5l5 5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M11 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15V5a2 2 0 0 1 2-2h5l5 5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M11 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-navigation .service-navigation__link[data-service="search"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="search"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h10v8H3zM13 8h3l2 3v2h-5z'/%3E%3Ccircle cx='7' cy='15' r='1.5'/%3E%3Ccircle cx='15' cy='15' r='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h10v8H3zM13 8h3l2 3v2h-5z'/%3E%3Ccircle cx='7' cy='15' r='1.5'/%3E%3Ccircle cx='15' cy='15' r='1.5'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link[data-service="appraisal"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="appraisal"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 12h4v5h5l5-5V7h-5z'/%3E%3Cpath d='m12 3 5 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 12h4v5h5l5-5V7h-5z'/%3E%3Cpath d='m12 3 5 5'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link[data-service="advisor"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="advisor"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h12M4 10h12M4 15h7'/%3E%3Ccircle cx='16' cy='15' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h12M4 10h12M4 15h7'/%3E%3Ccircle cx='16' cy='15' r='2'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link[data-service="company"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="company"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18V4h8v14M12 8h4v10M7 7h2M7 11h2M7 15h2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18V4h8v14M12 8h4v10M7 7h2M7 11h2M7 15h2'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link[data-service="jurist"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="jurist"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v14M5 6h10M7 6l-3 5h6zM13 6l-3 5h6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v14M5 6h10M7 6l-3 5h6zM13 6l-3 5h6z'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link[data-service="ron"]::before,
.product-tabs.service-navigation .service-navigation__link[data-service="ron"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4 3v-3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M7 8h6M7 11h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4 3v-3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M7 8h6M7 11h4'/%3E%3C/svg%3E");
}

.service-navigation .service-navigation__link:hover {
  border-color: #b9ced1;
  color: var(--service-shell-primary-hover);
  background: var(--service-shell-soft);
  box-shadow: 0 8px 18px rgba(18, 43, 46, 0.08);
  transform: translateY(-1px);
}

.service-navigation .service-navigation__link:focus-visible {
  outline: 3px solid var(--service-shell-focus);
  outline-offset: 2px;
}

.service-navigation .service-navigation__link[aria-current="page"] {
  border-color: var(--service-shell-primary);
  color: #ffffff;
  background: linear-gradient(180deg, #129193 0%, var(--service-shell-primary) 100%);
  box-shadow: 0 14px 28px rgba(11, 115, 117, 0.24);
}

.service-navigation__mobile {
  display: none !important;
}

.service-navigation__mobile-select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--service-shell-border);
  border-radius: 6px;
  background: var(--service-shell-surface);
  color: var(--service-shell-text);
  font: inherit;
}

@media (min-width: 1180px) {
  .service-navigation,
  .product-tabs.service-navigation {
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(218px, 1.35fr);
  }

  .service-navigation .service-navigation__link--ron,
  .product-tabs.service-navigation .service-navigation__link--ron {
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

@media (min-width: 821px) and (max-width: 1179px) {
  .service-navigation,
  .product-tabs.service-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px), (max-height: 520px) and (max-width: 1024px) {
  .service-navigation,
  .product-tabs.service-navigation {
    display: block !important;
    min-height: 0;
    margin-bottom: 10px;
    padding: 6px;
    overflow: visible !important;
  }

  .service-navigation .service-navigation__link,
  .product-tabs.service-navigation .service-navigation__link {
    display: none !important;
  }

  .service-navigation__mobile {
    width: 100%;
    display: block !important;
  }

  .service-navigation__mobile-select {
    min-height: 46px;
    padding-right: 40px;
    border-color: #aac6c8;
    color: var(--service-shell-primary);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(18, 43, 46, 0.07);
  }
}

@media (max-width: 760px) {
  body[data-op-service-page="appraisal"] .shell {
    width: min(720px, calc(100% - 18px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-navigation .service-navigation__link {
    transition-duration: 0.01ms;
  }
}

/* claude-seo-extras-START */
/* claude-seo-extras: строка над рядом вкладок — статьи слева, телефон справа */
.opl-extras{display:flex;justify-content:space-between;align-items:center;gap:10px;
  flex-wrap:wrap;margin:0 0 10px;font-family:"Segoe UI",Arial,sans-serif;font-size:14px}
.opl-extras a{text-decoration:none;font-weight:700;color:var(--service-shell-primary,#087f86)}
.opl-extras__articles{display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 12px;
  border:1px solid var(--service-shell-border,#d8e1e3);border-radius:999px;background:#fff;
  color:var(--service-shell-text,#111617)!important}
.opl-extras__articles:hover{border-color:var(--service-shell-primary,#087f86);
  color:var(--service-shell-primary,#087f86)!important;box-shadow:0 10px 26px rgba(18,43,46,.07)}
.opl-extras__ico{width:16px;height:16px;flex:0 0 16px;background:currentColor;opacity:.75;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15V5a2 2 0 0 1 2-2h5l5 5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M11 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15V5a2 2 0 0 1 2-2h5l5 5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M11 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat}
.opl-extras__tel{padding:8px 14px;border:1px solid var(--service-shell-border,#d8e1e3);
  border-radius:8px;background:#fff;white-space:nowrap}
.opl-extras__tel:hover{border-color:var(--service-shell-primary,#087f86);box-shadow:0 10px 26px rgba(18,43,46,.07)}
@media (max-width:820px){
  .opl-extras{margin-bottom:8px}
  .opl-extras__articles{font-size:13px;padding:7px 12px 7px 10px}
  .opl-extras__tel{font-size:13px;padding:7px 12px}
}
/* r74: на телефоне «Статьи» и телефон в одну строку */
.opl-extras__more{display:contents}
@media (max-width:600px){
  .opl-extras{flex-wrap:nowrap;gap:8px;margin-bottom:8px}
  .opl-extras__more{display:none}
  .opl-extras__articles{flex:0 1 auto;min-width:0;white-space:nowrap}
  .opl-extras__tel{flex:0 0 auto}
}
/* claude-seo-extras-END */
