:root {
  --bg: #071a33;
  --bg2: #0b2447;
  --bg3: #102d55;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #64748b;
  --line: rgba(255,255,255,.14);
  --accent: #48b7ff;
  --accent2: #8dd6ff;
  --shadow: 0 18px 50px rgba(0,0,0,.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(72,183,255,.22), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(141,214,255,.16), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg2) 52%, #06162c);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  background: rgba(7, 26, 51, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #071a33;
  background: linear-gradient(135deg, #fff, var(--accent2));
  font-weight: 800;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.66);
}

.desktop-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

.desktop-nav a:hover {
  color: #fff;
}

.top-button,
.primary-btn,
.secondary-btn,
.small-btn,
.tab-btn,
.filter-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.top-button,
.primary-btn {
  color: #06162c;
  background: linear-gradient(135deg, #fff, var(--accent2));
  padding: 12px 16px;
  box-shadow: 0 12px 26px rgba(72,183,255,.18);
}

.secondary-btn,
.small-btn,
.tab-btn,
.filter-btn {
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 11px 14px;
}

.top-button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.small-btn:hover,
.tab-btn:hover,
.filter-btn:hover {
  transform: translateY(-1px);
}

main {
  width: 100%;
  padding: 24px 22px 90px;
}

.hero {
  width: 100%;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: stretch;
}

.hero-left,
.hero-panel,
.section {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow);
  border-radius: 22px;
}

.hero-left {
  padding: 44px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff5ff;
  background: rgba(72,183,255,.16);
  border: 1px solid rgba(72,183,255,.28);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 940px;
  margin: 22px 0 14px;
  font-size: clamp(36px, 5vw, 76px);
  line-height: .95;
  letter-spacing: -2.2px;
}

.hero-left p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.74);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-panel {
  padding: 24px;
}

.panel-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.stat-card span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: #06162c;
}

.stat-card small {
  color: var(--muted);
  font-weight: 700;
}

.section {
  margin-top: 22px;
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
}

.section p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.68);
}

.market-tabs,
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn.active,
.filter-btn.active {
  background: #fff;
  color: #071a33;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  padding: 18px;
  min-height: 180px;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  border: 1px solid rgba(8, 20, 40, .08);
}

.data-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.data-card p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.badge {
  display: inline-flex;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #12345c;
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 18px;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
}

td {
  color: #334155;
}

.bottom-nav {
  display: none;
}

.loading,
.error {
  color: #fff;
  opacity: .8;
  padding: 12px;
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .top-button {
    display: none;
  }

  .topbar {
    padding: 12px 14px;
  }

  main {
    padding: 14px 12px 88px;
  }

  .hero-left {
    padding: 24px;
  }

  h1 {
    letter-spacing: -1.2px;
  }

  .cards-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(6, 22, 44, .94);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 36px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 800;
  }

  .bottom-nav a:active,
  .bottom-nav a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
  }
}

/* STEP34J_FRONTEND_MOBILE_UX_POLISH
   Финальная базовая адаптация публичной части: убираем горизонтальные вылезания,
   делаем карточки и таблицы устойчивыми на телефонах. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.topbar,
.hero,
.hero-left,
.hero-panel,
.section,
.public-footer,
.table-wrap,
.data-card,
.stat-card {
  min-width: 0;
}

.data-card,
.stat-card {
  overflow-wrap: anywhere;
  word-break: normal;
}

.data-card {
  display: flex;
  flex-direction: column;
}

.data-card h3,
.data-card p,
.badge,
td,
th {
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.hero-actions a,
.market-tabs button,
.filter-row button,
.filter-row a {
  min-height: 44px;
}

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 16px;
  }

  .hero-left,
  .hero-panel,
  .section {
    border-radius: 16px;
    padding: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(32px, 12vw, 46px);
    line-height: 1;
  }

  .cards-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 24px;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 11px 10px;
    font-size: 13px;
  }

  .public-footer {
    margin-bottom: 100px;
  }
}


/* STEP34N_R_PUBLIC_UNLOCK_FLOW_CSS: кликабельные карточки и окно unlock-flow. */
.data-card-clickable {
  cursor: pointer;
  position: relative;
}

