@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-page);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
}

a {
  color: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.container {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgb(217 212 202 / 0.82);
  background: rgb(249 249 255 / 0.92);
  backdrop-filter: blur(14px);
}

.site-logo {
  display: inline-flex;
  height: 64px;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: auto;
  height: 64px;
  display: block;
}

@media (min-width: 1024px) {
  .header-ad {
    min-width: 0;
  }

  .header-actions {
    flex-shrink: 0;
    margin-left: 28px;
  }
}

.site-logo:hover img,
.site-logo:focus-visible img {
  content: url("./assets/logo-wordmark-black-1024w.png");
}

.header-ad {
  position: relative;
  display: block;
  width: min(100%, 1000px);
  height: 70px;
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
  text-decoration: none;
}

.header-ad img,
.header-ad-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.header-ad--live {
  /* width/height задаются inline из размера баннера (cap 1000px) */
  width: var(--header-ad-width, auto);
  max-width: 100%;
  height: var(--header-ad-height, 70px);
  flex: 0 0 auto;
  align-self: center;
  background: var(--color-surface);
}

/* Image: блок shrink-wrap по intrinsic width картинки, не шире 1000px */
.header-ad--image {
  width: fit-content;
  max-width: min(100%, var(--header-ad-max-width, 1000px));
  height: auto;
  min-height: 0;
}

.header-ad--image .header-ad-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
}

.header-ad--image img,
.header-ad--image .header-ad-link img {
  display: block;
  width: auto;
  max-width: min(100%, var(--header-ad-max-width, 1000px));
  height: auto;
  max-height: var(--header-ad-height, 70px);
  margin: 0;
  object-fit: contain;
}

