/* Палитра: бирюза + сланец, тёплый свет на фоне — без «шаблонного» фиолетового */
:root {
  --rgb-accent: 13, 148, 136;
  --color-bg: #e2e8f0;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-border: #cbd5e1;
  --color-border-strong: #94a3b8;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-accent-deep: #115e59;
  --color-accent-soft: rgba(var(--rgb-accent), 0.1);
  --color-warm: #ea580c;
  --color-sidebar: #1e293b;
  --color-sidebar-elevated: #334155;
  --color-sidebar-border: rgba(148, 163, 184, 0.2);
  --color-sidebar-link: #e2e8f0;
  --color-sidebar-link-muted: #94a3b8;
  --color-table-header: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Outfit", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 60px;
  --sidebar-w: 248px;
  /* Шапка: тёмный mesh + неоновый акцент (общий с маркетингом) */
  --header-chrome-bg:
    radial-gradient(ellipse 75% 160% at 0% -20%, rgba(45, 212, 191, 0.32), transparent 58%),
    radial-gradient(ellipse 65% 140% at 100% 0%, rgba(56, 189, 248, 0.2), transparent 52%),
    radial-gradient(ellipse 55% 90% at 50% 110%, rgba(13, 148, 136, 0.35), transparent 55%),
    linear-gradient(168deg, #121a2e 0%, #0a0f1c 42%, #05070d 100%);
  --header-chrome-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 24px 48px -20px rgba(0, 0, 0, 0.55),
    0 0 72px -28px rgba(13, 148, 136, 0.28);
  --app-shell-bg:
    radial-gradient(ellipse 100% 80% at 0% -30%, rgba(var(--rgb-accent), 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(14, 116, 144, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(234, 88, 12, 0.06), transparent 45%),
    linear-gradient(168deg, #eef2f7 0%, #e2e8f0 42%, #dce3ec 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.body--app .app-shell {
  background: var(--app-shell-bg);
}

/* Приложение: высота окна; прокручивается вся правая колонка (шаблон страницы), сайдбар и шапка фиксированы по высоте */
body.body--app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.body--app .app-shell {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

body.body--app .site-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

body.body--app .site-sidebar {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Колонка контента: main растягивается, футер всегда внизу колонки */
body.body--app .site-main-column {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
}

body.body--app .site-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.body--app .page-header__lead {
  max-width: none;
}

/* Header — тёмный mesh + «неон» снизу */
.site-header,
.marketing-header {
  isolation: isolate;
  background-color: #05070d;
  background-image: var(--header-chrome-bg);
  border-bottom: 1px solid rgba(45, 212, 191, 0.12);
  box-shadow: var(--header-chrome-shadow);
}

.site-header::before,
.marketing-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 35%),
    linear-gradient(215deg, transparent 55%, rgba(13, 148, 136, 0.08) 100%);
}

.site-header::after,
.marketing-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 182, 212, 0.2) 12%,
    rgba(45, 212, 191, 0.95) 28%,
    #ffffff 50%,
    rgba(45, 212, 191, 0.95) 72%,
    rgba(6, 182, 212, 0.2) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 16px rgba(45, 212, 191, 0.55),
    0 0 36px rgba(13, 148, 136, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header::after,
  .marketing-header::after {
    animation: header-chrome-pulse 7s ease-in-out infinite;
  }
}

@keyframes header-chrome-pulse {
  0%,
  100% {
    opacity: 0.88;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

.site-header {
  height: var(--header-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header > *,
.marketing-header > * {
  position: relative;
  z-index: 2;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-header__logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 12px;
  padding: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-header__logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(13, 148, 136, 0.15));
  box-shadow:
    0 0 24px rgba(13, 148, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  pointer-events: none;
}

.site-header__logo-link:hover {
  transform: translateY(-1px);
}

.site-header__logo-link:hover .site-header__logo-ring {
  border-color: rgba(94, 234, 212, 0.65);
  box-shadow:
    0 0 28px rgba(45, 212, 191, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-header__logo-link:focus-visible {
  outline: none;
}

.site-header__logo-link:focus-visible .site-header__logo-ring {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.site-header__logo-img {
  position: relative;
  z-index: 1;
  height: 36px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
}

.site-header__brand-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  line-height: 1.2;
}

.site-header__tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
  opacity: 0.92;
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 1rem;
  }

  .site-header__tagline {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 400px) {
  .site-header__tagline {
    display: none;
  }
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-header__nav a {
  color: #94a3b8;
}

.site-header__nav a:hover {
  color: #99f6e4;
}

.site-header__guest-link {
  color: #a8b8cf;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-header__guest-link:hover {
  color: #99f6e4;
  text-decoration: none;
}

/* Всплывающее уведомление для гостей (сохранение / избранное) */
.app-toast {
  position: fixed;
  bottom: 1.35rem;
  left: 50%;
  z-index: 10050;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translate3d(-50%, 120%, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.app-toast.app-toast--visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.app-toast__text {
  margin: 0;
}

.app-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.app-toast__btn {
  text-decoration: none !important;
}

/* ЛК в шапке: кнопка + выпадающее меню */
.header-account-menu {
  position: relative;
}

.header-account-menu__trigger {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  user-select: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-account-menu__trigger::-webkit-details-marker {
  display: none;
}

.header-account-menu__trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-top-color 0.15s ease;
}

.header-account-menu[open] .header-account-menu__trigger::after {
  transform: rotate(180deg);
  border-top-color: #5eead4;
}

.header-account-menu__trigger:focus-visible {
  outline: none;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.header-account-menu[open] .header-account-menu__trigger {
  background: rgba(13, 148, 136, 0.22);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow:
    0 0 20px rgba(13, 148, 136, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-account-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #14b8a6 0%, var(--color-accent-deep) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

.header-account-menu__name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
}

@media (max-width: 520px) {
  .header-account-menu__name {
    max-width: 5.5rem;
  }
}

.header-account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 15.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  z-index: 150;
}

.header-account-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

a.header-account-menu__item:hover {
  background: rgba(var(--rgb-accent), 0.09);
  color: var(--color-accent-deep);
  text-decoration: none;
}

button.header-account-menu__item:hover {
  background: rgba(var(--rgb-accent), 0.09);
  color: var(--color-accent-deep);
}

button.header-account-menu__item.header-account-menu__item--logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.header-account-menu__item:focus-visible {
  outline: none;
  background: rgba(var(--rgb-accent), 0.12);
  color: var(--color-accent-deep);
}

.header-account-menu__item--logout {
  color: #dc2626;
  font-weight: 600;
}

.header-account-menu__item--logout:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.header-account-menu__item--logout:focus-visible {
  outline: none;
  color: #b91c1c;
  background: #fff1f2;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

.header-account-menu__sep {
  margin: 0.35rem 0.4rem;
  border: none;
  border-top: 1px solid var(--color-border);
}

.header-account-menu__logout {
  margin: 0;
}

.account-settings-readonly {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
}

.account-settings-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
}

.account-settings-card .form-field {
  margin-bottom: 1rem;
}

.account-settings-card .form-field:last-of-type {
  margin-bottom: 0;
}

/* Body: sidebar + main */
.site-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.site-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(195deg, #1e293b 0%, #0f172a 52%, #020617 100%);
  border-right: 1px solid var(--color-sidebar-border);
  padding: 1.35rem 0 1.5rem;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.site-sidebar__nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.site-sidebar__section--technical {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.site-sidebar__title {
  margin: 0 1rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sidebar-link-muted);
}

.site-sidebar__section--technical .site-sidebar__title {
  margin-top: 0.15rem;
}

.site-sidebar__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-sidebar__nav a {
  display: block;
  padding: 0.55rem 1.25rem 0.55rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-sidebar-link);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-sidebar__nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.site-sidebar__nav a.is-active {
  background: rgba(var(--rgb-accent), 0.18);
  border-left-color: var(--color-accent);
  color: #f0fdfa;
  font-weight: 600;
}

.site-sidebar__nav a.site-sidebar__link--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-sidebar__link-label {
  min-width: 0;
}

.site-sidebar__badge {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.12rem 0.42rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 999px;
  color: #ecfeff;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.4), rgba(13, 148, 136, 0.65));
  border: 1px solid rgba(153, 246, 228, 0.28);
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.28);
}

.site-sidebar__nav a.is-active .site-sidebar__badge {
  color: #042f2e;
  background: linear-gradient(145deg, #ccfbf1, #5eead4);
  border-color: rgba(240, 253, 250, 0.45);
  box-shadow: 0 1px 6px rgba(13, 148, 136, 0.35);
}

.site-sidebar__badge--zero {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.site-sidebar__nav a.is-active .site-sidebar__badge--zero {
  color: #64748b;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.site-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 2rem;
  max-width: 1200px;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header__title {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.page-header__lead {
  margin: 0;
  max-width: 52rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.page-content {
  min-height: 2rem;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(var(--rgb-accent), 0.08);
  color: var(--color-accent-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  border: 1px solid rgba(var(--rgb-accent), 0.15);
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.card__title {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 100%;
  }

  body.body--app .site-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  body.body--app .site-sidebar {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

  body.body--app .site-main-column {
    grid-column: unset;
    grid-row: unset;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  body.body--app .site-main {
    flex: 1 1 auto;
    min-height: 0;
  }

  .site-body {
    flex-direction: column;
  }

  .site-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-sidebar-border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .site-sidebar__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 0.75rem;
  }

  .site-sidebar__nav a {
    border-left: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
  }

  .site-sidebar__nav a.is-active {
    border-left: none;
    box-shadow: 0 0 0 1px rgba(var(--rgb-accent), 0.45);
  }

  .site-main {
    padding: 1rem;
  }
}

/* --- Маркетинговая оболочка (лендинг, вход, регистрация) --- */
.marketing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--app-shell-bg);
}

.marketing-shell--narrow .marketing-main {
  justify-content: center;
}

.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 1.5rem;
  position: relative;
  z-index: 100;
}

.marketing-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.marketing-header__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  border-radius: 12px;
  padding: 2px;
  transition: transform 0.18s ease;
}

.marketing-header__logo-link:hover {
  transform: translateY(-1px);
}

.marketing-header__logo-link:focus-visible {
  outline: none;
}

.marketing-header__logo-link:focus-visible .marketing-header__logo-ring {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.marketing-header__logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 12px;
}

.marketing-header__logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(13, 148, 136, 0.15));
  box-shadow:
    0 0 24px rgba(13, 148, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  pointer-events: none;
}

.marketing-header__logo-link:hover .marketing-header__logo-ring {
  border-color: rgba(94, 234, 212, 0.65);
  box-shadow:
    0 0 28px rgba(45, 212, 191, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.marketing-header__logo-img {
  position: relative;
  z-index: 1;
  height: 40px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
}

.marketing-header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 500;
}

.marketing-header__nav a:not(.btn) {
  color: #a8b8cf;
  padding: 0.35rem 0;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.marketing-header__nav a:not(.btn):hover {
  color: #99f6e4;
}

.marketing-header__user {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.marketing-header .link-like {
  color: #94a3b8;
  text-decoration-color: rgba(148, 163, 184, 0.35);
}

.marketing-header .link-like:hover {
  color: #99f6e4;
}

.marketing-header .btn--primary {
  box-shadow:
    0 2px 14px rgba(var(--rgb-accent), 0.5),
    0 0 28px rgba(45, 212, 191, 0.22);
}

.logout-form {
  display: inline;
  margin: 0;
}

.link-like {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
}

.link-like:hover {
  color: var(--color-accent);
}

.marketing-main {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-text);
}

.hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.hero__list {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.hero__list li {
  margin-bottom: 0.35rem;
}

.hero__cta-note {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(var(--rgb-accent), 0.35), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn--primary:hover {
  background: linear-gradient(145deg, var(--color-accent-hover) 0%, #0d5c56 100%);
  text-decoration: none;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--rgb-accent), 0.4), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-accent-deep) !important;
  border: 1px solid rgba(var(--rgb-accent), 0.35);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: rgba(var(--rgb-accent), 0.08);
  border-color: var(--color-accent);
  text-decoration: none;
  color: var(--color-accent-deep) !important;
}

.btn--block {
  width: 100%;
}

.auth-card {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card__title {
  font-family: var(--font-display);
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card__lead {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.auth-card__aux {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  text-align: right;
}

.auth-card__aux a {
  color: var(--color-accent, #2563eb);
  font-weight: 600;
}

.auth-card__footer,
.auth-card__back {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

.auth-card__back {
  margin-top: 0.75rem;
}

.auth-form .form-field {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.input-control {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
}

.input-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--rgb-accent), 0.2);
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #b42318;
  margin-top: 0.25rem;
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #991b1b;
}

.messages-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.messages-list__item {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

.messages-list__item--success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.messages-list__item--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.messages-list--page {
  margin-bottom: 1.25rem;
}

/* Поиск тендеров */
.search-filters-card {
  margin-bottom: 1.5rem;
}

.search-filters-card__heading {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.search-filters-card--compact.card {
  padding: 0.4rem 0.65rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.search-filters-card--compact.card::before {
  display: none;
}

.search-filters-card__heading--compact {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
}

.search-filters-card--compact .filter-details__summary {
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
}

.search-filters-card--compact .filter-details__body {
  padding: 0 0.5rem 0.5rem;
  overflow: visible;
}

.search-filters-card--compact .form-grid__dates-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.65rem;
  max-width: 20.5rem;
}

.search-filters-card--compact .form-grid__date-field {
  flex: 0 1 auto;
  width: 9.35rem;
  max-width: calc(50% - 0.35rem);
  min-width: 8.5rem;
}

.search-filters-card--compact .form-grid__date-field .input-control {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 420px) {
  .search-filters-card--compact .form-grid__dates-row {
    max-width: none;
  }

  .search-filters-card--compact .form-grid__date-field {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

.search-filters-card--compact .form-grid {
  gap: 0.45rem 0.55rem;
}

.search-filters-card--compact .form-grid__filters-row {
  gap: 0.4rem 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  margin-top: 0;
}

.search-filters-card--compact .filter-dd .form-label {
  margin-bottom: 0.12rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
}

.search-filters-card--compact .filter-details__body .input-control {
  padding: 0.3rem 0.4rem;
  font-size: 0.8125rem;
  border-radius: 5px;
}

.search-filters-card--compact .filter-details__body textarea.input-control {
  min-height: 2rem;
  line-height: 1.35;
}

.search-filters-card--compact .filter-details__body .form-label {
  font-size: 0.6875rem;
  margin-bottom: 0.12rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted, #64748b);
}

.search-filters-card--compact .filter-details__body .form-hint {
  font-size: 0.6875rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.search-filters-card--compact .filter-details__body .form-warning {
  margin-top: 0.4rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.search-filters-card--compact .checkbox-dropdown__summary {
  padding: 0.28rem 0.42rem;
  font-size: 0.8125rem;
  border-radius: 5px;
}

.search-filters-card--compact .checkbox-dropdown__chevron::before {
  font-size: 0.65rem;
}

.search-filters-card--compact .checkbox-dropdown__scroll {
  top: calc(100% + 2px);
  margin-top: 0;
  max-height: 11rem;
  padding: 0.2rem 0;
  border-radius: 5px;
}

.search-filters-card--compact .checkbox-dropdown__search-wrap {
  padding: 0 0.35rem 0.3rem;
  margin-bottom: 0.1rem;
}

.search-filters-card--compact .checkbox-dropdown__search {
  padding: 0.26rem 0.4rem;
  font-size: 0.75rem;
}

.search-filters-card--compact .checkbox-dropdown__inputs > div {
  padding: 0.1rem 0.42rem;
}

.search-filters-card--compact .checkbox-dropdown__inputs label {
  font-size: 0.75rem;
  gap: 0.3rem;
  line-height: 1.28;
}

.search-filters-card--compact .checkbox-dropdown__inputs input[type="checkbox"] {
  margin-top: 0.12rem;
}

.search-filters-card--compact .filter-details__body .inline-code {
  font-size: 0.7em;
  padding: 0.05em 0.25em;
}

.preset-panel {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%, #f1f5f9 100%);
  box-shadow: var(--shadow-md);
  border-left: 3px solid rgba(var(--rgb-accent), 0.55);
}

.preset-panel--compact.card {
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.75rem;
  box-shadow: none;
  background: var(--color-surface);
}

.preset-panel--compact.card::before {
  display: none;
}

.preset-panel__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.preset-panel--compact .preset-panel__title {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
}

.search-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.search-panel__actions--compact {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  gap: 0.35rem;
}

.saved-searches__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.saved-searches__toolbar--compact {
  gap: 0.35rem 0.5rem;
}

.saved-searches__pick {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}

.saved-searches__toolbar--compact .saved-searches__pick {
  flex: 1 1 9rem;
  min-width: min(100%, 8rem);
  max-width: min(100%, 20rem);
}

.saved-searches__pick .form-label {
  margin-bottom: 0.35rem;
}

.saved-searches__toolbar--compact .saved-searches__pick .form-label {
  margin-bottom: 0.1rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
}

.saved-searches__select {
  width: 100%;
  max-width: 100%;
}

.saved-searches__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.saved-searches__delete-form {
  margin: 0;
}

.filter-details {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 45%);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid rgba(var(--rgb-accent), 0.4);
  /* visible: выпадающие списки с чекбоксами позиционируются поверх контента */
  overflow: visible;
}

.filter-details__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  user-select: none;
}

.filter-details__summary::-webkit-details-marker {
  display: none;
}

.filter-details__summary::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.5rem;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  opacity: 0.75;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  vertical-align: middle;
  margin-top: -0.1em;
}

.filter-details[open] .filter-details__summary::before {
  transform: rotate(45deg);
  margin-top: 0.1em;
}

.filter-details__summary-text {
  flex: 0 1 auto;
}

.filter-details__hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.filter-details__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.filter-details[open] .filter-details__summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.filter-details__summary:hover {
  background: rgba(var(--rgb-accent), 0.04);
}

.save-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.save-search-bar--compact {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  gap: 0.35rem 0.5rem;
  align-items: flex-end;
}

.save-search-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 18rem);
}

.save-search-bar__field .form-label {
  margin-bottom: 0;
}

.save-search-bar--compact .save-search-bar__field {
  gap: 0.1rem;
  min-width: 0;
}

.save-search-bar--compact .save-search-bar__field--title {
  flex: 1 1 8rem;
  max-width: min(100%, 14rem);
}

.save-search-bar--compact .save-search-bar__field--email {
  flex: 1 1 10rem;
  max-width: min(100%, 18rem);
}

.save-search-bar--compact .save-search-bar__field .form-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
}

.save-search-bar__actions {
  display: flex;
  align-items: center;
  padding-bottom: 1px;
}

@media (max-width: 560px) {
  .save-search-bar--compact .save-search-bar__field--title,
  .save-search-bar--compact .save-search-bar__field--email {
    flex: 1 1 100%;
    max-width: none;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.form-warning {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #92400e;
}

.search-field--wide {
  min-height: 3.25rem;
  resize: vertical;
}

.search-results-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table th {
  font-weight: 600;
  background: var(--color-table-header);
  font-size: 0.8125rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:hover {
  background: rgba(var(--rgb-accent), 0.04);
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-muted {
  color: var(--color-muted);
}

.cell-favorite {
  width: 2.75rem;
  text-align: center;
  vertical-align: middle;
}

.favorite-toggle-form {
  margin: 0;
  display: inline-flex;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.favorite-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(var(--rgb-accent), 0.06);
}

.favorite-btn--active {
  color: #c2410c;
  border-color: #fdba74;
  background: #fff7ed;
}

.favorite-btn--active:hover {
  color: #9a3412;
  border-color: #fb923c;
}

.favorites-preset-bar {
  margin-bottom: 1.25rem;
}

.favorites-preset-bar .form-label {
  margin-bottom: 0.5rem;
}

.favorites-preset-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
}

.favorites-preset-bar__select {
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
  max-width: 100%;
}

/* Новые тендеры: компактный фильтр одной строкой */
.new-tenders-filters--compact.card {
  padding: 0.4rem 0.65rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.new-tenders-filters--compact.card::before {
  display: none;
}

.new-tenders-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem 0.5rem;
}

.new-tenders-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.new-tenders-filters__field .form-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #64748b);
  line-height: 1.2;
}

.new-tenders-filters__field--preset {
  flex: 1 1 9rem;
  max-width: min(100%, 18rem);
}

.new-tenders-filters__field--date {
  flex: 0 0 auto;
  width: 9.25rem;
}

.new-tenders-filters__field--date .input-control--compact {
  width: 100%;
  max-width: 9.25rem;
}

.input-control--compact {
  padding: 0.3rem 0.4rem;
  font-size: 0.8125rem;
  border-radius: 5px;
}

.new-tenders-filters__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  padding-bottom: 1px;
}

.btn--xs {
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 5px;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .new-tenders-filters__field--preset {
    flex: 1 1 100%;
    max-width: none;
  }

  .new-tenders-filters__field--date {
    flex: 1 1 calc(50% - 0.35rem);
    width: auto;
    max-width: none;
  }

  .new-tenders-filters__field--date .input-control--compact {
    max-width: none;
  }
}

.new-tenders-day-block {
  margin-bottom: 1.75rem;
}

.new-tenders-day-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.65rem 0;
  padding: 0.5rem 0 0.55rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
}

.new-tenders-day-block__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    rgba(var(--rgb-accent), 0.28) 42%,
    var(--color-border) 100%
  );
}

.new-tenders-day-block__weekday {
  text-transform: capitalize;
  color: var(--color-muted, #64748b);
  font-weight: 500;
  font-size: 0.875rem;
}

.new-tenders-day-block__date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.new-tenders-day-block__count {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-deep);
  background: rgba(var(--rgb-accent), 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--rgb-accent), 0.2);
}

.new-tenders-day-block__table {
  margin-top: 0;
}

.data-table .cell-preset {
  font-size: 0.8125rem;
  max-width: 10rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-accent-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--rgb-accent), 0.3);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.pagination a:hover {
  background: rgba(var(--rgb-accent), 0.1);
  border-color: var(--color-accent);
  text-decoration: none;
  color: var(--color-accent-deep);
  transform: translateY(-1px);
}

.pagination__status {
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Выпадающие фильтры с чекбоксами */
.form-grid__filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 0.25rem;
}

.filter-dd .form-label {
  margin-bottom: 0.4rem;
}

.checkbox-dropdown {
  width: 100%;
  position: relative;
  z-index: 1;
}

.checkbox-dropdown[open] {
  z-index: 80;
}

.checkbox-dropdown__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkbox-dropdown[open] .checkbox-dropdown__summary {
  border-color: rgba(var(--rgb-accent), 0.45);
  box-shadow: 0 0 0 2px rgba(var(--rgb-accent), 0.12);
}

.checkbox-dropdown__summary::-webkit-details-marker {
  display: none;
}

.checkbox-dropdown__placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkbox-dropdown__chevron::before {
  content: "▾";
  font-size: 0.75rem;
  color: var(--color-muted);
}

.checkbox-dropdown[open] .checkbox-dropdown__chevron::before {
  content: "▴";
}

.checkbox-dropdown__scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 10;
  margin-top: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 0.35rem 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.checkbox-dropdown__search-wrap {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0 0.4rem 0.4rem;
  margin: 0 0 0.15rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.checkbox-dropdown__search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.38rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: 5px;
}

.checkbox-dropdown__inputs > div {
  padding: 0.2rem 0.65rem;
}

.checkbox-dropdown__inputs label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.35;
}

.checkbox-dropdown__inputs input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox-dropdown__inputs span,
.checkbox-dropdown label span {
  word-break: break-word;
}

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

.cell-compare {
  width: 2.5rem;
  text-align: center;
}

.cell-compare input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.cell-annotation-head {
  min-width: 11rem;
}

.annotation-form--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
}

.annotation-form__status {
  flex: 0 1 7.5rem;
  min-width: 0;
}

.annotation-form__note {
  flex: 1 1 6rem;
  min-width: 4rem;
}

.annotation-form__save {
  flex-shrink: 0;
}

/* Сравнение: блок в потоке страницы (над таблицей), не перекрывает футер */
.tender-compare-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  background: linear-gradient(
    135deg,
    rgba(var(--rgb-accent), 0.06) 0%,
    var(--color-surface) 48%
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-accent);
}

.tender-compare-inline__body {
  flex: 1 1 12rem;
  min-width: 0;
}

.tender-compare-inline__status {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.tender-compare-inline--ready .tender-compare-inline__status {
  color: var(--color-text);
}

.tender-compare-inline__cta {
  flex-shrink: 0;
}

.tender-compare-inline__cta .btn[disabled] {
  opacity: 0.55;
}

.tender-compare-wrap {
  overflow-x: auto;
}

.tender-compare-table__label {
  width: 8rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-muted);
  white-space: nowrap;
}

.how-it-works__h {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 1.25rem 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.how-it-works__h:first-child {
  margin-top: 0;
}

.how-it-works__back {
  margin-top: 1.5rem;
}