.data-card-clickable:hover,
.data-card-clickable:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.2);
  outline: 2px solid rgba(72,183,255,.5);
  outline-offset: 2px;
}

.card-type-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #0b3a66;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-open-hint {
  margin-top: 14px;
  color: #0b3a66;
  font-size: 12px;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.unlock-modal.is-open {
  display: block;
}

.unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, .72);
  backdrop-filter: blur(8px);
}

.unlock-dialog {
  position: relative;
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin: 22px auto;
  padding: 24px;
  color: #0b1220;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.unlock-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #eef2f7;
  color: #0b1220;
  font-size: 24px;
  font-weight: 900;
}

.unlock-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-right: 42px;
}

.unlock-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.unlock-preview {
  margin: 16px 0;
  color: #334155;
  line-height: 1.55;
  font-size: 15px;
}

.unlock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.unlock-gate,
.private-details {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: #f8fafc;
}

.unlock-gate h3,
.private-details h3 {
  margin: 0 0 8px;
  color: #071a33;
  font-size: 22px;
}

.unlock-gate p {
  margin: 0 0 12px;
  color: #334155;
  line-height: 1.5;
}

.credit-line {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: #eef6ff;
  color: #12345c;
  font-weight: 700;
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.unlock-actions .primary-btn,
.unlock-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.private-block {
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.private-block:first-of-type {
  border-top: 0;
}

.private-block h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 15px;
}

.private-block p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  white-space: pre-wrap;
}

.unlock-error {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-weight: 700;
}

@media (max-width: 720px) {
  .unlock-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 16px;
    border-radius: 16px;
  }

  .unlock-actions {
    flex-direction: column;
  }

  .unlock-actions .primary-btn,
  .unlock-actions .secondary-btn {
    width: 100%;
  }
}


/* STEP34N_R2_CARD_META_FIELDS_CSS:
   Метаданные карточки на главной: дата создания, автор, локация. */
.card-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: rgba(248, 250, 252, .92);
}

.card-meta-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.card-meta-list span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-meta-list strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .card-meta-list {
    padding: 10px;
  }

  .card-meta-list div {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}


/* STEP34N_R3_CARD_TOP_META_LINE_CSS:
   Верхняя строка карточки: имя, локация, дата.
   Без жирного шрифта, по всей ширине верхней части карточки. */
.card-top-meta-line {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.card-top-meta-line strong,
.card-top-meta-line b {
  font-weight: 400;
}

/* Старый блок метаданных карточки больше не нужен */
.card-meta-list {
  display: none !important;
}


/* STEP34N_R5_FIX_SNAPSHOT_COMPACT_CSS:
   Компактный snapshot-блок в финансовом / калькуляторном стиле. */
.snapshot-compact-shell {
  display: block;
}

.snapshot-fin-wrap {
  display: grid;
  gap: 12px;
}

.snapshot-fin-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.snapshot-fin-head p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.35;
}

.snapshot-fin-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.snapshot-fin-block {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
}

.snapshot-fin-block-title {
  margin: 0 0 8px;
  color: #bcdcff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.snapshot-fin-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
}

.snapshot-fin-row + .snapshot-fin-row {
  margin-top: 6px;
}

.snapshot-fin-label {
  min-width: 0;
  color: #365272;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.snapshot-fin-value {
  color: #072243;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .snapshot-fin-sections {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .snapshot-fin-value {
    font-size: 20px;
  }

  .snapshot-fin-row {
    min-height: 32px;
    padding: 6px 9px;
  }
}


/* STEP34N_R5_FIX2_SNAPSHOT_COMPACT_CSS:
   Компактный финансово-калькуляторный snapshot на главной.
   Публично показываются только Users / Cases / Investor offers. */
.snapshot-compact-shell {
  display: block;
}

.snapshot-fin-wrap {
  display: grid;
  gap: 12px;
  width: 100%;
}

.snapshot-fin-head h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.snapshot-fin-head p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.35;
}

.snapshot-fin-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.snapshot-fin-block {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(6px);
}