.header-ad--live:not(.header-ad--image) img,
.header-ad--live:not(.header-ad--image) .header-ad-link img {
  width: auto;
  max-width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.header-ad--live:not(.header-ad--image) .header-ad-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-ad-frame,
.header-ad-html5,
.header-ad-html {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.header-ad-html > * {
  max-width: 100%;
  max-height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.region-picker {
  position: relative;
  flex: none;
}

.region-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 200px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px 0 6px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.region-picker-trigger:hover,
.region-picker-trigger:focus-visible {
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.08);
}

.region-picker-trigger .material-symbols-outlined {
  font-size: 18px;
}

.region-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-picker-chevron {
  font-size: 18px;
  opacity: 0.7;
}

.region-picker.is-open .region-picker-chevron {
  transform: rotate(180deg);
}

.region-picker-confirm {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgb(196 198 207 / 0.7);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 10px 28px rgb(0 32 69 / 0.12);
  font-size: 13px;
  color: var(--color-ink, #10233f);
}

.region-picker-confirm-form {
  display: inline;
  margin: 0;
}

.region-picker-confirm-form button,
.region-picker-confirm-no {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.region-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(196 198 207 / 0.7);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink, #10233f);
  box-shadow: 0 14px 36px rgb(0 32 69 / 0.16);
}

.region-picker-panel[hidden] {
  display: none;
}

.region-picker-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgb(196 198 207 / 0.55);
}

.region-picker-close {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.region-picker-panel-body {
  overflow: auto;
  padding: 10px 12px 14px;
  font-size: 13px;
}

.region-picker-panel-body ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.region-picker-panel-body li {
  margin: 0;
  padding: 2px 0;
}

.region-picker-panel-body .list-letter {
  display: block;
  margin: 10px 0 4px;
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.region-picker-panel-body .geo-state-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.region-picker-panel-body .geo-state-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.region-picker-panel-body .geo-state-btn:hover,
.region-picker-panel-body .geo-state-btn:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.region-picker-panel-body > ul:first-child .geo-state-btn {
  font-weight: 700;
}

@media (max-width: 1023px) {
  .site-menu-bar {
    flex-wrap: wrap;
  }

  .site-menu-region {
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 8px;
  }

  .region-picker-trigger {
    max-width: 160px;
  }
}

.header-session {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-notify {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
}

.header-notify .material-symbols-outlined {
  font-size: 22px;
}

.account-menu {
  position: relative;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 1px solid var(--color-border);
  padding: 0 0 0 20px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  list-style: none;
  cursor: pointer;
}

.account-chip::-webkit-details-marker {
  display: none;
}

.account-chip::marker {
  content: "";
}

.account-chip-initials {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--color-primary);
  background: #e7edf5;
  font-size: 14px;
  font-weight: 700;
}

.account-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.account-chip-text b {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
}

.account-chip-text small {
  color: #6c7480;
  font-size: 12px;
}

.account-chip-chevron {
  color: var(--color-ink-soft);
  font-size: 20px;
  transition: transform 160ms ease;
}

.account-menu[open] .account-chip-chevron {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.account-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible {
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.header-notify:focus-visible,
.account-chip:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

@media (max-width: 760px) {
  .account-chip-text,
  .account-chip-chevron {
    display: none;
  }

  .account-chip {
    border-left: 0;
    padding-left: 0;
  }
}

.search-control {
  display: none;
  width: min(360px, 42vw);
  height: var(--input-height);
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-3);
  color: var(--color-ink-soft);
  background: var(--color-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-control:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: transparent;
  font: inherit;
}

.search-control input::placeholder {
  color: var(--color-ink-soft);
}

.search-control kbd {
  min-width: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--color-ink-muted);
  background: var(--color-surface-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.site-menu {
  position: relative;
  z-index: 15;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-menu--inverse {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.site-menu-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
}

.site-menu-list {
  display: flex;
  min-height: 56px;
  align-items: stretch;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.site-menu-region {
  display: flex;
  flex: none;
  align-items: center;
  margin-left: auto;
  overflow: visible;
}

.site-menu-gap-after {
  margin-inline-end: var(--space-6);
}

.site-menu-offset {
  margin-inline-start: var(--space-8);
}

.site-menu-link {
  position: relative;
  display: inline-flex;
  height: 56px;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.site-menu-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.site-menu-link:hover,
.site-menu-link.is-active {
  color: var(--color-primary);
}

.site-menu-link.is-active::after {
  background: var(--color-primary);
}

.site-menu--inverse .site-menu-link {
  color: rgb(255 255 255 / 0.62);
}

.site-menu--inverse .site-menu-link:hover,
.site-menu--inverse .site-menu-link.is-active {
  color: #ffffff;
}

.site-menu--inverse .site-menu-link.is-active::after {
  background: #ffffff;
}

.site-menu-link .material-symbols-outlined {
  font-size: 22px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.site-menu-trigger.is-open .material-symbols-outlined {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 20;
  display: none;
  width: max-content;
  max-width: min(100vw - 24px, 100%);
  background: transparent;
}

.site-menu.is-open .mega-menu.is-open {
  display: block;
}

.mega-menu-grid,
.mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-top: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.mega-menu-col + .mega-menu-col {
  border-left: 0;
}

.mega-menu-links {
  display: grid;
  grid-template-columns: max-content;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-top: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.mega-menu-item {
  display: grid;
  min-height: 64px;
  width: max-content;
  max-width: 100%;
  grid-template-columns: 28px auto;
  gap: var(--space-4);
  align-items: center;
  color: var(--color-ink);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
}

.mega-menu-item:hover,
.mega-menu-item.is-highlighted {
  background: var(--color-primary-soft);
}

.mega-menu-icon {
  color: var(--color-primary);
  font-size: 24px;
}

.mega-menu-item strong,
.mega-menu-item small {
  display: block;
}

.mega-menu-item strong {
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

.mega-menu-item small {
  margin-top: 2px;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-snug);
}

.section {
  padding-block: var(--space-12);
  border-bottom: 1px solid rgb(217 212 202 / 0.72);
}

.section-title {
  max-width: 760px;
}

.eyebrow {
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.display-1,
.display-2,
.headline-1,
.headline-2,
.headline-3 {
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: 0;
}

.display-1 {
  font-size: clamp(2.5rem, 6vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -1px;
}

.display-2 {
  font-size: clamp(2rem, 4.5vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: -1px;
}

.headline-1 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

.headline-2 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.headline-3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.body-large {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.body-default {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.body-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.caption {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-typography-sample {
  color: var(--color-ink);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-decoration: none;
  text-transform: uppercase;
}

.muted {
  color: var(--color-ink-muted);
}

.surface {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.token-swatch {
  min-height: 104px;
  border: 1px solid rgb(23 25 29 / 0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.swatch-color {
  min-height: 52px;
}

.btn {
  display: inline-flex;
  height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-5);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn:focus-visible,
.field:focus,
.textarea:focus,
.select:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  color: var(--color-secondary);
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.btn-secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-surface-muted);
}

.btn-tertiary {
  color: var(--color-accent);
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
}

.btn-tertiary:hover {
  color: var(--color-primary);
  background: transparent;
}

.btn-menu {
  min-width: 44px;
  padding-inline: var(--space-3);
  color: var(--color-ink);
  border-color: var(--color-border);
  background: var(--color-surface);
}

.btn-menu:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-muted);
}

.btn-tab {
  position: relative;
  color: var(--color-ink-muted);
  border-color: transparent;
  border-bottom-color: var(--color-primary);
  border-bottom-width: 2px;
  border-radius: 0;
  background: transparent;
  padding-inline: var(--space-4);
}

.btn-tab:hover,
.btn-tab.is-active {
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.metric-card {
  position: relative;
  min-height: 300px;
  padding: var(--space-6);
  overflow: hidden;
}

.metric-card::after {
  display: none;
}

.metric-value {
  color: var(--color-primary);
  font-size: clamp(3.25rem, 7vw, 5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.metric-value small {
  color: var(--color-secondary);
  font-size: 0.42em;
  font-weight: 700;
}

.metric-card-dark {
  color: #ffffff;
  border-color: var(--color-primary-hover);
  background: var(--color-primary);
}

.metric-card-dark .caption,
.metric-card-dark .metric-value,
.metric-card-dark .metric-value small {
  color: #ffffff;
}

.metric-card-dark .muted {
  color: rgb(255 255 255 / 0.70);
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  color: var(--color-success);
  background: #dcfce7;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  white-space: nowrap;
}

.status-pill--down {
  color: var(--color-danger);
  background: var(--color-chart-4-soft);
}

.status-pill-danger {
  color: #ef4444;
  background: transparent;
  padding: 0;
}

.chart-card {
  min-height: 328px;
  padding: var(--space-6);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.chart-card:hover,
.chart-card:focus-within {
  border-color: rgb(0 32 69 / 0.34);
  box-shadow: 0 14px 34px rgb(0 32 69 / 0.14);
  transform: translateY(-3px);
}

.chart-bars {
  display: grid;
  height: 144px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.chart-bar {
  position: relative;
  display: flex;
  height: var(--bar-height);
  min-height: 34px;
  align-items: flex-start;
  justify-content: center;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-primary);
}

.chart-bar.is-muted {
  background: #64748b;
}

.chart-bar span {
  position: absolute;
  top: -30px;
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
  font-weight: 700;
}

.chart-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
  font-weight: 700;
}

.product-card {
  overflow: hidden;
}

.product-image {
  position: relative;
  min-height: 164px;
  background:
    linear-gradient(135deg, rgb(18 28 44 / 0.10), rgb(18 28 44 / 0.30)),
    radial-gradient(ellipse at 20% 25%, #718091 0 13%, transparent 14%),
    radial-gradient(ellipse at 56% 18%, #3f4c5a 0 16%, transparent 17%),
    radial-gradient(ellipse at 82% 32%, #7d8995 0 12%, transparent 13%),
    radial-gradient(ellipse at 34% 66%, #566574 0 18%, transparent 19%),
    radial-gradient(ellipse at 70% 72%, #2f3b47 0 20%, transparent 21%),
    #17212c;
  background-size: auto;
}

.verified-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  color: #1d4ed8;
  background: rgb(255 255 255 / 0.92);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
}

.ad-unit {
  display: flex;
  min-height: var(--ad-height);
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-ink-muted);
  background:
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 10px, transparent 10px 20px),
    var(--color-surface-strong);
  text-align: center;
}

.ad-unit-small {
  width: var(--ad-small-width);
}

.ad-unit-wide {
  width: 100%;
}

.field,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: var(--color-surface);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field,
.select {
  height: var(--input-height);
  padding: 0 var(--space-4);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23002045' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 48px;
}

.textarea {
  min-height: 116px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.field::placeholder,
.textarea::placeholder {
  color: var(--color-ink-soft);
}

.field-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.code-block {
  border-radius: var(--radius-lg);
  color: var(--color-code-ink);
  background: var(--color-code-bg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.65;
  overflow: auto;
}

.auth-main {
  display: grid;
  min-height: 640px;
  place-items: center;
  padding: var(--space-10) var(--space-4);
  background: var(--color-bg);
}

.auth-card {
  width: min(100%, 480px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.auth-card-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.auth-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.auth-card-head h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.auth-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}

.auth-hint {
  margin: 0;
  color: var(--color-ink-soft, #5b6472);
  font-size: var(--text-sm, 0.95rem);
  line-height: var(--leading-snug, 1.45);
}

.auth-hint-debug {
  color: #0a7a2f;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.auth-link {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--color-primary);
}

.field-required {
  color: var(--color-danger);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(1 15 31 / 0.72);
  backdrop-filter: blur(8px);
}

.feedback-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.feedback-modal-panel .auth-card-head {
  padding-right: calc(var(--space-6) + 40px);
}

.feedback-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.feedback-modal-close:hover,
.feedback-modal-close:focus-visible {
  background: rgb(15 23 42 / 0.06);
  color: var(--color-ink);
}

.feedback-modal-close .material-symbols-outlined {
  font-size: 20px;
}

.feedback-modal .checkbox-field {
  align-items: flex-start;
}

.feedback-modal .checkbox-field input {
  margin-top: 2px;
  flex-shrink: 0;
}

body.feedback-modal-open {
  overflow: hidden;
}

.auth-error,
.auth-field-error {
  margin: 0;
  color: var(--color-danger);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.auth-error {
  padding: var(--space-3);
  border: 1px solid rgb(186 26 26 / 0.25);
  border-radius: var(--radius-sm);
  background: rgb(186 26 26 / 0.06);
}

.auth-success {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgb(22 163 74 / 0.25);
  border-radius: var(--radius-sm);
  background: rgb(22 163 74 / 0.08);
  color: rgb(21 128 61);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.field.is-invalid {
  border-color: var(--color-danger);
}

.code-block code {
  display: block;
  padding: var(--space-5);
  white-space: pre;
}

.icon-btn {
  display: inline-grid;
  width: var(--button-height);
  height: var(--button-height);
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  background: var(--color-surface);
}

.icon-btn:hover {
  color: var(--color-ink);
  background: var(--color-surface-muted);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer--dark {
  border-color: rgb(255 255 255 / 0.12);
  color: #ffffff;
  background: var(--color-primary);
}

.site-footer-inner {
  padding-block: var(--space-16) var(--space-10);
}

.site-footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(160px, 1fr));
}

.site-footer-brand {
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.site-footer--dark .site-footer-brand {
  color: #ffffff;
}

.site-footer-description {
  max-width: 360px;
  margin: var(--space-6) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--leading-normal);
}

.site-footer-apps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.site-footer-app {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0;
  color: var(--color-primary);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-footer-app img {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
}

.site-footer-app--square img {
  width: 32px;
  height: 32px;
}

.site-footer-app:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.site-footer--dark .site-footer-app {
  color: #ffffff;
  background: transparent;
}

.site-footer--dark .site-footer-app:hover {
  opacity: 0.82;
}

.site-footer--dark .site-footer-description,
.site-footer--dark .site-footer-link,
.site-footer--dark .site-footer-copy {
  color: rgb(255 255 255 / 0.58);
}

.site-footer-title {
  margin: 0 0 var(--space-5);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer--dark .site-footer-title {
  border-color: rgb(255 255 255 / 0.18);
  color: #ffffff;
}

.site-footer-links {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-link {
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: none;
}

.site-footer-link:hover {
  color: var(--color-primary);
}

.site-footer-link.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

.site-footer--dark .site-footer-link:hover,
.site-footer--dark .site-footer-link.is-active {
  color: #ffffff;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
}

.site-footer--dark .site-footer-bottom {
  border-color: rgb(255 255 255 / 0.12);
}

.site-footer-copy {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-4);
}

.site-footer-legal .site-footer-link {
  font-size: var(--text-sm);
}

.legal-main {
  padding-block: var(--space-10) var(--space-12);
  background: var(--color-bg);
}

.legal-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.legal-card h2 {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: var(--color-ink-soft);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.legal-card p + p {
  margin-top: var(--space-3);
}

.legal-card ul {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
}

.home-main {
  padding-block: var(--space-6) var(--space-12);
  background: var(--color-surface);
}

.promo-grid {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-4) var(--space-2);
}

.promo-grid--single {
  grid-template-columns: 1fr;
}

.promo-card {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.promo-card img,
.content-card-media img,
.listing-card img,
.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.content-card:hover .content-card-media img,
.listing-card:hover img,
.ad-card:hover img {
  transform: scale(1.06);
}

.promo-card::after {
  display: none;
}

.promo-card-content {
  position: absolute;
  z-index: 1;
  right: var(--space-5);
  bottom: var(--space-4);
  left: var(--space-5);
  color: #ffffff;
}

.page-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: var(--space-6);
  align-items: start;
}

.page-stack {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
}

.home-section {
  min-width: 0;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-lg);
  background: rgb(240 243 255 / 0.32);
  padding: var(--space-5);
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.home-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-section-title h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.home-section-title .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 26px;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 5fr);
  align-items: stretch;
  gap: var(--space-4);
}

.analytics-grid {
  display: block;
}

.ai-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgb(173 199 247 / 0.28);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 18%, rgb(47 91 145 / 0.52) 0 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(circle at 50% 0%, var(--color-primary-hover) 0%, var(--color-primary) 72%);
  box-shadow: 0 24px 56px rgb(0 32 69 / 0.24);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ai-card:hover,
.ai-card:focus-visible {
  border-color: rgb(173 199 247 / 0.48);
  box-shadow: 0 30px 68px rgb(0 32 69 / 0.30);
  transform: translateY(-3px);
  outline: 0;
}

.ai-card:hover .btn,
.ai-card:focus-visible .btn {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #d3deff;
  box-shadow: 0 10px 24px rgb(0 32 69 / 0.22);
}

.ai-card .btn {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #d3deff;
  box-shadow: 0 10px 24px rgb(0 32 69 / 0.22);
}

.ai-card::before,
.ai-card::after {
  position: absolute;
  content: "";
}

.ai-card::before {
  top: 34px;
  left: 50%;
  z-index: 0;
  width: 255px;
  height: 255px;
  border: 2px solid rgb(173 199 247 / 0.30);
  transform: translateX(-50%) rotate(46deg);
  box-shadow:
    -30px 24px 0 -2px rgb(0 0 0 / 0),
    -30px 24px 0 0 rgb(173 199 247 / 0.18),
    42px 18px 0 -2px rgb(0 0 0 / 0),
    42px 18px 0 0 rgb(173 199 247 / 0.16);
}

.ai-card::after {
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 0%, rgb(255 255 255 / 0.10) 48%, transparent 76%);
  transform: translateX(-120%) skewX(-20deg);
  animation: ai-shimmer 4s infinite;
  pointer-events: none;
}

@keyframes ai-shimmer {
  to {
    transform: translateX(120%) skewX(-20deg);
  }
}

.ai-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 340px;
  place-items: center;
  text-align: center;
}

.ai-mark {
  min-width: 236px;
  border: 1px solid rgb(173 199 247 / 0.28);
  padding: var(--space-6) var(--space-8);
  color: #ffffff;
  background: rgb(26 54 93 / 0.55);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ai-card--sidebar {
  width: 150px;
  min-height: 200px;
  padding: var(--space-4);
}

.ai-card--market {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.ai-card--sidebar::before,
.ai-card--market::before {
  top: 28px;
  width: 118px;
  height: 118px;
}

.ai-card--sidebar .ai-card-inner,
.ai-card--market .ai-card-inner {
  min-height: 100%;
  gap: var(--space-3);
}

.ai-card--sidebar .ai-mark,
.ai-card--market .ai-mark {
  min-width: 96px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-3xl);
}

.ai-card--sidebar .btn,
.ai-card--market .btn {
  width: 100%;
  padding-inline: var(--space-3);
}

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.ai-modal[hidden] {
  display: none;
}

.ai-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(1 15 31 / 0.72);
  backdrop-filter: blur(8px);
}

.ai-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1000px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgb(173 199 247 / 0.22);
  border-radius: var(--radius-lg);
  color: #d4e4fa;
  background: var(--color-primary);
  box-shadow: 0 32px 86px rgb(0 0 0 / 0.42);
  outline: 0;
}

.ai-modal-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid rgb(173 199 247 / 0.16);
  background: rgb(5 20 36 / 0.84);
  padding: var(--space-4) var(--space-6);
}

.ai-modal-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.ai-modal-brand span {
  color: #adc7f7;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ai-modal-brand small {
  color: rgb(212 228 250 / 0.72);
  font-size: var(--text-sm);
  font-weight: 500;
}

.ai-modal-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgb(212 228 250 / 0.82);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-chart-2);
  box-shadow: 0 0 12px rgb(22 163 74 / 0.75);
}

.ai-modal-close,
.ai-attach-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: rgb(212 228 250 / 0.72);
  background: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ai-modal-close:hover,
.ai-attach-btn:hover {
  border-color: rgb(173 199 247 / 0.20);
  color: #ffffff;
  background: rgb(173 199 247 / 0.10);
}

.ai-modal-body {
  overflow-y: auto;
  background:
    radial-gradient(circle at 72% 18%, rgb(47 91 145 / 0.38) 0 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(180deg, #051424 0%, #071a2f 100%);
  padding: var(--space-8) var(--space-6);
}

.ai-modal-body::-webkit-scrollbar {
  width: 6px;
}

.ai-modal-body::-webkit-scrollbar-track {
  background: #010f1f;
}

.ai-modal-body::-webkit-scrollbar-thumb {
  border-radius: var(--radius-sm);
  background: rgb(173 199 247 / 0.24);
}

.ai-chat-stack {
  display: grid;
  max-width: 800px;
  margin: 0 auto;
  gap: var(--space-6);
}

.ai-welcome-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(173 199 247 / 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #122131 0%, #0d1c2d 100%);
  padding: var(--space-6);
}

.ai-welcome-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(173 199 247 / 0.32), transparent);
  content: "";
}

.ai-welcome-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-5);
}

.ai-welcome-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(173 199 247 / 0.22);
  border-radius: var(--radius-md);
  color: #adc7f7;
  background: rgb(173 199 247 / 0.08);
}

.ai-welcome-head h2 {
  color: #ffffff;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.ai-welcome-copy {
  display: grid;
  gap: var(--space-3);
  border: 1px solid rgb(173 199 247 / 0.12);
  border-radius: var(--radius-md);
  background: rgb(1 15 31 / 0.46);
  padding: var(--space-4);
}

.ai-welcome-copy p,
.ai-message p,
.ai-answer-card p {
  margin: 0;
  color: rgb(212 228 250 / 0.88);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.ai-muted {
  color: rgb(212 228 250 / 0.64) !important;
}

.ai-start-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: #7bd0ff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.ai-message {
  display: grid;
  max-width: 85%;
  gap: var(--space-2);
}

.ai-message--user {
  justify-self: end;
}

.ai-message--bot {
  justify-self: start;
}

.ai-message-meta {
  color: rgb(212 228 250 / 0.46);
  font-size: var(--text-xs);
  font-weight: 700;
}

.ai-message--user .ai-message-meta {
  text-align: right;
}

.ai-message--user p {
  border: 1px solid rgb(173 199 247 / 0.24);
  border-radius: var(--radius-md);
  background: rgb(26 54 93 / 0.78);
  padding: var(--space-4);
  color: #ffffff;
}

.ai-answer-card {
  display: grid;
  gap: var(--space-4);
  border: 1px solid rgb(173 199 247 / 0.16);
  border-left: 2px solid #7bd0ff;
  border-radius: var(--radius-md);
  background: rgb(28 43 60 / 0.92);
  padding: var(--space-4);
}

.ai-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.ai-price-grid div {
  border: 1px solid rgb(173 199 247 / 0.14);
  border-radius: var(--radius-md);
  background: rgb(13 28 45 / 0.82);
  padding: var(--space-3);
}

.ai-price-grid span {
  display: block;
  color: rgb(212 228 250 / 0.58);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-price-grid strong {
  display: block;
  margin-top: var(--space-1);
  color: #adc7f7;
  font-size: var(--text-xl);
  font-weight: 700;
}

.ai-modal-composer {
  border-top: 1px solid rgb(173 199 247 / 0.16);
  background: rgb(5 20 36 / 0.94);
  padding: var(--space-4) var(--space-6);
}

.ai-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 800px;
  margin: 0 auto var(--space-3);
}

.ai-suggestion-row button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid rgb(173 199 247 / 0.18);
  border-radius: var(--radius-sm);
  color: rgb(212 228 250 / 0.72);
  background: rgb(28 43 60 / 0.64);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ai-suggestion-row button:hover {
  border-color: rgb(123 208 255 / 0.42);
  color: #7bd0ff;
  background: rgb(44 58 76 / 0.82);
}

.ai-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px auto;
  align-items: end;
  gap: var(--space-2);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgb(173 199 247 / 0.18);
  border-radius: var(--radius-md);
  background: rgb(13 28 45 / 0.84);
  padding: var(--space-2);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ai-input-row:focus-within {
  border-color: rgb(173 199 247 / 0.42);
  box-shadow: 0 0 0 2px rgb(173 199 247 / 0.12);
}

.ai-input-row textarea {
  min-height: 44px;
  max-height: 144px;
  resize: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 12px var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  outline: 0;
}

.ai-input-row textarea::placeholder {
  color: rgb(212 228 250 / 0.42);
}

.ai-send-btn {
  gap: var(--space-2);
  height: 36px;
  min-height: 36px;
  padding-inline: var(--space-4);
}

.ai-modal-caption {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: var(--space-2) auto 0;
  color: rgb(212 228 250 / 0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.ai-modal-open {
  overflow: hidden;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.stat-panel {
  position: relative;
  display: flex;
  min-height: 152px;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.stat-panel--chart {
  min-height: 190px;
}

.stat-panel--summary {
  min-height: 152px;
}

.stat-panel:hover,
.stat-panel:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  background: linear-gradient(180deg, var(--color-surface) 0%, rgb(240 243 255 / 0.64) 100%);
  box-shadow: 0 14px 34px rgb(0 32 69 / 0.14);
  transform: translateY(-3px);
  outline: 0;
}

.stat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.stat-panel .caption {
  color: var(--color-ink-soft);
}

.stat-panel .status-pill {
  padding: 4px 8px;
  font-size: var(--text-xs);
}

.stat-panel-value {
  margin-top: var(--space-2);
  color: var(--color-ink);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-tight);
}

.stat-panel-note {
  margin: var(--space-2) 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-snug);
}

.mini-bars {
  display: grid;
  height: 82px;
  grid-template-columns: repeat(var(--bars, 12), minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: var(--space-2);
}

.mini-bars span {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}

.mini-bars span::before {
  display: block;
  /* --bar: 0..100 (Ð±ÐµÐ· ÐµÐ´Ð¸Ð½Ð¸ÑÑ); % height Ð²Ð½ÑÑÑÐ¸ flex Ð½Ðµ ÑÐµÐ·Ð¾Ð»Ð²Ð¸ÑÑÑ ÑÑÐ°Ð±Ð¸Ð»ÑÐ½Ð¾ */
  height: calc(var(--bar, 50) / 100 * 52px);
  min-height: 14px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-primary);
  content: "";
  order: 2;
}

.mini-bars strong {
  order: 1;
  color: var(--color-ink-soft);
  font-size: 9px;
  font-weight: 700;
  line-height: var(--leading-tight);
  text-align: center;
}

.mini-bars em {
  order: 3;
  color: var(--color-ink-soft);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: var(--leading-tight);
  text-align: center;
}

.mini-bars .is-muted::before {
  background: var(--color-ink-muted);
}

.stat-panel-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  color: var(--color-primary);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-transform: uppercase;
}

.stat-panel-link .material-symbols-outlined {
  font-size: 34px;
  transition: transform 180ms ease;
}

.listing-card-link {
  gap: 6px;
  margin-top: 0;
  color: var(--color-accent);
  font-size: var(--text-xs);
  line-height: var(--leading-tight);
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.listing-card-link .material-symbols-outlined {
  font-size: 18px;
}

.stat-panel:hover .stat-panel-link .material-symbols-outlined,
.stat-panel:focus-visible .stat-panel-link .material-symbols-outlined {
  transform: translateX(4px);
}

.listing-card:hover .listing-card-link,
.listing-card:focus-within .listing-card-link {
  color: var(--color-primary);
}

.listing-card:hover .listing-card-link .material-symbols-outlined,
.listing-card:focus-within .listing-card-link .material-symbols-outlined {
  transform: translateX(4px);
}

.stat-metrics {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.stat-metrics--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-metrics span,
.stat-metrics strong,
.stat-metrics em {
  display: block;
}

.stat-metrics span {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
}

.stat-metrics strong {
  margin-top: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-tight);
}

.stat-metrics em {
  margin-top: 2px;
  color: var(--color-success);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 700;
}

.stat-metrics em.trend-negative {
  color: var(--color-danger);
}

.status-pill--stack {
  align-items: center;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgb(196 198 207 / 0.42);
  padding-block: 7px;
  font-size: var(--text-sm);
}

.content-grid {
  display: grid;
  gap: var(--space-5);
}

.content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-scroll-widget {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-auto-columns: 370px;
  grid-auto-flow: column;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--space-2) 0 var(--space-4);
  scroll-behavior: smooth;
  scroll-padding-inline: var(--space-2);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.media-scroll-widget > * {
  width: 370px;
  max-width: 370px;
  scroll-snap-align: start;
}

.media-scroll-widget::-webkit-scrollbar {
  height: 8px;
}

.media-scroll-widget::-webkit-scrollbar-track {
  background: rgb(240 243 255 / 0.72);
}

.media-scroll-widget::-webkit-scrollbar-thumb {
  border-radius: var(--radius-sm);
  background: rgb(111 118 128 / 0.34);
}

.media-scroll-widget::-webkit-scrollbar-thumb:hover {
  background: rgb(111 118 128 / 0.5);
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.content-card:hover,
.content-card:focus-within {
  border-color: rgb(0 32 69 / 0.34);
  box-shadow: 0 14px 34px rgb(0 32 69 / 0.14);
  transform: translateY(-3px);
}

.content-card-media {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--color-surface-strong);
}

.content-card-body {
  padding: var(--space-4);
}

.content-card h3 {
  margin: var(--space-3) 0 var(--space-2);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.content-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.tag--industry {
  color: var(--color-chart-6-strong);
  background: var(--color-chart-6-soft);
}

.tag--site {
  color: var(--color-chart-1-strong);
  background: var(--color-chart-1-soft);
}

.tag--analytics {
  color: var(--color-chart-2-strong);
  background: var(--color-chart-2-soft);
}

.tag--review {
  color: var(--color-chart-5-strong);
  background: var(--color-chart-5-soft);
}

.media-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
}

.media-card-top > .tag {
  position: relative;
}

.media-card-top > .tag:has(+ .topic-chip) {
  margin-right: var(--space-3);
}

/* "|" ÑÐ¾Ð»ÑÐºÐ¾ ÐµÑÐ»Ð¸ Ð¿Ð¾ÑÐ»Ðµ ÐºÐ°ÑÐµÐ³Ð¾ÑÐ¸Ð¸ ÐµÑÑÑ ÑÐµÐ³Ð¸ */
.media-card-top > .tag:has(+ .topic-chip)::after {
  content: "|";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--space-2));
  transform: translateY(-50%);
  color: var(--color-ink-muted);
}

.media-list-card .media-card-top {
  margin-bottom: var(--space-2);
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  color: var(--color-ink-muted);
  background: rgb(240 243 255 / 0.8);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  white-space: nowrap;
}

.media-page-title {
  display: grid;
  gap: var(--space-2);
  margin-bottom: 0;
}

.page-title {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.page-title--actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--space-5);
}

.page-title-content {
  display: grid;
  gap: var(--space-2);
}

.page-title-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: var(--space-2);
}

.page-title-actions .btn {
  white-space: nowrap;
}

.media-page-title h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.media-page-title p {
  max-width: 760px;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.media-page-title .page-title-line {
  max-width: none;
  white-space: nowrap;
}

.media-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: var(--space-5);
  align-items: stretch;
}

.media-feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.media-feature-card .content-card-media {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
}

.media-feature-card .content-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-feature-card .content-card-body {
  flex: 0 0 auto;
}

.media-feature-card h3 {
  font-size: var(--text-xl);
}

.home-media-grid .content-card-media,
.media-cards-tall .content-card-media {
  height: 210px;
}

.media-list {
  display: grid;
  gap: var(--space-3);
}

.media-list-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-3);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.media-list-card:hover,
.media-list-card:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  background: rgb(240 243 255 / 0.58);
  box-shadow: 0 10px 24px rgb(0 32 69 / 0.10);
  transform: translateY(-2px);
  outline: 0;
}

.media-list-card img {
  width: 118px;
  height: 86px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.media-list-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.media-list-card:hover h3,
.media-list-card:focus-visible h3,
.content-card:hover h3,
.content-card:focus-within h3 {
  color: var(--color-primary);
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.media-meta .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.media-opinion-card {
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.media-opinion-person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.media-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

img.media-avatar {
  display: block;
  object-fit: cover;
}

.media-opinion-person strong,
.media-opinion-person span {
  display: block;
}

.media-opinion-person strong {
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.media-opinion-person span {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.media-opinion-card h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.media-opinion-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.media-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: var(--space-5);
}

.media-news-list {
  display: grid;
  gap: var(--space-3);
}

.media-load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.news-toolbar {
  display: grid;
  gap: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-6);
}

.news-toolbar-top,
.news-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.news-search {
  display: flex;
  width: min(100%, 420px);
}

.news-search-field {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.news-search input {
  width: 100%;
  height: var(--input-height);
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--color-surface);
  padding: 0 42px 0 var(--space-4);
  color: var(--color-ink);
  font-size: var(--text-base);
}

.news-search input::-webkit-search-cancel-button,
.news-search input::-webkit-search-decoration {
  display: none;
  appearance: none;
}

.news-search input:focus {
  outline: 0;
  box-shadow: var(--shadow-focus);
}

.news-search .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-search-hotkey,
.news-search-clear {
  position: absolute;
  top: 50%;
  right: var(--space-3);
  transform: translateY(-50%);
}

.news-search-hotkey {
  min-width: 22px;
  border: 1px solid rgb(196 198 207 / 0.72);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--color-ink-muted);
  background: rgb(247 248 252 / 0.9);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-align: center;
}

.news-search-clear {
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--color-ink-muted);
  background: transparent;
  cursor: pointer;
}

.news-search-clear .material-symbols-outlined {
  font-size: 20px;
}

.news-search.is-filled .news-search-hotkey {
  display: none;
}

.news-search.is-filled .news-search-clear {
  display: inline-flex;
}

.news-search-submit {
  min-width: 72px;
  gap: var(--space-1);
  padding-inline: var(--space-3);
}

.news-search-return {
  opacity: 0.45;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.news-tab {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--color-ink-muted);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-decoration: none;
  text-transform: uppercase;
}

.news-tab:hover,
.news-tab.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.news-card .content-card-media {
  height: 190px;
}

.news-card h3 {
  font-size: var(--text-lg);
}

.news-feed {
  display: grid;
  gap: var(--space-2);
}

.news-feed-card {
  display: grid;
  grid-template-columns: 118px 72px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-3);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.news-feed-card:hover,
.news-feed-card:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  background: rgb(240 243 255 / 0.58);
  box-shadow: 0 10px 24px rgb(0 32 69 / 0.10);
  transform: translateY(-2px);
  outline: 0;
}

.news-feed-card img {
  width: 118px;
  height: 86px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.news-feed-date {
  display: grid;
  align-content: center;
  justify-items: start;
  border-right: 1px solid rgb(196 198 207 / 0.55);
  padding-right: var(--space-3);
  color: var(--color-ink-soft);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.news-feed-date strong {
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 0.95;
}

.news-feed-date span,
.news-feed-date em {
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-feed-body {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  min-width: 0;
}

.news-feed-body > strong {
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.news-feed-card:hover .news-feed-body > strong,
.news-feed-card:focus-visible .news-feed-body > strong {
  color: var(--color-primary);
}

.news-feed-body > span:not(.media-card-top) {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-surface);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  line-height: var(--leading-button);
  text-decoration: none;
}

.news-pagination a:hover,
.news-pagination a.is-active {
  border-color: var(--color-primary);
  color: #ffffff;
  background: var(--color-primary);
}

.news-pagination span {
  border-color: transparent;
  color: var(--color-ink-muted);
  background: transparent;
}

.news-pagination-next {
  gap: var(--space-2);
  padding: 0 var(--space-4);
}

.topic-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}

.topic-filter span {
  color: rgb(111 118 128 / 0.82);
  font-size: var(--text-xs);
  font-weight: 600;
}

.topic-filter a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  color: var(--color-ink-soft);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
}

.topic-filter a:hover,
.topic-filter a:focus-visible,
.topic-filter a.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  outline: 0;
}

.article-page-grid {
  align-items: start;
}

.article-shell {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}

.back-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-accent);
  outline: 0;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.article-breadcrumbs a,
.article-breadcrumbs strong {
  color: var(--color-primary);
  text-decoration: none;
}

.article-header {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.article-header h1 {
  max-width: none;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.article-header p {
  max-width: none;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}

.article-cover {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
}

/* HTML Ð¸Ð· legacy-ÑÐµÐ´Ð°ÐºÑÐ¾ÑÐ° ÑÐ°ÑÑÐ¾ ÑÐ¾Ð´ÐµÑÐ¶Ð¸Ñ inline font-family/font-size. */
.article-content :where(*):not(h2):not(h3):not(blockquote) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.article-content p,
.article-content li {
  margin: 0;
  color: var(--color-ink);
}

.article-content h2,
.article-content h3 {
  margin: var(--space-3) 0 0;
  color: var(--color-primary);
  font-family: var(--font-sans) !important;
  font-weight: 700;
  line-height: var(--leading-tight);
}

.article-content h2 {
  font-size: var(--text-2xl) !important;
}

.article-content h3 {
  font-size: var(--text-xl) !important;
}

.article-content blockquote {
  margin: var(--space-2) 0;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-soft);
  padding: var(--space-4) var(--space-5);
  color: var(--color-ink);
  font-family: var(--font-sans) !important;
  font-size: var(--text-lg) !important;
  font-weight: 600;
  line-height: var(--leading-normal);
}

.article-related {
  display: grid;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

.tender-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.tender-dashboard--wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tenders-date-line {
  white-space: nowrap;
}

.filter-row.tender-filter {
  width: 100%;
  align-items: end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
}

.filter-row.tender-filter--construction {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.filter-row.tender-filter--stone {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.filter-row.tender-filter--stone .filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.tender-filter label {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.tender-filter .filter-actions {
  display: flex;
  grid-column: auto;
  flex-wrap: nowrap;
  align-items: end;
  gap: var(--space-2);
  padding-top: 0;
}

.tender-filter .filter-actions .btn {
  width: auto;
  min-width: 7.5rem;
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.tender-filter .filter-actions .filter-excel-btn {
  width: auto;
  min-width: 0;
  justify-self: auto;
}

.tender-filter .field,
.tender-filter .select,
.tender-filter .btn {
  width: 100%;
  height: 36px;
  min-height: 36px;
  font-size: var(--text-sm);
}

.tender-filter .field[type="date"] {
  min-width: 0;
}

.tender-icon-btn {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
}

.filter-reset-btn,
.filter-excel-btn {
  min-width: 0;
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.filter-excel-btn {
  color: var(--color-accent);
  width: max-content;
  justify-self: start;
}

.filter-row .btn .material-symbols-outlined,
.filters-form .btn .material-symbols-outlined {
  font-size: 18px;
}

.dashboard-mini-chart--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-1);
  margin-top: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-align: center;
}

.dashboard-grid--three .dashboard-values {
  gap: 0;
  font-size: clamp(0.5rem, calc(0.625rem - (var(--chart-cols, 5) - 5) * 0.045rem), 0.625rem);
  letter-spacing: -0.02em;
}

.dashboard-grid--three .dashboard-values span {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.dashboard-grid--three .dashboard-values--pier {
  gap: 0;
  font-size: 0.5625rem;
  letter-spacing: -0.03em;
}

.dashboard-grid--three .dashboard-values--month-labels {
  margin-top: var(--space-1);
  color: var(--color-ink-muted);
  font-weight: 600;
  text-transform: none;
}

.dashboard-values--angled {
  gap: 0;
  height: 2.75rem;
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: clamp(
    0.4375rem,
    calc(0.625rem - (var(--chart-cols, 6) - 5) * 0.05rem),
    0.625rem
  );
  letter-spacing: -0.02em;
  overflow: visible;
}

.dashboard-values--angled span {
  display: block;
  min-width: 0;
  line-height: 1;
  transform: rotate(-58deg);
  transform-origin: top center;
  white-space: nowrap;
}

.dashboard-grid--five .dashboard-card--volume {
  padding-bottom: calc(var(--space-4) + var(--space-2));
  overflow: visible;
}

.dashboard-grid--five .dashboard-values.dashboard-values--angled {
  height: 3rem;
  margin-bottom: var(--space-2);
  font-size: clamp(
    0.5rem,
    calc(0.625rem - (var(--chart-cols, 6) * 0.025rem)),
    0.625rem
  );
}

.dashboard-grid--five .dashboard-card .dashboard-values.dashboard-values--angled span {
  text-transform: none;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: center center;
  justify-self: center;
}

.filter-row.rail-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
}

.rail-filter-directions {
  grid-column: 1 / -1;
}

.rail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.rail-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--color-ink-soft);
  background: transparent;
  font-family: inherit;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.rail-tab:hover,
.rail-tab.is-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

.rail-filter .field,
.rail-filter .select,
.rail-filter .btn {
  height: 36px;
  min-height: 36px;
  font-size: var(--text-sm);
}

.filter-row.rail-filter .filter-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  align-self: end;
}

.filter-row.rail-filter .filter-actions .btn {
  width: 100%;
}

.filter-row.rail-filter .filter-actions .filter-excel-btn {
  width: max-content;
}

.filter-row.rail-filter .filter-actions .tender-icon-btn {
  width: 100%;
  min-width: 0;
}

.filter-row.rail-filter .filter-actions .rail-excel-btn {
  width: 36px;
  min-width: 36px;
  justify-self: start;
}

.filter-row.rail-filter--inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-row.rail-filter--inline.rail-filter--ships {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(120px, 0.72fr)
    minmax(96px, 0.56fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(124px, 0.64fr);
}

.filter-row.rail-filter--inline .filter-actions {
  display: contents;
  grid-column: auto;
}

.filter-row.rail-filter--inline .filter-actions .btn {
  width: 100%;
}

.filter-row.rail-filter--inline .filter-actions .filter-excel-btn {
  width: max-content;
}

.rail-excel-btn {
  gap: var(--space-1);
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
  color: var(--color-accent);
  border-color: transparent;
  background: transparent;
  font-size: 0;
}

.rail-excel-btn:hover,
.rail-excel-btn:focus-visible {
  color: var(--color-primary);
  background: transparent;
}

.rail-excel-btn .material-symbols-outlined {
  font-size: 28px;
}

.scroll-top-btn {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--space-6);
  z-index: 40;
  display: inline-flex;
  min-width: 112px;
  height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  line-height: var(--leading-button);
  letter-spacing: var(--letter-spacing-button);
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.scroll-top-btn.btn-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible,
.scroll-top-btn.btn-primary:hover,
.scroll-top-btn.btn-primary:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.scroll-top-btn.is-inverted,
.tender-scroll-top.is-inverted {
  border-color: #ffffff;
  color: var(--color-primary);
  background: #ffffff;
}

.scroll-top-btn .material-symbols-outlined {
  font-size: 20px;
}

.tender-filter .tender-icon-btn {
  width: 100%;
  min-width: 0;
}

.tender-filter .filter-actions .tender-icon-btn--compact {
  width: 36px;
  min-width: 36px;
  justify-self: start;
  padding-inline: 0;
}

.tender-product-title {
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.tender-rank-list {
  --rank-value-width: 92px;
  --rank-trend-width: 64px;
  position: relative;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-6);
}

.tender-rank-list::before,
.tender-rank-list::after {
  position: absolute;
  top: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-align: right;
  white-space: nowrap;
}

.tender-rank-list::before {
  right: calc(var(--rank-trend-width) + var(--space-3));
  width: var(--rank-value-width);
  content: "ÐÐ±ÑÑÐ¼.";
  color: var(--color-ink-muted);
}

.tender-rank-list::after {
  right: 0;
  width: var(--rank-trend-width);
  content: "vs 2025";
  color: var(--color-chart-2);
}

.tender-rank-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rank-value-width) var(--rank-trend-width);
  align-items: center;
  gap: var(--space-3);
}

.dashboard-card > span + em.trend-positive {
  display: none;
}

.dashboard-card .tender-rank-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: visible;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  line-height: var(--leading-snug);
  text-overflow: clip;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-card .tender-rank-list strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
  text-align: right;
  white-space: nowrap;
}

.value-lock-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.value-lock {
  font-size: 18px;
  line-height: 1;
  color: var(--color-ink-soft);
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.data-table .text-right .value-lock-wrap,
.data-table .numeric-cell .value-lock-wrap,
.data-table tfoot .nowrap .value-lock-wrap {
  display: inline-flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  font-weight: 400;
}

.data-table .value-lock-wrap .value-lock {
  font-size: 18px;
  font-weight: 400;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.dashboard-card .tender-rank-list .value-lock {
  font-size: 16px;
  color: var(--color-primary);
}

.dashboard-card .tender-rank-list em {
  grid-column: 3;
  grid-row: 1;
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-snug);
  text-align: right;
  white-space: nowrap;
}

.tender-rank-list--carrier {
  --rank-value-width: 72px;
  --rank-trend-width: 88px;
  margin-top: var(--space-3);
  padding-top: 0;
}

.tender-rank-list--carrier::before,
.tender-rank-list--carrier::after {
  content: none;
}

.tender-rank-list--carrier div {
  grid-template-columns: minmax(0, 1fr) var(--rank-trend-width) var(--rank-value-width);
}

.tender-rank-list--carrier em {
  grid-column: 2;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.tender-rank-list--carrier strong {
  grid-column: 3;
}

.table-gate {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  text-align: center;
}

.table-gate p {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: 700;
}

.dashboard-card .trend-positive,
.trend-positive {
  color: var(--color-chart-2);
}

.dashboard-card .trend-negative,
.trend-negative {
  color: var(--color-chart-4);
}

.tender-list {
  display: grid;
  gap: var(--space-4);
}

.tender-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.tender-card:hover,
.tender-card:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  background: rgb(240 243 255 / 0.58);
  box-shadow: 0 14px 34px rgb(0 32 69 / 0.14);
  transform: translateY(-2px);
  outline: 0;
}

.tender-thumb {
  display: grid;
  width: 112px;
  height: 92px;
  min-height: 92px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.tender-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tender-thumb .material-symbols-outlined {
  font-size: 36px;
}

.tender-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.tender-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.tender-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.tender-meta span {
  display: block;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tender-price {
  color: var(--color-primary) !important;
  font-size: var(--text-base) !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.tender-detail-grid {
  display: grid;
  gap: var(--space-4);
}

.tender-detail-row {
  border-bottom: 1px solid rgb(196 198 207 / 0.48);
  padding-bottom: var(--space-4);
}

.tender-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tender-detail-row span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tender-detail-row strong,
.tender-detail-row a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.tender-detail-row a:hover {
  text-decoration: underline;
}

.tender-detail-row--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.tender-detail-row--action > div {
  min-width: 0;
}

.tender-detail-action {
  flex: 0 0 auto;
  text-decoration: none !important;
}


.tender-scroll-top {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--space-6);
  z-index: 40;
  display: inline-flex;
  min-width: 112px;
  height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding-inline: var(--space-4);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tender-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: end;
}

.contact-hero h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.contact-hero p {
  max-width: 760px;
  margin: var(--space-3) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}

.contact-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-4);
  border: 1px solid rgb(0 32 69 / 0.10);
  border-radius: var(--radius-lg);
  color: var(--color-ink-soft);
  background: var(--color-primary-soft);
  padding: var(--space-5);
}

.contact-notice .material-symbols-outlined {
  color: var(--color-primary);
}

.contact-notice p {
  margin: 0;
}

.contact-notice a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-notice a:hover {
  text-decoration: underline;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: var(--space-6);
  align-items: stretch;
}

.contacts-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.about-hero {
  align-items: start;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.about-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.about-features-card {
  padding: var(--space-6);
}

.about-feature-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-feature-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-ink-soft);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.about-feature-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-primary);
}

.about-feature-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-card:hover {
  border-color: rgb(0 32 69 / 0.34);
  box-shadow: 0 14px 34px rgb(0 32 69 / 0.14);
  transform: translateY(-2px);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.contact-card h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.contact-detail-list {
  display: grid;
  gap: var(--space-4);
}

.contact-detail-list span,
.contact-form-label {
  display: block;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.contact-detail-list strong,
.contact-detail-list a {
  display: block;
  margin-top: 4px;
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: var(--leading-normal);
  text-decoration: none;
}

.contact-detail-list dd > span {
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--leading-normal);
  text-transform: none;
}

.contact-detail-list a:hover {
  text-decoration: underline;
}

.contact-market-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgb(211 222 255 / 0.18) 0 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  padding: var(--space-8);
}

.contact-market-panel h2 {
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-8);
  left: var(--space-8);
  margin: 0;
  color: #ffffff;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

.contact-market-panel span {
  color: rgb(255 255 255 / 0.62);
}

.contact-form-card {
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: var(--color-primary);
  padding: var(--space-8);
  box-shadow: 0 24px 56px rgb(0 32 69 / 0.24);
}

.contact-form-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

.contact-form-card p {
  margin: var(--space-3) 0 var(--space-8);
  color: rgb(255 255 255 / 0.62);
}

.contact-form-card .auth-success,
.contact-form-card .auth-error {
  margin: var(--space-3) 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.contact-form-card .auth-success {
  border: 1px solid rgb(134 239 172 / 0.55);
  background: rgb(220 252 231);
  color: rgb(21 128 61);
}

.contact-form-card .auth-error {
  border: 1px solid rgb(252 165 165 / 0.7);
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.contact-form-label {
  color: rgb(255 255 255 / 0.48);
  margin-bottom: var(--space-2);
}

.contact-field,
.contact-textarea,
.contact-select {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: rgb(255 255 255 / 0.06);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-field,
.contact-select {
  height: var(--input-height);
  padding: 0 var(--space-4);
}

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 48px;
}

.contact-textarea {
  min-height: 132px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.contact-field::placeholder,
.contact-textarea::placeholder {
  color: rgb(255 255 255 / 0.28);
}

.contact-field:focus,
.contact-textarea:focus,
.contact-select:focus {
  outline: 0;
  border-color: rgb(255 255 255 / 0.42);
  box-shadow: 0 0 0 3px rgb(211 222 255 / 0.16);
}

.contact-select option {
  color: var(--color-ink);
}

.contact-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-3);
  color: rgb(255 255 255 / 0.58);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.contact-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.directory-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: var(--space-6);
  align-items: start;
}

.filters-panel,
.producer-list,
.company-shell {
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.filters-panel {
  position: sticky;
  top: 132px;
  padding: var(--space-4);
}

.filters-panel h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.producer-list-head h1 {
  margin: 0;
  min-width: 0;
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.filters-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.filter-ac-field {
  position: relative;
}

.filter-ac {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  background: var(--color-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.filter-ac[hidden] {
  display: none !important;
}

.filter-ac-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.filter-ac-item:last-child {
  border-bottom: 0;
}

.filter-ac-item:hover,
.filter-ac-item.is-active {
  background: var(--color-surface-muted, #f3f4f6);
}

.producer-list {
  overflow: hidden;
}

.producer-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
}

.producer-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: var(--space-4);
}

.producer-list-actions a:not(.btn) {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.map-search-shell {
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.map-search-shell .page-title {
  margin-bottom: var(--space-5);
}

.map-search-shell .page-title h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.map-search-shell .page-title p {
  max-width: 760px;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.map-search-filters {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(420px, 1.6fr) minmax(170px, 0.8fr) auto;
  align-items: end;
  gap: var(--space-3);
  border-radius: var(--radius-md);
  background: rgb(240 243 255 / 0.52);
  padding: var(--space-3);
}

.map-type-filter {
  display: grid;
  gap: var(--space-2);
}

.map-search-filters > label,
.map-search-filters .map-type-filter {
  display: grid;
  grid-template-rows: 24px var(--button-height);
  gap: var(--space-2);
  align-self: end;
}

.map-search-filters > label .field-label,
.map-search-filters .map-type-label {
  height: 24px;
  align-items: center;
  margin-bottom: 0;
  line-height: var(--leading-tight);
}

.map-type-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}

.map-type-label::after {
  display: block;
  height: 1px;
  background: var(--color-border);
  content: "";
}

.map-type-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.map-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  min-height: var(--button-height);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.map-type-chip:hover,
.map-type-chip:focus-visible {
  border-color: rgb(100 108 130 / 0.55);
  box-shadow: var(--shadow-focus);
  outline: 0;
}

.map-type-chip--producer.is-active {
  color: var(--color-chart-1-strong);
  background: var(--color-chart-1-soft);
  border-color: var(--color-chart-1);
  box-shadow: 0 0 0 1px var(--color-chart-1);
}

.map-type-chip--warehouse.is-active {
  color: var(--color-chart-5-strong);
  background: var(--color-chart-5-soft);
  border-color: var(--color-chart-5);
  box-shadow: 0 0 0 1px var(--color-chart-5);
}

.map-type-chip--consumer.is-active {
  color: var(--color-chart-2-strong);
  background: var(--color-chart-2-soft);
  border-color: var(--color-chart-2);
  box-shadow: 0 0 0 1px var(--color-chart-2);
}

.map-reset-btn {
  align-self: end;
}

.map-search-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.map-results-panel,
.map-canvas-panel {
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.map-results-panel {
  max-height: 680px;
  overflow-y: auto;
}

.map-results-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.96);
  padding: var(--space-4);
}

.map-results-head span {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.map-results-head small {
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.map-result-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  border-bottom: 1px solid rgb(196 198 207 / 0.42);
  color: var(--color-ink);
  padding: var(--space-3);
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.map-result-card:hover,
.map-result-card:focus-visible,
.map-result-card.is-active {
  background: rgb(240 243 255 / 0.72);
  box-shadow: inset 3px 0 0 var(--color-primary);
  outline: 0;
}

.map-result-card:last-child {
  border-bottom: 0;
}

.map-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.map-result-icon .material-symbols-outlined {
  font-size: 23px;
}

.map-result-icon--producer {
  background: var(--color-chart-1);
}

.map-result-icon--warehouse {
  background: var(--color-chart-5);
}

.map-result-icon--consumer {
  background: var(--color-chart-2);
}

.map-result-content {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.map-result-content strong {
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-result-tag {
  justify-self: start;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  white-space: nowrap;
}

.map-result-tag--producer {
  color: var(--color-chart-1-strong);
  background: var(--color-chart-1-soft);
}

.map-result-tag--warehouse {
  color: var(--color-chart-5-strong);
  background: var(--color-chart-5-soft);
}

.map-result-tag--consumer {
  color: var(--color-chart-2-strong);
  background: var(--color-chart-2-soft);
}

.map-result-meta,
.map-result-products {
  overflow: hidden;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-result-products {
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
}

.map-canvas-panel {
  min-height: 680px;
}

.map-canvas-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgb(196 198 207 / 0.55);
  background: var(--color-surface);
  padding: var(--space-3);
}

.map-zoom-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.map-zoom-controls button {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.map-zoom-controls button + button {
  border-left: 1px solid var(--color-border);
}

.map-canvas {
  position: relative;
  height: 624px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(196 198 207 / 0.20) 1px, transparent 1px),
    linear-gradient(0deg, rgb(196 198 207 / 0.20) 1px, transparent 1px),
    radial-gradient(circle at 18% 26%, rgb(214 227 255 / 0.95), transparent 23%),
    radial-gradient(circle at 74% 74%, rgb(220 252 231 / 0.72), transparent 28%),
    #eef3fb;
  background-size: 52px 52px, 52px 52px, auto, auto, auto;
}

.map-canvas--live {
  background: #e8eef7;
}

.map-search-yandex {
  width: 100%;
  height: 100%;
  min-height: 624px;
}

.map-canvas--live .map-legend {
  z-index: 5;
  pointer-events: none;
}

.map-canvas--live .map-preview-card {
  z-index: 6;
  top: var(--space-4);
  left: var(--space-4);
  pointer-events: auto;
}

.map-preview-card[hidden] {
  display: none;
}

.map-preview-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.map-preview-close:hover,
.map-preview-close:focus-visible {
  background: rgb(15 23 42 / 0.06);
  color: var(--color-ink);
}

.map-preview-close .material-symbols-outlined {
  font-size: 18px;
}

.map-preview-card .btn {
  justify-self: start;
}

.map-road,
.map-river {
  position: absolute;
  pointer-events: none;
}

.map-road {
  height: 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: inset 0 0 0 1px rgb(196 198 207 / 0.42);
  transform-origin: left center;
}

.map-road--one {
  top: 31%;
  left: -6%;
  width: 70%;
  transform: rotate(-17deg);
}

.map-road--two {
  top: 58%;
  right: -8%;
  width: 76%;
  transform: rotate(23deg);
}

.map-road--three {
  top: 78%;
  left: 9%;
  width: 46%;
  transform: rotate(-7deg);
}

.map-river {
  top: 14%;
  right: 16%;
  width: 42%;
  height: 74%;
  border: 18px solid rgb(173 199 247 / 0.36);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 48% 44% 52% 36%;
  transform: rotate(13deg);
}

.map-pin,
.map-cluster {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.map-pin {
  top: var(--pin-y);
  left: var(--pin-x);
  width: 40px;
  height: 40px;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.map-pin .material-symbols-outlined {
  font-size: 20px;
}

.map-pin:hover,
.map-pin:focus-visible,
.map-pin.is-active {
  box-shadow: 0 0 0 6px rgb(173 199 247 / 0.65), var(--shadow-md);
  outline: 0;
  transform: translate(-50%, -50%) scale(1.08);
}

.map-pin--producer {
  background: var(--color-chart-1);
}

.map-pin--trader {
  background: var(--color-chart-2);
}

.map-pin--warehouse {
  background: var(--color-chart-5);
}

.map-pin--carrier {
  background: var(--color-chart-4);
}

.map-cluster {
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.map-cluster--one {
  top: 25%;
  left: 39%;
}

.map-cluster--two {
  top: 39%;
  left: 56%;
  width: 38px;
  height: 38px;
}

.map-preview-card {
  position: absolute;
  z-index: 3;
  top: 28%;
  left: 9%;
  display: grid;
  gap: var(--space-3);
  width: min(300px, calc(100% - 32px));
  border: 1px solid rgb(196 198 207 / 0.66);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.96);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
}

.map-preview-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.map-preview-head strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.map-preview-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.map-legend {
  position: absolute;
  z-index: 3;
  bottom: var(--space-4);
  left: var(--space-4);
  display: grid;
  gap: var(--space-2);
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
}

.map-legend strong {
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot--producer {
  background: var(--color-chart-1);
}

.legend-dot--warehouse {
  background: var(--color-chart-5);
}

.legend-dot--consumer {
  background: var(--color-chart-2);
}

.producer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  border-bottom: 1px solid rgb(196 198 207 / 0.36);
  padding: var(--space-5);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.producer-card:last-child {
  border-bottom: 0;
}

.producer-card:hover,
.producer-card:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  background: rgb(240 243 255 / 0.58);
  box-shadow: 0 10px 24px rgb(0 32 69 / 0.10);
  transform: translateY(-2px);
  outline: 0;
}

.producer-card.is-featured {
  border-left: 4px solid var(--color-primary);
  background: rgb(240 243 255 / 0.68);
}

.producer-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.producer-card .status-pill {
  height: 24px;
}

.producer-card .status-pill::before,
.company-badges .status-pill::before {
  content: "verified_user";
  font-family: "Material Symbols Outlined";
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
  line-height: 1;
}

.producer-region,
.producer-views {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.producer-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.producer-meta-grid span {
  color: var(--color-ink-muted);
}

.list-ad {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid rgb(196 198 207 / 0.36);
  padding: var(--space-4) var(--space-5);
  color: var(--color-primary);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
}

.list-ad .wide-ad-label {
  right: var(--space-4);
}

.list-ad strong {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.producer-list-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.pagination a:hover,
.pagination a.is-active {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.company-hero {
  position: sticky;
  top: 96px;
  z-index: 12;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.company-hero--berth .company-kpis {
  margin-top: var(--space-5);
}

.company-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
}

.company-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.company-hero h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.company-hero p {
  margin: var(--space-2) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-lg);
}

.company-badges,
.company-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.company-badges .status-pill {
  height: 24px;
}

.company-actions {
  justify-content: flex-end;
}

.company-kpis,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.dashboard-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.dashboard-card,
.manager-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.info-card {
  display: flex;
  flex-direction: column;
}

.dashboard-card {
  background: rgb(240 243 255 / 0.42);
}

.dashboard-mini-chart {
  display: grid;
  height: 78px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: var(--space-4);
  border-radius: var(--radius-sm);
  background: rgb(211 222 255 / 0.34);
  padding: var(--space-2);
}

.dashboard-mini-chart span {
  display: block;
  height: var(--bar);
  min-height: 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-primary);
}

.dashboard-mini-chart span.is-current {
  background: var(--color-accent);
}

.dashboard-mini-label {
  margin-top: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.info-card span,
.dashboard-card span {
  display: block;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-card strong,
.dashboard-card strong {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.dashboard-card em {
  display: block;
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.company-shell {
  overflow: hidden;
}

.company-shell-head {
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--color-surface);
}

.company-shell-head--compact {
  padding-bottom: var(--space-2);
}

.company-shell-head .company-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.company-shell-head h1 {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.company-shell-head h1 .status-pill {
  height: 24px;
  font-size: var(--text-xs);
  letter-spacing: 0;
  text-transform: none;
}

.company-shell-head h1 .status-pill::before {
  content: "verified_user";
  font-family: "Material Symbols Outlined";
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
  line-height: 1;
}

.company-shell-subtitle {
  margin: var(--space-3) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

.company-tabs {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  padding-inline: var(--space-5);
}

.company-tab {
  display: inline-flex;
  height: 56px;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--color-ink-soft);
  background: transparent;
  font-family: inherit;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--leading-button);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.company-tab.is-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

.company-section {
  display: none;
  padding: var(--space-5);
}

.company-section.is-active {
  display: block;
}

.company-section h2 {
  margin: 0 0 var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.page-stack--tender {
  gap: var(--space-3);
}

.page-stack--company {
  gap: var(--space-5);
}

.page-title--tender {
  margin-bottom: 0;
}

.company-section-head {
  margin-bottom: var(--space-5);
}

.company-section-head h2 {
  margin-bottom: var(--space-2);
}

.company-section-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.supplier-rail-history-title {
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.company-subsection-title {
  margin-top: var(--space-8) !important;
}

.company-contacts-title {
  margin-top: var(--space-10) !important;
}

.company-text {
  color: var(--color-ink-soft);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-body, 400);
  line-height: var(--leading-relaxed);
}

.company-text p,
.company-text ul,
.company-text ol,
.company-text li,
.company-text span,
.company-text div,
.company-text font,
.company-text a,
.company-text b,
.company-text strong,
.company-text i,
.company-text em {
  color: inherit !important;
  font-family: var(--font-sans) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.company-text p,
.company-text ul {
  margin: 0 0 var(--space-3);
}

.company-text ul {
  padding-left: 1.2rem;
}

.company-about {
  position: relative;
  max-height: 196px;
  overflow: hidden;
}

.company-about.is-expanded {
  max-height: none;
}

.company-about-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), var(--color-surface));
  pointer-events: none;
}

.company-about.is-expanded .company-about-fade {
  display: none;
}

.info-grid,
.manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.map-placeholder {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: var(--space-2);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.06), rgb(211 222 255 / 0.32)),
    var(--color-surface);
  text-align: center;
}

.info-card .map-placeholder {
  margin-top: auto !important;
}

.map-placeholder .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 32px;
}

.map-placeholder strong {
  display: block;
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-group {
  display: grid;
  grid-auto-rows: min-content;
  gap: var(--space-3);
  align-content: start;
}

.manager-group h3 {
  margin: var(--space-2) 0 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-card {
  display: grid;
  min-height: 214px;
  gap: var(--space-3);
}

.manager-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: var(--space-4);
  align-items: start;
}

.manager-photo {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  background: var(--color-surface-muted);
}

.specialist-photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.specialist-adv-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.manager-card strong {
  display: block;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
}

.manager-card dl,
.contact-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.manager-card div,
.contact-list div {
  display: grid;
  gap: 2px;
}

.manager-card dt,
.contact-list dt {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.manager-card dd,
.contact-list dd {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.manager-card dd a,
.contact-list dd a {
  color: var(--color-primary);
  text-decoration: none;
}

.manager-card dd a:hover,
.contact-list dd a:hover {
  text-decoration: underline;
}

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.messenger-row a {
  display: inline-grid;
  min-width: 36px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
}

.messenger-links,
.phone-links {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.messenger-links span,
.phone-links span {
  color: var(--color-ink-muted);
}

.messenger-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.messenger-links img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap--scroll {
  max-height: min(70vh, 720px);
  overflow: auto;
  border: 1px solid rgb(196 198 207 / 0.38);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.table-wrap--scroll .data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap--scroll .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(240 243 255);
  box-shadow: 0 1px 0 rgb(196 198 207 / 0.45);
}

.table-wrap--scroll .data-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: 0 -1px 0 rgb(196 198 207 / 0.45);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table--railway-supply {
  min-width: 1480px;
}

.data-table th,
.data-table td {
  height: var(--input-height);
  border-bottom: 1px solid rgb(196 198 207 / 0.38);
  padding: 0 12px;
  text-align: left;
}

.data-table tbody tr {
  transition: background-color 160ms ease;
}

.data-table tbody tr:hover {
  background: rgb(240 243 255 / 0.58);
}

.data-table th {
  color: var(--color-ink-muted);
  background: rgb(240 243 255 / 0.58);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td strong,
.data-table .is-primary {
  color: var(--color-primary);
  font-weight: 700;
}

.table-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.table-label--success {
  color: #166534;
  background: #dcfce7;
}

.table-label--warning {
  color: var(--color-chart-3-strong);
  background: var(--color-chart-3-soft);
}

.table-label--rail {
  color: var(--color-chart-5-strong);
  background: var(--color-chart-5-soft);
}

.table-label--auto {
  color: var(--color-chart-2-strong);
  background: var(--color-chart-2-soft);
}

.table-label--water {
  color: var(--color-chart-6-strong);
  background: var(--color-chart-6-soft);
}

.data-table tfoot td {
  color: var(--color-primary);
  background: rgb(240 243 255 / 0.58);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table .numeric-cell,
.data-table tfoot .nowrap {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: rgb(240 243 255 / 0.42);
  padding: var(--space-3);
}

.filter-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
}


.filter-row--autodor-history {
  grid-template-columns: minmax(150px, 180px) minmax(150px, 180px) minmax(320px, 1fr) auto;
  align-items: end;
}

.filter-row--autodor-history .filter-field--region {
  min-width: 0;
}

.filter-row--autodor-history .filter-field--region .select {
  min-width: 320px;
}

.filter-row--autodor-history .filter-actions {
  grid-column: auto;
  align-items: end;
  flex-wrap: nowrap;
  padding-top: 0;
}

.filter-row--autodor-history .filter-actions .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .filter-row--autodor-history {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row--autodor-history .filter-field--region,
  .filter-row--autodor-history .filter-actions {
    grid-column: 1 / -1;
  }

  .filter-row--autodor-history .filter-field--region .select {
    min-width: 0;
  }
}
.filter-row--carrier-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.filter-row--carrier-rail .filter-actions {
  grid-column: auto;
  align-items: end;
  flex-wrap: nowrap;
  padding-top: 0;
}

.filter-row--carrier-rail .filter-actions .btn {
  white-space: nowrap;
}

.filter-row--cement-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: var(--space-4);
  width: 100%;
}

.filter-row--cement-rail .water-supply-dates {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  min-width: 0;
}

.filter-row--cement-rail .water-date-field {
  min-width: 0;
}

.filter-row--cement-rail .water-date-field .field {
  width: 100%;
}

.filter-row--cement-rail .water-supply-checkboxes--two {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.filter-row--cement-rail .water-supply-checkboxes--two .water-filter-group {
  width: 100%;
  min-width: 0;
}

.filter-row--cement-rail .filter-actions {
  grid-column: 3;
  grid-row: 1;
  align-items: end;
  flex-wrap: nowrap;
  padding-top: 0;
}

@media (max-width: 960px) {
  .filter-row--cement-rail {
    grid-template-columns: 1fr;
  }

  .filter-row--cement-rail .water-supply-dates {
    grid-column: 1 / -1;
  }

  .filter-row--cement-rail .filter-actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.filter-row--cement-rail .filter-actions .btn {
  white-space: nowrap;
}

.wide-ad {
  position: relative;
  width: 100%;
  aspect-ratio: 588 / 70;
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
}

.wide-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-ad-label {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-2);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--color-primary);
  background: rgb(255 255 255 / 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.listing-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.listing-card img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
}

.listing-card h3 {
  margin: 0;
  padding-bottom: 8px;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-snug);
}

.listing-card h3 a {
  color: inherit;
  text-decoration: none;
}

.listing-card h3 a:hover,
.listing-card h3 a:focus-visible {
  color: var(--color-primary);
}

.listing-card-price {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listing-meta--regions {
  align-items: flex-start;
}

.listing-meta--regions > .material-symbols-outlined {
  flex-shrink: 0;
  line-height: 1.2;
  margin-top: 0.05em;
}

.listing-regions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.listing-regions-text {
  line-height: 1.35;
}

.listing-regions-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-transform: none;
}

.listing-regions-toggle:hover,
.listing-regions-toggle:focus-visible {
  color: var(--color-primary-strong, var(--color-primary));
}

.listing-regions.is-expanded .listing-region-extra {
  display: inline !important;
}

.listing-regions.is-expanded .listing-regions-toggle {
  display: none !important;
}

.announcement-filter {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.announcement-filter .filter-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.announcement-list .listing-card {
  grid-template-columns: 112px minmax(0, 1fr);
  text-decoration: none;
}

.announcement-list .listing-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.announcement-list .listing-card p {
  margin: var(--space-2) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.announcement-feature-card {
  color: inherit;
  text-decoration: none;
}

.partner-showcase {
  margin-bottom: 0;
}

.partner-showcase .home-section-title {
  margin-bottom: var(--space-5);
}

.announcement-detail-layout {
  grid-template-columns: 280px minmax(0, 1fr) 150px;
}

.announcement-side {
  position: sticky;
  top: 132px;
  display: grid;
  gap: var(--space-4);
}

.announcement-price-card {
  display: grid;
  gap: var(--space-3);
}

.announcement-price-card > strong {
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.announcement-contacts-card {
  display: grid;
  gap: var(--space-3);
}

.announcement-company-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.announcement-company-card:hover .stat-panel-link,
.announcement-company-card:focus-visible .stat-panel-link {
  color: var(--color-primary);
}

.announcement-hero {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.announcement-hero h1 {
  margin: var(--space-4) 0;
  color: var(--color-primary);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.announcement-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.announcement-detail-media {
  height: 320px;
}

.announcement-detail-card h2,
.contact-card > h2 {
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.announcement-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.announcement-specs div {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
  min-width: 0;
}

.announcement-specs span {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-specs strong {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.announcement-specs-regions strong {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  text-align: justify;
  text-align-last: left;
}

.sidebar-ads {
  position: sticky;
  top: 132px;
  display: grid;
  gap: var(--space-5);
}

.sidebar-ads-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.sidebar-ads-title::after {
  display: block;
  height: 1px;
  background: var(--color-border);
  content: "";
}

.ad-card {
  position: relative;
  width: 150px;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.ad-card-empty-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  text-align: center;
}

.ad-card-empty-content .material-symbols-outlined {
  color: var(--color-ink-muted);
  font-size: 34px;
}

.ad-card-empty-content strong {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.ad-card--empty {
  border: 2px dashed rgb(196 198 207 / 0.70);
  background: var(--color-surface);
  box-shadow: none;
}

.ad-card--empty:hover,
.ad-card--empty:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.ad-card--empty:hover .ad-card-empty-content,
.ad-card--empty:focus-visible .ad-card-empty-content,
.ad-card--empty:hover .material-symbols-outlined,
.ad-card--empty:focus-visible .material-symbols-outlined {
  color: var(--color-primary);
}

.ad-card--primary {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--color-danger);
  padding: var(--space-4);
  text-align: center;
}

.ad-card--ghost {
  display: grid;
  place-items: center;
  border: 2px dashed rgb(196 198 207 / 0.70);
  color: var(--color-ink-soft);
  padding: var(--space-4);
  text-align: center;
  box-shadow: none;
}

.ad-card--ghost .material-symbols-outlined {
  display: block;
  color: var(--color-ink-muted);
  font-size: 34px;
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
}

.ad-card--ghost strong {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  transition: color 180ms ease;
}

.ad-card:hover,
.ad-card:focus-visible {
  border-color: rgb(0 32 69 / 0.34);
  box-shadow: 0 12px 28px rgb(0 32 69 / 0.12);
  transform: translateY(-2px);
  outline: 0;
}

.ad-card--ghost:hover,
.ad-card--ghost:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.ad-card--ghost:hover .material-symbols-outlined,
.ad-card--ghost:focus-visible .material-symbols-outlined,
.ad-card--ghost:hover strong,
.ad-card--ghost:focus-visible strong {
  color: var(--color-primary);
}

.ad-card--ghost:hover .material-symbols-outlined,
.ad-card--ghost:focus-visible .material-symbols-outlined {
  transform: scale(1.06);
}

@media (max-width: 760px) {
  .tender-detail-row--action {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 16px;
  }

  .news-feed-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .news-feed-card img {
    width: 92px;
    height: 74px;
  }

  .news-feed-date {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    border-right: 0;
    border-bottom: 1px solid rgb(196 198 207 / 0.42);
    padding: 0 0 var(--space-2);
  }

  .news-feed-date strong {
    font-size: var(--text-lg);
  }

  .news-feed-card img,
  .news-feed-body {
    grid-row: 2;
  }

  .section {
    padding-block: var(--space-10);
  }

  .page-header .container {
    min-height: auto;
    padding-block: var(--space-3);
  }

  .site-logo {
    height: 48px;
  }

  .site-logo img {
    height: 48px;
  }

  .header-ad {
    order: 2;
  }

  .header-ad--live:not(.header-ad--image) {
    width: min(100%, var(--header-ad-width, 100%));
  }

  .header-ad--image {
    width: fit-content;
    max-width: min(100%, var(--header-ad-max-width, 1000px));
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    order: 3;
  }

  .search-control {
    width: 100%;
  }

  .site-menu-list {
    gap: var(--space-5);
  }

  .mega-menu {
    position: static;
    left: auto !important;
    width: 100%;
    max-width: none;
  }

  .mega-menu-grid,
  .mega-menu-columns,
  .mega-menu-links {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mega-menu-item {
    width: 100%;
  }

  .mega-menu-col + .mega-menu-col {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .site-menu-gap-after,
  .site-menu-offset {
    margin-inline: 0;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-legal {
    justify-content: flex-start;
  }

  .ai-card {
    min-height: 360px;
    padding: var(--space-6);
  }

  .ai-card-inner {
    min-height: 300px;
  }

  .ai-mark {
    min-width: 196px;
    font-size: 48px;
  }

  .ai-card--sidebar {
    width: 150px;
    min-height: 200px;
    padding: var(--space-4);
  }

  .ai-card--market {
    width: 100%;
    min-height: 176px;
    padding: var(--space-4);
  }

  .ai-card--sidebar .ai-card-inner {
    min-height: 168px;
  }

  .ai-card--sidebar .ai-mark {
    min-width: 96px;
    font-size: var(--text-3xl);
  }

  .analytics-cards {
    grid-template-columns: 1fr;
  }

  .stat-panel {
    min-height: 152px;
    padding: var(--space-3);
  }

  .stat-panel--chart {
    min-height: 184px;
  }

  .stat-panel-value {
    font-size: var(--text-3xl);
  }

  .mini-bars {
    height: 88px;
    gap: 4px;
  }

  .mini-bars strong,
  .mini-bars em {
    font-size: 9px;
  }

  .stat-metrics--two {
    grid-template-columns: 1fr;
  }

  .ai-modal {
    padding: 0;
  }

  .ai-modal-panel {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .ai-modal-header {
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
  }

  .ai-modal-brand {
    display: grid;
    gap: var(--space-1);
  }

  .ai-modal-brand small {
    max-width: 220px;
  }

  .ai-modal-status > span:not(.ai-status-dot) {
    display: none;
  }

  .ai-modal-body {
    padding: var(--space-4);
  }

  .ai-welcome-card {
    padding: var(--space-4);
  }

  .ai-welcome-head,
  .ai-price-grid,
  .ai-input-row {
    grid-template-columns: 1fr;
  }

  .ai-welcome-icon {
    width: 36px;
    height: 36px;
  }

  .ai-message {
    max-width: 100%;
  }

  .ai-modal-composer {
    padding: var(--space-3) var(--space-4);
  }

  .ai-attach-btn {
    display: none;
  }

  .ai-send-btn {
    width: 100%;
  }
}

@media (min-width: 761px) {
  .promo-grid:not(.promo-grid--single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .page-grid,
  .market-layout,
  .analytics-grid,
  .content-grid--three,
  .content-grid--two,
  .listing-grid,
  .media-feature-grid,
  .media-news-layout,
  .news-grid,
  .tender-dashboard,
  .tender-dashboard--wide,
  .contact-hero,
  .contacts-layout,
  .contacts-card-grid,
  .about-audience-grid,
  .about-feature-list--columns,
  .directory-layout,
  .directory-grid,
  .producer-list-head,
  .company-kpis,
  .dashboard-grid,
  .info-grid,
  .manager-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .producer-list-actions {
    justify-content: flex-start;
  }

  .map-search-filters,
  .map-search-layout {
    grid-template-columns: 1fr;
  }

  .map-results-panel {
    max-height: none;
  }

  .map-canvas-panel {
    min-height: 560px;
  }

  .map-canvas {
    height: 500px;
  }

  .map-preview-card {
    top: var(--space-4);
    left: var(--space-4);
  }

  .sidebar-ads {
    position: static;
    grid-template-columns: repeat(2, 150px);
  }

  .sidebar-ads-title {
    grid-column: 1 / -1;
   }

  .news-toolbar-top,
  .news-toolbar-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title--actions {
    grid-template-columns: 1fr;
  }

  .page-title-actions {
    justify-self: start;
  }

  .news-search {
    width: 100%;
  }

  .media-scroll-widget {
    grid-auto-columns: minmax(260px, 82%);
  }

  .media-scroll-widget > * {
    width: min(82vw, 370px);
    max-width: min(82vw, 370px);
  }

  .tender-card {
    grid-template-columns: 1fr;
  }

  .tender-thumb {
    width: 100%;
  }

  .tenders-date-line {
    white-space: normal;
  }

  .tender-filter--construction,
  .tender-filter--stone {
    grid-template-columns: 1fr;
  }

  .tender-filter .filter-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .tender-filter .filter-actions .btn {
    flex: 1 1 8rem;
    width: auto;
  }
}

.company-tab small,
.company-count {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.company-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.company-about-layout--single {
  grid-template-columns: 1fr;
}

.company-about-layout--compact {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  margin-bottom: var(--space-6);
}

.company-map-large {
  min-height: 420px;
}

.company-map-site {
  min-height: 232px;
}

.site-switcher {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

.site-switcher-btn {
  display: inline-flex;
  height: var(--button-height);
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  color: var(--color-primary);
  background: var(--color-surface-muted);
  font-family: inherit;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  line-height: var(--leading-button);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-switcher-btn .material-symbols-outlined {
  font-size: 18px;
}

.site-switcher-btn.is-active,
.site-switcher-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-surface);
  background: var(--color-primary);
}

.site-panel {
  display: none;
}

.site-panel.is-active {
  display: block;
}

.price-updated {
  margin: var(--space-4) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.product-price-block {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.product-price-head strong {
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 700;
}

.product-price-head span {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.price-table th:nth-child(n + 4),
.price-table td:nth-child(n + 4) {
  text-align: right;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: center;
}

.price-table--trader th:nth-child(n + 4),
.price-table--trader td:nth-child(n + 4),
.price-table--trader th.col-price,
.price-table--trader td.col-price,
.price-table--trader th:last-child,
.price-table--trader td:last-child {
  text-align: right;
}

.price-table--trader th.col-density,
.price-table--trader td.col-density {
  text-align: center;
}

.product-price-note {
  margin: 0 0 var(--space-5);
}

.price-table td strong {
  display: block;
  white-space: nowrap;
}

.price-trend {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
  white-space: nowrap;
}

.price-trend--up {
  color: var(--color-success);
}

.price-trend--down {
  color: var(--color-danger);
}

.price-trend--flat {
  color: var(--color-ink-muted);
}

@media (max-width: 860px) {
  .company-about-layout,
  .company-about-layout--compact {
    grid-template-columns: 1fr;
  }

  .company-map-large,
  .company-map-site {
    min-height: 260px;
  }

  .product-price-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }
}


/* Producer inline ad fix */
.producer-inline-ad {
  display: block;
  margin: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgb(196 198 207 / 0.36);
}

.wide-ad.producer-inline-ad {
  width: calc(100% - (var(--space-5) * 2));
}

/* Live list banner: блок = intrinsic width картинки, не шире 800px */
.wide-ad.producer-inline-ad--live {
  width: fit-content;
  max-width: min(100%, var(--list-ad-max-width, 800px));
  aspect-ratio: auto;
  height: auto;
  margin-inline: auto;
  border-bottom: 0;
  background: var(--color-surface);
}

.wide-ad.producer-inline-ad--live img {
  display: block;
  width: auto;
  max-width: min(100%, var(--list-ad-max-width, 800px));
  height: auto;
  object-fit: contain;
}

/* Announcement refinements */
.announcement-filter-search {
  min-width: 0;
}

.announcement-filter {
  grid-template-columns:
    minmax(150px, 0.82fr)
    minmax(150px, 0.82fr)
    minmax(260px, 1.65fr)
    minmax(112px, 0.54fr)
    minmax(122px, 0.58fr);
  align-items: end;
}

.announcement-filter .filter-actions {
  display: contents;
  grid-column: auto;
}

.announcement-filter .filter-actions .btn {
  width: 100%;
  min-width: 104px;
}

.announcement-filter .filter-actions .filter-excel-btn {
  width: max-content;
}

.partner-showcase-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.partner-showcase-head .home-section-title {
  margin-bottom: var(--space-1);
}

.partner-showcase-head p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.partner-rotation {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  color: var(--color-ink-muted);
  background: var(--color-surface-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.partner-rotation .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 17px;
}

.partner-rotation strong {
  color: var(--color-primary);
}

.announcement-feature-card {
  position: relative;
  overflow: hidden;
  color: inherit;
}

.announcement-feature-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.announcement-feature-regions {
  padding: 0 var(--space-4) var(--space-4);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.partner-slot {
  position: absolute;
  z-index: 2;
  top: var(--space-2);
  right: var(--space-2);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--color-primary);
  background: rgb(255 255 255 / 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-new {
  display: inline-flex;
  height: 20px;
  align-items: center;
  margin-right: var(--space-2);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  color: var(--color-success);
  background: rgb(220 252 231);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.announcement-gallery {
  display: grid;
  gap: var(--space-3);
}

.announcement-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.announcement-gallery-thumbs button {
  overflow: hidden;
  height: 72px;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-sm);
  padding: 0;
  background: var(--color-surface);
  cursor: pointer;
}

.announcement-gallery-thumbs button.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.announcement-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Water ships list */
.producer-card.ship-card {
  grid-template-columns: minmax(180px, 25%) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 168px;
}

.ship-thumb {
  display: block;
  width: 100%;
  height: 132px;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgb(196 198 207 / 0.55);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
  object-fit: cover;
  object-position: center;
}

.producer-card.ship-card > span:not(.producer-views) {
  align-self: center;
  min-width: 0;
}

.producer-card.ship-card .producer-views {
  align-self: center;
}

.producer-card.ship-card.ship-card--no-thumb {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
}

.navigation-intro {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgb(240 243 255 / 0.52);
  padding: var(--space-5);
}

.navigation-intro > .material-symbols-outlined {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-surface);
  font-size: 30px;
}

.navigation-intro h2,
.locked-state h2 {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.navigation-intro p,
.locked-state p,
.system-card-body p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.navigation-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.navigation-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-surface-muted);
  font-size: 30px;
}

.navigation-card h2 {
  margin: var(--space-1) 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.navigation-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.navigation-card-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.navigation-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.navigation-map {
  min-height: 188px;
}

.navigation-map--media {
  display: grid;
  gap: var(--space-3);
  overflow: hidden;
  padding: var(--space-3);
  border-style: solid;
}

.navigation-map--media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.navigation-map--media figcaption {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

.navigation-card h2 a {
  color: inherit;
  text-decoration: none;
}

.navigation-card h2 a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#supply-table-container.is-loading,
#railway-supply-table-container.is-loading,
#pier-supply-table-container.is-loading,
#pier-navigation-table-container.is-loading,
#ship-supply-table-container.is-loading,
#ship-navigation-table-container.is-loading,
#supplier-rail-supply-table-container.is-loading,
#supplier-water-supply-table-container.is-loading,
#supplier-cement-supply-table-container.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.filter-row.rail-filter.water-supply-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.water-supply-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.water-date-field {
  display: block;
}

.water-supply-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.water-supply-checkboxes--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.water-filter-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: var(--space-3);
}

.water-filter-group-summary {
  cursor: pointer;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  list-style: none;
}

.water-filter-group-summary::-webkit-details-marker {
  display: none;
}

.water-filter-group-summary--with-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.water-filter-group-title {
  flex: 0 1 auto;
  min-width: 0;
}

.water-filter-checklist {
  display: grid;
  gap: var(--space-1);
  max-height: 11rem;
  margin-top: var(--space-3);
  overflow: auto;
  padding-right: var(--space-2);
}

.water-filter-search {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  cursor: text;
}

.water-filter-search-input {
  width: 100%;
  min-height: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.3rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--leading-snug);
}

.water-filter-search-input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.water-filter-group--searchable .water-filter-checklist {
  max-height: 14rem;
}

.railway-supply-filter .rail-supply-tabs-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.railway-supply-filter .rail-filter-directions {
  grid-column: auto;
}

.railway-supply-filter .rail-supply-countries-row {
  grid-column: 1;
}

.railway-supply-filter .rail-supply-countries-row .water-filter-group {
  width: 100%;
}

.railway-supply-filter .rail-supply-countries-row:empty {
  display: none;
}

.railway-supply-filter .water-filter-checklist {
  max-height: 5.5rem;
}

.railway-supply-filter .water-filter-group--searchable .water-filter-checklist {
  max-height: 12rem;
}

.railway-supply-filter .water-filter-group--station-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.railway-supply-filter .water-filter-group--station-picker > .water-filter-group-summary {
  margin: 0;
}

.railway-supply-filter .water-filter-station-fields {
  display: grid;
  gap: var(--space-3);
}

.railway-supply-filter .water-filter-station-subtitle {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.railway-supply-filter .water-filter-station-search {
  width: 100%;
}

.railway-supply-filter .water-filter-station-search-input {
  display: block;
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-sm);
}

.railway-supply-filter .water-filter-station-search-input:focus {
  outline: 2px solid rgb(0 32 69 / 0.28);
  outline-offset: 1px;
}

@media (max-width: 960px) {
  .railway-supply-filter .rail-supply-tabs-row {
    grid-template-columns: 1fr;
  }
}

.water-filter-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  cursor: pointer;
}

.water-filter-check input {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.water-supply-filter .filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-start;
}

.company-hero--berth .company-hero-top,
.company-hero--ship.company-hero--no-media .company-hero-top {
  grid-template-columns: minmax(0, 1fr);
}

.ship-navigation-filter .water-supply-checkboxes--two {
  margin-top: 0;
}

.water-supply-updates {
  display: inline-block;
  margin-left: var(--space-2);
}

.water-supply-desc {
  margin-top: var(--space-6);
}

@media (max-width: 960px) {
  .water-supply-dates,
  .water-supply-checkboxes {
    grid-template-columns: 1fr;
  }
}

.locked-state {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  min-height: 380px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.06), rgb(211 222 255 / 0.34)),
    var(--color-surface);
  padding: var(--space-8);
  text-align: center;
}

.locked-state-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 38px;
}

.locked-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.system-main {
  min-height: calc(100vh - 280px);
}

.system-card-body {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
}

@media (max-width: 760px) {
  .navigation-grid,
  .navigation-map-grid {
    grid-template-columns: 1fr;
  }

  .navigation-intro,
  .navigation-card {
    grid-template-columns: 1fr;
  }
}
.berth-info-grid {
  align-items: stretch;
}

.berth-map-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.berth-map-frame {
  height: 360px;
  background: var(--color-surface-muted);
}

.berth-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .media-page-title .page-title-line {
    white-space: normal;
  }

  .berth-map-frame {
    height: 280px;
  }
}
.materials-dashboard-split,
.materials-dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.materials-dashboard-column {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.materials-dashboard-column h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.materials-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.materials-rank-card {
  display: grid;
  gap: var(--space-3);
}

.materials-rank-list {
  display: grid;
  gap: var(--space-2);
}

.materials-rank-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(56px, auto) minmax(220px, 1.35fr);
  gap: var(--space-2);
  align-items: baseline;
}

.materials-rank-list--wide div {
  grid-template-columns: minmax(100px, 0.5fr) minmax(260px, 1.4fr);
}

.materials-rank-list span {
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.materials-rank-list em {
  margin: 0;
  text-align: right;
}

.materials-rank-list strong {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: right;
}

.materials-rank-list .value-lock-wrap {
  justify-content: flex-end;
  font-weight: 400;
}

.materials-rank-list .value-lock {
  font-size: 16px;
  color: var(--color-primary);
}

.materials-dashboard-bottom {
  margin-top: var(--space-6);
}

.tender-card > span:last-child {
  position: relative;
}

.tender-status-badges {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 4px;
  justify-items: end;
  z-index: 1;
}

.tender-status-badge {
  position: static;
}

.table-label--info {
  color: var(--color-chart-1-strong);
  background: var(--color-chart-1-soft);
}

@media (max-width: 1024px) {
  .materials-dashboard-split,
  .materials-dashboard-bottom,
  .materials-summary-grid {
    grid-template-columns: 1fr;
  }

  .materials-rank-list div,
  .materials-rank-list--wide div {
    grid-template-columns: 1fr;
  }

  .materials-rank-list em,
  .materials-rank-list strong {
    text-align: left;
  }

  .tender-status-badges {
    position: static;
    margin-bottom: var(--space-2);
    justify-items: start;
  }
}
.filter-row.rail-filter.dislocation-watershed-filter {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
}

#dislocation > .company-section.is-active {
  padding-top: var(--space-3);
}

.dislocation-watershed-field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: min(100%, 28rem);
}

.dislocation-watershed-field .field-label {
  margin: 0;
  white-space: nowrap;
}

.dislocation-watershed-field .select {
  flex: 1 1 auto;
  min-width: 12rem;
}

.dislocation-notice {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  padding: var(--space-5);
  color: #ffffff;
}

.dislocation-notice .material-symbols-outlined {
  color: var(--color-accent-soft);
  font-size: 28px;
}

.dislocation-notice strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.dislocation-notice p {
  margin: 0;
  color: rgb(255 255 255 / 0.76);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.dislocation-notice em {
  display: block;
  margin-top: var(--space-3);
  color: #ffffff;
  font-style: normal;
  font-size: var(--text-lg);
  font-weight: 700;
}

.dislocation-table th,
.dislocation-table td {
  text-align: center;
}

.dislocation-table td:first-child,
.dislocation-table th:first-child,
.dislocation-table td:nth-child(2),
.dislocation-table th:nth-child(2) {
  text-align: left;
}

.dislocation-table a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dislocation-direction-row td {
  color: var(--color-ink-muted);
  background: var(--color-secondary-soft);
  font-size: var(--text-sm);
}

.table-label--secondary {
  color: var(--color-ink-muted);
  background: var(--color-secondary-soft);
}

.advertiser-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: var(--space-6);
  align-items: stretch;
}

.advertiser-intro-copy {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.advertiser-intro-copy h2,
.advertiser-cta h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.advertiser-intro-copy p,
.advertiser-cta p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.advertiser-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.advertiser-stat-grid div {
  display: grid;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  padding: var(--space-4);
}

.advertiser-stat-grid span,
.advertiser-format-card dt {
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.advertiser-stat-grid strong {
  color: var(--color-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.advertiser-stat-grid em {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-style: normal;
  line-height: var(--leading-snug);
}

.advertiser-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-5);
  align-items: start;
}

.advertiser-page-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-page);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.map-browser-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--color-border);
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4);
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
}

.map-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(196 198 207 / 0.95);
}

.map-site-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 76px;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.map-logo,
.map-actions,
.map-menu,
.map-section-title,
.map-sidebar-title {
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.map-logo,
.map-actions {
  display: grid;
  height: 42px;
  place-items: center;
}

.map-menu {
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  color: rgb(255 255 255 / 0.88);
  background: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-top-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.map-combined-banner {
  margin-bottom: var(--space-4);
}

.map-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: var(--space-4);
}

.map-content-column,
.map-sidebar-column {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.map-section-title,
.map-sidebar-title {
  padding: var(--space-2) var(--space-3);
}

.map-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.map-content-grid span,
.map-list-lines span {
  display: block;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.map-content-grid span {
  height: 58px;
}

.map-list-lines {
  display: grid;
  gap: var(--space-2);
}

.map-list-lines span {
  height: 34px;
}

.map-ad {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 2px solid rgb(13 71 164 / 0.42);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background:
    linear-gradient(135deg, rgb(13 71 164 / 0.12), rgb(211 222 255 / 0.70)),
    repeating-linear-gradient(135deg, rgb(13 71 164 / 0.10) 0 8px, transparent 8px 16px),
    var(--color-surface);
  padding: var(--space-2);
  text-align: center;
}

.map-ad strong {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.map-ad span {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--leading-tight);
  text-transform: none;
}

.map-ad--header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 42px;
  min-width: 0;
  padding-inline: var(--space-2);
  white-space: nowrap;
}

.map-ad--header strong,
.map-ad--header span {
  white-space: nowrap;
}

.map-ad--hero {
  min-height: 82px;
}

.map-ad--combined {
  min-height: 64px;
  border-color: rgb(0 32 69 / 0.65);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.12), rgb(211 222 255 / 0.82)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.12) 0 8px, transparent 8px 16px),
    var(--color-surface);
}

.map-ad--wide {
  min-height: 46px;
}

.map-ad--compact {
  min-height: 38px;
}

.map-ad--large {
  min-height: 104px;
}

.map-ad--side {
  min-height: 170px;
}

.map-modal-layer {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  width: min(280px, 42%);
  box-shadow: 0 18px 44px rgb(0 32 69 / 0.20);
}

.map-ad--modal {
  min-height: 150px;
  border-color: rgb(0 32 69 / 0.72);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.18), rgb(211 222 255 / 0.88)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.12) 0 8px, transparent 8px 16px),
    var(--color-surface);
}

.advertiser-map-legend {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.advertiser-map-legend h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.advertiser-map-legend ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.advertiser-map-legend li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.advertiser-map-legend strong {
  display: grid;
  min-height: 32px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}

.advertiser-map-legend span {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.ad-layout-preview {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.ad-layout-preview span,
.advertiser-format-visual span,
.advertiser-combo-demo span,
.advertiser-sizes span {
  display: grid;
  place-items: center;
  border: 1px solid rgb(196 198 207 / 0.70);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background:
    linear-gradient(135deg, rgb(0 32 69 / 0.08), rgb(211 222 255 / 0.50)),
    repeating-linear-gradient(135deg, rgb(0 32 69 / 0.08) 0 8px, transparent 8px 16px),
    var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

.advertiser-format-card .tag {
  font-size: var(--text-sm);
}

.ad-preview-header span {
  height: 54px;
}

.ad-preview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: var(--space-4);
}

.ad-preview-content {
  display: grid;
  gap: var(--space-4);
}

.ad-preview-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.ad-preview-promo-grid span,
.ad-preview-merge span {
  height: 92px;
}

.ad-preview-merge span {
  border-color: rgb(13 71 164 / 0.42);
  background:
    linear-gradient(135deg, rgb(13 71 164 / 0.12), rgb(211 222 255 / 0.70)),
    repeating-linear-gradient(135deg, rgb(13 71 164 / 0.10) 0 8px, transparent 8px 16px),
    var(--color-surface);
}

.ad-preview-line span {
  height: 42px;
}

.ad-preview-line--small span {
  height: 34px;
  color: var(--color-ink-muted);
}

.ad-preview-sidebar {
  display: grid;
  gap: var(--space-4);
}

.ad-preview-sidebar span {
  min-height: 130px;
}

.advertiser-price-note {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.advertiser-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.advertiser-format-card {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.advertiser-format-card--wide {
  grid-column: 1 / -1;
}

.advertiser-format-card h3 {
  margin: var(--space-3) 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.advertiser-format-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.advertiser-format-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.advertiser-format-card dl div {
  display: grid;
  gap: var(--space-1);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

.advertiser-format-card dd {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.advertiser-format-visual {
  display: grid;
}

.advertiser-format-visual--header span {
  height: 58px;
}

.advertiser-format-visual--side span {
  width: 150px;
  height: 200px;
  justify-self: center;
}

.advertiser-format-visual--modal span {
  aspect-ratio: 800 / 500;
  min-height: 170px;
}

.advertiser-combo-demo {
  display: grid;
  gap: var(--space-3);
}

.advertiser-combo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.advertiser-combo-row span,
.advertiser-combo-full span {
  height: 96px;
}

.advertiser-combo-full span {
  border-color: rgb(13 71 164 / 0.42);
}

.advertiser-sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.advertiser-sizes span {
  height: 74px;
}


.advertiser-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.advertiser-cta > div {
  display: grid;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .advertiser-intro,
  .ad-preview-main,
  .advertiser-format-grid {
    grid-template-columns: 1fr;
  }

  .advertiser-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .advertiser-stat-grid,
  .advertiser-format-card dl,
  .advertiser-combo-row,
  .advertiser-sizes,
  .ad-preview-promo-grid {
    grid-template-columns: 1fr;
  }

  .advertiser-format-visual--side span {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .advertiser-map-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .map-site-header,
  .map-top-banners,
  .map-page-body {
    grid-template-columns: 1fr;
  }

  .map-modal-layer {
    position: static;
    width: 100%;
    margin-top: var(--space-3);
  }
}

/* ââ ÐÐ¸ÑÐ½ÑÐ¹ ÐºÐ°Ð±Ð¸Ð½ÐµÑ (v2) ââ */
.lk-cabinet {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: var(--space-8) 0 var(--space-12);
}

.lk-shell.lk-cabinet {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--header-height) - 56px);
}

.lk-sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 258px;
  width: 258px;
  align-self: stretch;
  background: #002045;
  color: #fff;
  padding: 22px 14px 28px;
  z-index: 10;
}

.lk-sidebar nav {
  display: grid;
  gap: 5px;
}

.lk-nav-caption {
  padding: 0 12px 9px;
  color: #ffffff73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lk-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 4px;
  color: #ffffffa8;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.lk-sidebar a .material-symbols-outlined {
  font-size: 22px;
}

.lk-sidebar a:hover,
.lk-sidebar a.is-active {
  color: #fff;
  background: #ffffff13;
}

.lk-sidebar a.is-active {
  box-shadow: inset 3px 0 #fff;
}

.lk-sidebar-toggle {
  display: none;
}

.lk-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 52px;
}

.lk-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.lk-page-heading > div:first-child {
  min-width: 0;
}

.lk-breadcrumbs {
  margin-bottom: 8px;
  color: #7a8290;
  font-size: 13px;
}

.lk-breadcrumbs span {
  margin: 0 5px;
}

.lk-cabinet h1 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  font-weight: 700;
  line-height: var(--leading-tight);
}

.lk-stack {
  display: grid;
  gap: 18px;
}

.lk-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 23px;
}

.lk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lk-panel-head h2,
.lk-invite h3 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 17px;
  font-weight: 700;
}

.lk-panel-head p {
  margin: 0;
  color: #747d89;
  font-size: 14px;
}

.lk-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
}

.lk-info-cards article {
  display: grid;
  gap: 6px;
  padding: 17px 18px 17px 0;
  border-bottom: 1px solid var(--color-border);
}

.lk-info-cards article:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--color-border);
}

.lk-info-cards small {
  color: #78818d;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lk-info-cards b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.lk-people {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) max-content max-content;
  border: 1px solid var(--color-border);
}

.lk-person {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.lk-col-status {
  justify-self: start;
}

.lk-people-empty {
  grid-column: 1 / -1;
}

.lk-people-requests {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lk-people-requests .lk-person > span:empty {
  display: none;
}

.lk-person:last-child {
  border-bottom: 0;
}

.lk-person-head {
  background: #f6f7f9;
  color: #737d8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lk-person b {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
}

.lk-person b small {
  margin-top: 4px;
  color: #76808d;
  font-size: 13px;
  font-weight: 400;
}

.lk-person-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e7f6ee;
  color: #18714d;
  font-size: 12px;
  font-weight: 700;
}

.lk-badge.is-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: #4b5563;
}

.lk-form-grid {
  max-width: none;
  grid-template-columns: 1fr 1fr;
}

.lk-form-grid .lk-form-actions,
.lk-form-grid .auth-error,
.lk-form-grid .checkbox-field {
  grid-column: 1 / -1;
}

.lk-invite {
  margin-top: 22px;
}

.lk-panel-head .btn .material-symbols-outlined {
  font-size: 18px;
}

.lk-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lk-dialog[hidden] {
  display: none;
}

.lk-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(1 15 31 / 0.72);
}

.lk-dialog-panel-narrow {
  width: min(480px, 100%);
}

.lk-accounting-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  background: #002045;
  color: #fff;
}

.lk-accounting-contact > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.lk-icon-tile {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 4px;
  background: #ffffff16;
  color: #fff;
}

.lk-accounting-contact small {
  color: #aebdd0;
  font-size: 13px;
}

.lk-accounting-contact h2 {
  margin: 3px 0 6px;
  color: #fff;
  font-size: 21px;
}

.lk-accounting-contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.lk-accounting-contact a {
  color: #fff;
  text-underline-offset: 3px;
}

.lk-accounting-edo {
  margin-top: 6px;
  color: #aebdd0;
  font-size: 13px;
}

.lk-accounting-contact .btn .material-symbols-outlined {
  font-size: 18px;
}

.lk-accounting-contact .btn-primary {
  flex-shrink: 0;
  background: #fff;
  color: #002045;
}

.lk-accounting-contact .btn-primary:hover {
  background: #f3f6fb;
  color: #002045;
}

.lk-docs {
  display: grid;
  border: 1px solid var(--color-border);
}

.lk-doc {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--color-border);
}

.lk-doc:last-child {
  border-bottom: 0;
}

.lk-doc > .material-symbols-outlined {
  color: #154b85;
  font-size: 22px;
}

.lk-doc b {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
}

.lk-doc b small {
  margin-top: 4px;
  color: #76808d;
  font-size: 13px;
  font-weight: 400;
}

.lk-document-block .lk-muted {
  margin: 0;
}

.lk-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 4px;
  background: #fff;
}

.lk-dialog-panel h2 {
  margin: 0 36px 6px 0;
  font-size: 20px;
}

.lk-dialog-note {
  margin: 0 0 18px;
  color: #747d89;
  font-size: 14px;
}

.lk-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  cursor: pointer;
}

.lk-dialog-close:hover {
  background: #f3f4f6;
  color: #101828;
}

body.lk-dialog-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .lk-shell.lk-cabinet {
    display: block;
    min-height: 0;
  }

  .lk-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow: auto;
  }

  .lk-sidebar.is-open {
    transform: none;
  }

  .lk-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: #002045;
    font: inherit;
    font-weight: 700;
  }

  .lk-content {
    padding: 20px 16px 40px;
  }

  .lk-info-cards,
  .lk-form.lk-form-grid,
  .lk-people {
    grid-template-columns: 1fr;
  }

  .lk-info-cards article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .lk-panel-head,
  .lk-accounting-contact,
  .lk-accounting-contact > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .lk-doc {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .lk-doc .lk-badge,
  .lk-doc .btn {
    grid-column: 2;
    justify-self: start;
  }
}

.lk-section {
  margin-top: var(--space-8);
}

.lk-section > h2,
.lk-section > h3 {
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
}

.lk-section-note {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.lk-form {
  display: grid;
  gap: var(--space-4);
  max-width: 36rem;
}

.lk-form.lk-form-grid {
  max-width: none;
}

.lk-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.lk-cabinet .field,
.lk-cabinet .select,
.lk-cabinet .textarea {
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
}

.lk-cabinet .field,
.lk-cabinet .select {
  height: 52px;
  padding: 0 var(--space-4);
}

.lk-cabinet .textarea {
  min-height: 128px;
  padding: var(--space-3) var(--space-4);
}

.lk-cabinet .field:focus,
.lk-cabinet .select:focus,
.lk-cabinet .textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(13 71 164 / 0.18);
}

.lk-cabinet .data-table {
  min-width: 0;
}

.lk-cabinet .data-table th,
.lk-cabinet .data-table td {
  height: 48px;
}

.lk-inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  width: auto;
}

.lk-row-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.lk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary, #0d47a4);
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
  line-height: 0;
}

.lk-icon-btn:hover {
  background: rgb(13 71 164 / 0.1);
}

.lk-icon-btn--danger {
  color: #b91c1c;
}

.lk-icon-btn--danger:hover {
  background: rgb(185 28 28 / 0.1);
}

.lk-muted {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

.lk-text-link {
  color: var(--color-primary, #0d47a4);
  font-weight: 600;
  text-decoration: underline;
}

.lk-text-link:hover {
  color: var(--color-accent, #1565c0);
}

.lk-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: var(--space-4, 1rem);
  font-size: var(--text-sm, 0.875rem);
}

.lk-pagination__link {
  color: var(--color-primary, #0d47a4);
  text-decoration: underline;
  padding: 0.15rem 0.35rem;
}

.lk-pagination__current {
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  color: var(--color-ink, #0f172a);
}

.lk-messages {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.lk-message {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
}

.lk-message.is-ok {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

.lk-message.is-error {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
}

.lk-year-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.lk-year-form .field {
  width: 7rem;
}

.lk-invoice-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.3fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  max-width: 56rem;
}

.lk-invoice-filters-action {
  display: flex;
  align-items: end;
  padding-bottom: 2px;
}

.lk-cabinet .lk-docs-table {
  table-layout: fixed;
  width: 100%;
}

.lk-cabinet .lk-docs-table .lk-docs-col-number {
  width: 16%;
}

.lk-cabinet .lk-docs-table .lk-docs-col-period {
  width: 24%;
}

.lk-cabinet .lk-docs-table .lk-docs-col-date {
  width: 14%;
}

.lk-cabinet .lk-docs-table .lk-docs-col-info {
  width: 30%;
}

.lk-cabinet .lk-docs-table .lk-docs-col-file {
  width: 16%;
}

.lk-cabinet .lk-docs-table th,
.lk-cabinet .lk-docs-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .lk-invoice-filters {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

.lk-access-cell,
.lk-cabinet .data-table th.text-center {
  text-align: center;
}

.lk-surface {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* ÐÐ°ÑÑÐ¾ÑÐºÐ° Ð¿Ð¾ÑÑÐµÐ±Ð¸ÑÐµÐ»Ñ: Ð¿Ð¾ÑÑÐµÐ±Ð»ÐµÐ½Ð¸Ðµ Ð¿Ð¾ ÐÐ. */
.buyer-rail-volume-summary,
.supplier-rail-volume-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px var(--space-3);
}
.dashboard-card .buyer-rail-volume-summary strong,
.dashboard-card .buyer-rail-volume-summary em {
  margin-top: var(--space-2);
}
.tender-rank-list--share {
  --rank-value-width: 96px;
  --rank-trend-width: 56px;
  --rank-share-width: 42px;
  gap: var(--space-2);
}
.tender-rank-list--share div {
  grid-template-columns: minmax(0, 1fr) var(--rank-value-width) var(--rank-trend-width) var(--rank-share-width);
  gap: 6px;
}
.tender-rank-list--share::before {
  right: calc(var(--rank-share-width) + var(--rank-trend-width) + 12px);
}
.tender-rank-list--share::after {
  right: calc(var(--rank-share-width) + 6px);
}
.dashboard-card .tender-rank-list--share .buyer-rail-share-heading {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--rank-share-width);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-tight);
  text-align: right;
  text-transform: none;
}
.dashboard-card .tender-rank-list--share em {
  grid-column: 4;
}
.dashboard-card .tender-rank-list--share strong {
  font-size: var(--text-sm);
}
.dashboard-card .tender-rank-list--share em {
  margin-top: 0;
  color: var(--color-ink-muted);
  font-weight: 600;
  gap: 4px var(--space-2);
}
.dashboard-card .supplier-rail-volume-summary strong,
.dashboard-card .supplier-rail-volume-summary em {
  margin-top: var(--space-2);
}
.supplier-rail-rank-card {
  min-width: 0;
}
.supplier-rail-rank-head,
.supplier-rail-rank-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 57px 42px;
  align-items: baseline;
  gap: 5px;
  text-align: right;
}
.supplier-rail-rank-head {
  margin-top: var(--space-4);
  color: var(--color-ink-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-card .supplier-rail-rank-head span {
  font-size: inherit;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}
.supplier-rail-rank-row {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}
.supplier-rail-rank-title {
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  overflow-wrap: anywhere;
}
.supplier-rail-rank-values {
  margin-top: 4px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.dashboard-card .supplier-rail-rank-values span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}
.dashboard-card .supplier-rail-rank-values .trend-positive {
  color: var(--color-chart-2);
}
.dashboard-card .supplier-rail-rank-values .trend-negative {
  color: var(--color-chart-4);
}
.supplier-rail-rank-locked {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
/* Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ðµ Ð¾ cookie. */
.cookie-notice {
  position: fixed;
  z-index: 50;
  right: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  bottom: var(--space-4);
  left: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: 0 8px 32px rgb(25 35 70 / 0.18);
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-notice-copy {
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.cookie-notice-copy a {
  color: var(--color-primary);
  text-decoration: underline;
}
.cookie-notice-button {
  flex: none;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 var(--space-4);
  cursor: pointer;
}
.cookie-notice-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .cookie-notice {
    bottom: var(--space-2);
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-notice-button {
    width: 100%;
  }
}

/* ÐÐ¸Ð½Ð°Ð¼Ð¸ÐºÐ° Ð¿Ð¾ÑÑÐ°Ð²ÑÐ¸ÐºÐ¾Ð² Ð¸ Ð¿Ð¾ÑÐ¾Ð´ Ð¿Ð¾ÑÑÐµÐ±Ð¸ÑÐµÐ»Ñ. */
.tender-rank-list--share::after {
  content: attr(data-compare-year);
  color: var(--color-ink-muted);
}
.dashboard-card .tender-rank-list--share .buyer-rail-yoy {
  grid-column: 3;
}
.dashboard-card .tender-rank-list--share .buyer-rail-share {
  grid-column: 4;
}
.dashboard-card .tender-rank-list--share .buyer-rail-yoy.trend-positive {
  color: var(--color-chart-2);
}
.dashboard-card .tender-rank-list--share .buyer-rail-yoy.trend-negative {
  color: var(--color-chart-4);
}

/* ÐÐ±ÑÑÐ²Ð»ÐµÐ½Ð¸Ñ ÐÐ: ÑÑÐ¸Ð»Ð¸ Ð² theme/static/v2/ad-editor.css */