.snapshot-fin-block-title {
  margin: 0 0 8px;
  color: #bcdcff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.snapshot-fin-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
}

.snapshot-fin-row + .snapshot-fin-row {
  margin-top: 6px;
}

.snapshot-fin-label {
  min-width: 0;
  color: #365272;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.snapshot-fin-value {
  color: #072243;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .snapshot-fin-sections {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .snapshot-fin-value {
    font-size: 20px;
  }

  .snapshot-fin-row {
    min-height: 32px;
    padding: 6px 9px;
  }
}


/* STEP91_PUBLIC_INDUSTRY_ICONS_CSS */
/* Русский комментарий: премиальные SVG-иконки индустрий на публичной главной странице. */
.industry-svg-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #071a33;
  box-shadow:
    0 14px 30px rgba(7, 26, 51, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.industry-svg-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.public-card-industry-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.public-card-title-copy {
  min-width: 0;
  flex: 1;
}

.public-card-title-copy .card-top-meta-line {
  margin: 0 0 7px;
}

.data-card.has-industry-icon {
  position: relative;
  overflow: hidden;
}

.data-card.has-industry-icon::before {
  content: "";
  position: absolute;
  top: -52px;
  right: -48px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 195, 125, .13), rgba(139, 92, 246, .09), transparent 68%);
  pointer-events: none;
}

.data-card.has-industry-icon > * {
  position: relative;
  z-index: 1;
}

.industry-badge-with-icon {
  background: #ecfdf5;
  color: #065f46;
}

@media (max-width: 720px) {
  .public-card-industry-head {
    gap: 10px;
  }

  .industry-svg-icon,
  .industry-svg-icon svg {
    width: 42px;
    height: 42px;
  }
}

/* STEP134_GLOBAL_STRICT_CORNERS_STYLE */
/* Русский комментарий: единый строгий стиль проекта. Максимум 3px округления вместо мягких "плюшевых" углов. */
:root {
  --radius: 3px !important;
  --card-radius: 3px !important;
  --btn-radius: 3px !important;
  --input-radius: 3px !important;
  --modal-radius: 3px !important;
  --step107-radius: 3px !important;
  --step112-radius: 3px !important;
  --strict-radius: 3px !important;
}

/* Базовые элементы интерфейса */
button,
input,
select,
textarea,
table,
thead,
tbody,
tfoot,
tr,
th,
td,
label,
summary,
dialog,
fieldset,
progress,
meter,
[role="button"],
[role="dialog"],
[role="tab"],
[role="tabpanel"] {
  border-radius: 3px !important;
}

/* Кнопки, бейджи, лейблы, статусы */
.btn,
.button,
.nav-btn,
.admin-mini-btn,
.chip,
.pill,
.badge,
.tag,
.label,
.status,
.tab,
.tab-btn,
.action,
.action-btn,
.icon-btn,
.refresh-btn,
.logout-btn,
.primary,
.secondary,
[class*="btn"],
[class*="button"],
[class*="badge"],
[class*="chip"],
[class*="pill"],
[class*="tag"],
[class*="label"],
[class*="status"],
[class*="tab"] {
  border-radius: 3px !important;
}

/* Карточки, панели, блоки, таблицы, модалки */
.card,
.panel,
.box,
.tile,
.block,
.widget,
.modal,
.overlay,
.drawer,
.dropdown,
.popover,
.tooltip,
.table-wrap,
.table-card,
.white-card,
.empty-state,
.notification,
[class*="card"],
[class*="panel"],
[class*="box"],
[class*="tile"],
[class*="modal"],
[class*="overlay"],
[class*="drawer"],
[class*="dropdown"],
[class*="popover"],
[class*="tooltip"],
[class*="table"],
[class*="notification"],
[class*="summary"],
[class*="profile"],
[class*="marketplace"],
[class*="offer"],
[class*="case"],
[class*="document"],
[class*="file"],
[class*="sidebar"],
[class*="workspace"],
[class*="dashboard"],
[class*="hero"],
[class*="section"],
[class*="form"],
[class*="field"],
[class*="input"],
[class*="select"],
[class*="textarea"] {
  border-radius: 3px !important;
}

/* Псевдоэлементы и декоративные круги тоже делаем строгими */
*::before,
*::after {
  border-radius: 3px !important;
}

/* Исключаем только полностью системные элементы без визуального блока */
html,
body,
script,
style,
link,
meta,
title {
  border-radius: 0 !important;
}

/* STEP257_HOMEPAGE_CASES_OFFERS_CARD_COLORS */
/* Русский комментарий: мягкие фоны карточек на главной странице:
   Founder cases = нежно-синий, Investor offers = нежно-зелёный.
   Описание делаем чёрным с лёгкой тенью, geo label со значком локации. */

#casesGrid .data-card.data-card-case {
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.98) 0%, rgba(230, 241, 255, 0.98) 100%);
  border: 1px solid rgba(125, 164, 212, 0.34);
  box-shadow: 0 14px 28px rgba(27, 69, 120, 0.10);
}

#offersGrid .data-card.data-card-offer {
  background:
    linear-gradient(180deg, rgba(240, 250, 243, 0.98) 0%, rgba(229, 246, 233, 0.98) 100%);
  border: 1px solid rgba(124, 176, 132, 0.32);
  box-shadow: 0 14px 28px rgba(42, 99, 57, 0.10);
}

#casesGrid .data-card h3,
#offersGrid .data-card h3 {
  color: #071a33;
}

#casesGrid .data-card p,
#offersGrid .data-card p {
  color: #111111;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

#casesGrid .data-card .card-top-meta-line,
#offersGrid .data-card .card-top-meta-line {
  color: #334155;
}

#casesGrid .data-card .card-open-hint,
#offersGrid .data-card .card-open-hint {
  color: #0b2d57;
}

#offersGrid .data-card .card-open-hint {
  color: #1f4b2f;
}

.badge.badge-geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.70);
  color: #10345c;
}

#offersGrid .badge.badge-geo {
  color: #1e4a30;
}

.badge-geo-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentColor;
}

.badge-geo-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.badge-amount {
  background: rgba(255,255,255,.72);
}

/* STEP258_FOUNDERS_INVESTORS_SEO_PAGES */
/* Русский комментарий: отдельные страницы founders/investors и мягкие фоны карточек. */

#casesGrid .data-card.data-card-case,
.founders-page #casesGrid .data-card {
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.99) 0%, rgba(229, 240, 255, 0.99) 100%);
  border: 1px solid rgba(125, 164, 212, 0.36);
  box-shadow: 0 14px 28px rgba(27, 69, 120, 0.10);
}

#offersGrid .data-card.data-card-offer,
.investors-page #offersGrid .data-card {
  background:
    linear-gradient(180deg, rgba(240, 250, 243, 0.99) 0%, rgba(228, 246, 233, 0.99) 100%);
  border: 1px solid rgba(124, 176, 132, 0.34);
  box-shadow: 0 14px 28px rgba(42, 99, 57, 0.10);
}

#casesGrid .data-card h3,
#offersGrid .data-card h3 {
  color: #06162c;
}

#casesGrid .data-card p,
#offersGrid .data-card p {
  color: #050505;
  text-shadow: 0 1px 0 rgba(255,255,255,.58);
  font-weight: 500;
}

#casesGrid .data-card .card-top-meta-line,
#offersGrid .data-card .card-top-meta-line {
  color: #26384f;
}

#casesGrid .data-card .card-open-hint,
#offersGrid .data-card .card-open-hint {
  color: #0b2d57;
}

#offersGrid .data-card .card-open-hint {
  color: #1f4b2f;
}

.badge.badge-geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.72);
  color: #10345c;
}

#offersGrid .badge.badge-geo {
  color: #1e4a30;
}

.badge-geo-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentColor;
}

.badge-geo-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.badge-amount {
  background: rgba(255,255,255,.74);
}

.marketplace-page main {
  padding-top: 18px;
}

.marketplace-listing-section {
  min-height: calc(100vh - 190px);
}

.marketplace-page-head {
  align-items: flex-start;
}

.marketplace-page-head h1 {
  max-width: 980px;
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -1.4px;
}

.marketplace-page-head p {
  max-width: 820px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.55;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding: 22px 0 4px;
}

.load-more-btn {
  min-width: 240px;
  background: rgba(255,255,255,.14);
}

.load-more-btn[hidden] {
  display: none !important;
}

.desktop-nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 820px) {
  .marketplace-page-head h1 {
    font-size: 34px;
  }

  .marketplace-page-head p {
    font-size: 15px;
  }

  .load-more-btn {
    width: 100%;
  }
}

/* STEP259_HOME_SECTION_MORE_LINKS */
/* Русский комментарий: ссылки More founder cases / More investor offers выглядят как аккуратные premium-кнопки. */
.section-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
}

.section-more-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* STEP260_PUBLIC_FOOTER_LAYOUT_FIX */
/* Русский комментарий: приводим footer в нормальный premium-вид на главной и SEO-страницах founders/investors. */
.public-footer {
  width: auto;
  max-width: none;
  margin: 0 22px 24px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow);
  color: rgba(255,255,255,.82);
}

.public-footer strong {
  display: block;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.public-footer p {
  max-width: 980px;
  margin: 0 0 9px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.public-footer .footer-disclaimer {
  max-width: 1120px;
  margin-bottom: 0;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  min-width: 280px;
}

.public-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 800;
}

.public-footer nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,.11);
}

.marketplace-page main {
  padding-bottom: 24px;
}

.marketplace-page .public-footer {
  margin-top: 0;
}

@media (max-width: 820px) {
  .public-footer {
    grid-template-columns: 1fr;
    margin: 0 12px 96px;
    padding: 18px;
    border-radius: 18px;
  }

  .public-footer nav {
    justify-content: flex-start;
    min-width: 0;
  }

  .public-footer nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* STEP261_HOME_TOP_MENU_CLEANUP */
/* Русский комментарий: аккуратное выравнивание верхнего меню после удаления лишних пунктов. */
.desktop-nav {
  gap: 10px;
}

.desktop-nav a[href="/cabinet/"] {
  font-weight: 900;
}

.topbar .desktop-nav {
  margin-left: auto;
}

.topbar .top-button {
  margin-left: 10px;
}

/* STEP262_HOME_MENU_MATCH_SEO_PAGES */
/* Русский комментарий: верхнее меню главной страницы выравниваем как на SEO-страницах founders/investors. */
.topbar .desktop-nav {
  margin-left: auto;
}

.desktop-nav {
  gap: 10px;
}

.desktop-nav a[href="/cabinet/"] {
  font-weight: 900;
}

.topbar .top-button {
  margin-left: 10px;
}

/* STEP263_FORCE_HOME_TOP_MENU_FIX */
/* Русский комментарий: финальная фиксация верхнего меню главной страницы. */
.topbar .desktop-nav {
  margin-left: auto;
}

.desktop-nav {
  gap: 10px;
}

.desktop-nav a[href="/founders/"],
.desktop-nav a[href="/investors/"],
.desktop-nav a[href="/cabinet/"] {
  white-space: nowrap;
}

.topbar .top-button {
  margin-left: 10px;
  white-space: nowrap;
}

/* STEP264_COUNTRY_FLAGS_IN_CARDS */
/* Русский комментарий: локальные SVG-флаги в country badge карточек. */
.badge-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.country-flag-wrap {
  width: 18px;
  height: 13px;
  flex: 0 0 18px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255,255,255,.88);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.10),
    0 1px 2px rgba(15, 23, 42, 0.10);
}

.country-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-country-global .badge-geo-icon {
  width: 14px;
  height: 14px;
}

.badge-country-global .badge-geo-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* STEP265_GLOBAL_SVG_GLOBE_BADGE */
/* Русский комментарий: для Global рисуем отдельный SVG-глобус вместо флага страны. */
.badge-country-global {
  color: #163b68;
}

#offersGrid .badge-country-global {
  color: #235534;
}

.country-globe-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.country-globe-svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* STEP266_BLUE_GLOBAL_GLOBE_AND_MODAL_FLAGS */
/* Русский комментарий: Global-глобус делаем синим, флаги/глобус показываем и в модальном окне. */
.badge-country-global,
#casesGrid .badge-country-global,
#offersGrid .badge-country-global,
.unlock-meta .badge-country-global {
  color: #1d5fd1;
}

.badge-country-global .country-globe-wrap,
.unlock-meta .badge-country-global .country-globe-wrap {
  color: #1d5fd1;
  background: linear-gradient(180deg, rgba(224, 238, 255, .96), rgba(196, 221, 255, .96));
  box-shadow:
    0 0 0 1px rgba(29, 95, 209, 0.18),
    0 2px 6px rgba(29, 95, 209, 0.14);
}

.unlock-meta-with-country {
  align-items: center;
}

.unlock-meta .badge-country {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.08);
}

.unlock-meta .country-flag-wrap {
  width: 19px;
  height: 14px;
}

.unlock-meta .country-globe-wrap {
  width: 19px;
  height: 19px;
}

.unlock-meta .country-globe-svg {
  width: 16px;
  height: 16px;
}

/* STEP267_MARKETPLACE_FILTER_PANEL */
/* Русский комментарий: компактный premium-фильтр для страниц Founders и Investors. */
.market-filter-panel {
  margin: 18px 0 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(135px, 1fr)) auto minmax(120px, auto);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.065));
  box-shadow: 0 18px 44px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}

.market-filter-search,
.market-filter-field {
  min-width: 0;
}

.market-filter-panel label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-filter-panel input,
.market-filter-panel select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.88);
  color: #0b1628;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.market-filter-panel input::placeholder {
  color: rgba(15,23,42,.48);
}

.market-filter-panel input:focus,
.market-filter-panel select:focus {
  border-color: rgba(128, 184, 255, .82);
  box-shadow: 0 0 0 3px rgba(90, 157, 255, .16);
}

.market-filter-reset {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.market-filter-reset:hover {
  background: rgba(255,255,255,.17);
  color: #fff;
}

.market-filter-summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.founders-page .market-filter-panel {
  border-color: rgba(144, 184, 232, .22);
}

.investors-page .market-filter-panel {
  border-color: rgba(143, 201, 151, .22);
}

@media (max-width: 1180px) {
  .market-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-filter-search {
    grid-column: span 3;
  }

  .market-filter-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .market-filter-panel {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 16px;
  }

  .market-filter-search {
    grid-column: auto;
  }

  .market-filter-summary {
    min-height: 26px;
  }
}

/* STEP268_REAL_PAGINATION_SUMMARY */
/* Русский комментарий: счётчик теперь показывает реальный total, а не локальный искусственный лимит. */
.market-filter-summary {
  color: rgba(255,255,255,.76);
  letter-spacing: .01em;
}

.load-more-btn {
  min-width: 260px;
}

/* STEP269_SERVER_SIDE_SEARCH_UI */
/* Русский комментарий: счётчик показывает результаты server-side поиска по всей базе. */
.market-filter-summary {
  min-width: 136px;
}

.market-filter-panel input[type="search"] {
  padding-left: 14px;
}

/* STEP275_COOKIE_NOTICE_ESSENTIAL_ONLY */
/* Русский комментарий: компактная премиальная cookie-плашка без рекламной агрессии. */
.cookie-notice275 {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

.cookie-notice275.is-hiding {
  opacity: 0;
  transform: translateY(10px);
}

.cookie-notice275__inner {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(12, 20, 34, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
  pointer-events: auto;
}

.cookie-notice275__content {
  min-width: 0;
}

.cookie-notice275__title {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
}

.cookie-notice275__text {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice275__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-notice275__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.06);
}

.cookie-notice275__link:hover {
  color: #ffffff;
  background: rgba(255,255,255,.10);
}

.cookie-notice275__button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6fbff, #d9eaff);
  color: #0e2340;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 108, 210, .20);
}

.cookie-notice275__button:hover {
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .cookie-notice275 {
    left: 12px;
    right: 12px;
    bottom: 76px;
  }

  .cookie-notice275__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .cookie-notice275__actions {
    justify-content: stretch;
  }

  .cookie-notice275__link,
  .cookie-notice275__button {
    width: 100%;
    justify-content: center;
  }
}
