/*!
 * eeSave DataCenter — UI styles
 */
:root {
  --ld-brand: #0f4c5c;
  --ld-brand-deep: #0a3540;
  --ld-brand-red: #e31e24;
  --ld-accent: #e31e24;
  --ld-accent-hover: #c4181e;
  --ld-accent-soft: #f4a261;
  --ld-bg: #eef3f5;
  --ld-card: #ffffff;
  --ld-muted: #5c6b73;
  --ld-font: "Manrope", system-ui, sans-serif;
  --ld-display: "Sora", "Manrope", sans-serif;
  --ld-nav-h: auto;
}

body.ld-body {
  font-family: var(--ld-font);
  background:
    radial-gradient(1200px 400px at 8% -8%, rgba(227, 30, 36, 0.06), transparent 50%),
    linear-gradient(180deg, #e2ebef 0%, var(--ld-bg) 38%, #e8eef1 100%);
  min-height: 100vh;
  color: #1a2428;
}

/* ——— Top navigation (white) ——— */
.navbar.ld-nav {
  min-height: 5.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 76, 92, 0.08), 0 6px 18px rgba(15, 76, 92, 0.06);
  border-bottom: 1px solid rgba(15, 76, 92, 0.1);
}

.ld-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ld-brand {
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  margin-right: 1rem;
  margin-left: 8%;
  text-decoration: none !important;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

/* Nav logo */
.ld-brand-logo {
  display: block;
  width: min(190px, 13.97vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.ld-toggler {
  border-color: rgba(15, 76, 92, 0.35);
}
.ld-toggler .navbar-toggler-icon {
  filter: none;
}

/* Пункты верхнего меню — одинаковой ширины */
.ld-nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0.35rem;
}

.ld-nav-links .nav-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.ld-nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.5rem !important;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  color: #1a2428 !important;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ld-nav-links .nav-link:hover,
.ld-nav-links .nav-link:focus {
  color: var(--ld-brand) !important;
  background: rgba(15, 76, 92, 0.07);
  border-color: rgba(15, 76, 92, 0.14);
}

.ld-nav-links .nav-link.active {
  color: #fff !important;
  background: linear-gradient(180deg, var(--ld-accent) 0%, var(--ld-accent-hover) 100%);
  border-color: var(--ld-accent-hover);
  box-shadow: 0 6px 14px rgba(227, 30, 36, 0.28);
}

.ld-nav-links .dropdown-toggle::after {
  margin-left: 0.35rem;
}

.ld-dropdown {
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 0.65rem;
  padding: 0.4rem;
  margin-top: 0.45rem !important;
  box-shadow: 0 12px 32px rgba(15, 76, 92, 0.12);
  min-width: 15.5rem;
  background: #fff;
}

.ld-dropdown .dropdown-item {
  border-radius: 0.45rem;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  color: #1a2428;
}

.ld-dropdown .dropdown-item:hover,
.ld-dropdown .dropdown-item:focus {
  background: rgba(15, 76, 92, 0.08);
  color: var(--ld-brand);
}

.ld-dropdown .dropdown-item.active {
  background: rgba(227, 30, 36, 0.1);
  color: var(--ld-brand-deep);
}

.ld-dd-label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  color: #1a2428;
}

.ld-dd-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--ld-muted);
  margin-top: 0.1rem;
}

.ld-nav-user-name {
  color: var(--ld-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.ld-btn-logout {
  border: 1px solid rgba(15, 76, 92, 0.3);
  color: var(--ld-brand);
  font-weight: 600;
  background: #fff;
}
.ld-btn-logout:hover {
  background: var(--ld-brand);
  border-color: var(--ld-brand);
  color: #fff;
}

@media (max-width: 991.98px) {
  .ld-brand {
    max-width: calc(100% - 3.5rem);
  }
  .ld-brand-logo {
    width: min(118px, 32vw);
  }
  .ld-nav-links {
    display: block;
    padding-top: 0.75rem;
  }
  .ld-nav-links .nav-item {
    display: block;
  }
  .ld-nav-links .nav-link {
    justify-content: flex-start;
    height: auto;
    margin: 0.15rem 0;
    font-size: 0.9rem;
    text-align: left;
  }
  .ld-nav-user {
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid rgba(15, 76, 92, 0.1);
    margin-top: 0.5rem;
  }
}

/* ——— Content ——— */
.ld-hero {
  padding: 1.5rem 0 0.5rem;
}

.ld-hero h1 {
  font-family: var(--ld-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ld-brand);
}

.ld-card {
  background: var(--ld-card);
  border: 1px solid rgba(15, 76, 92, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 76, 92, 0.06);
}

.ld-stat {
  font-family: var(--ld-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ld-brand);
  line-height: 1.1;
}

.ld-stat-label {
  color: var(--ld-muted);
  font-size: 0.9rem;
}

.ld-stat-sm {
  font-size: 1.15rem;
  line-height: 1.2;
}

.ld-footer {
  color: var(--ld-muted);
  font-size: 0.85rem;
  padding: 2rem 0 1.25rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(15, 76, 92, 0.08);
}

.ld-footer-text {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

.btn-ld {
  background: var(--ld-accent);
  border-color: var(--ld-accent);
  color: #fff;
  font-weight: 600;
}

.btn-ld:hover {
  background: var(--ld-accent-hover);
  border-color: var(--ld-accent-hover);
  color: #fff;
}

/* Schedule */
.ld-schedule-table thead th {
  background: rgba(15, 76, 92, 0.06);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ld-muted);
  white-space: nowrap;
  padding: 0.5rem 0.65rem;
}
.ld-schedule-table td {
  padding: 0.4rem 0.65rem;
  vertical-align: middle;
}
.ld-schedule-table .ld-levels-cell {
  max-width: 14rem;
}
.ld-schedule-table tr.ld-empty-day td {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.ld-sched-block {
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 76, 92, 0.1);
  background: #fafbfc;
}
.ld-sched-bmc {
  border-left: 3px solid #c45c26;
}
.ld-sched-os {
  border-left: 3px solid #2c5f4a;
}
.ld-sched-l3 {
  border-left: 3px solid #3b6ea5;
}
.ld-sched-stack {
  border-radius: 0.5rem;
  background: rgba(15, 76, 92, 0.04);
  border: 1px solid rgba(15, 76, 92, 0.08);
}
.ld-levels-compact {
  max-height: 220px;
  overflow-y: auto;
}
.ld-levels-compact th,
.ld-levels-compact td {
  padding: 0.2rem 0.25rem;
  font-size: 0.8rem;
}
.ld-os-status-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ld-muted);
  border-bottom-width: 1px;
}
.ld-os-status-table td {
  vertical-align: middle;
}

/* Подсказки «?» и бейджи каналов */
.ld-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0;
  border: 1px solid rgba(15, 76, 92, 0.35);
  border-radius: 50%;
  background: rgba(15, 76, 92, 0.06);
  color: var(--ld-brand);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.ld-help:hover,
.ld-help:focus {
  background: var(--ld-brand);
  color: #fff;
  border-color: var(--ld-brand);
  outline: none;
}
.ld-channel-badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: help;
}
.ld-hero .ld-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.tooltip.ld-tooltip .tooltip-inner {
  max-width: 280px;
  text-align: left;
  font-size: 0.8rem;
}

.ld-term {
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

.ld-term:focus {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}

.ld-search-select-host {
  position: relative;
}

.ld-filter-block-row.ld-search-only {
  grid-template-columns: 1fr;
}

.ld-search-select-results {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.3rem;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.16);
}

.ld-search-select-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--ld-brand-deep);
  font-size: 0.84rem;
  text-align: left;
}

.ld-search-select-option:hover,
.ld-search-select-option.is-active {
  background: rgba(29, 78, 216, 0.08);
  color: var(--ld-brand);
}

.ld-search-select-empty {
  padding: 0.55rem 0.6rem;
  color: var(--ld-muted);
  font-size: 0.82rem;
}

.ld-field-error {
  margin-top: 0.3rem;
  color: #b02a37;
  font-size: 0.78rem;
}

.ld-optional-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.1);
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.ld-upload-card--optional {
  background: #fcfdfe;
  border-color: rgba(15, 76, 92, 0.1);
}

.ld-upload-card--optional .ld-upload-lead {
  color: var(--ld-muted);
}

.login-wrap {
  max-width: 440px;
  margin: 8vh auto;
}

.login-wrap .ld-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.login-wrap .ld-login-logo {
  width: 100%;
  max-width: 230px;
  height: auto;
  display: block;
}

.ld-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ld-brand-deep);
  max-width: 40rem;
}

.ld-feature {
  height: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 0.55rem;
  background: rgba(15, 76, 92, 0.04);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.ld-feature-title {
  font-family: var(--ld-display);
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ld-brand);
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.ld-feature-text {
  font-size: 0.85rem;
  color: var(--ld-muted);
  line-height: 1.4;
}

/* ——— Сервис расчета тарифов ——— */
.ld-nav-user {
  white-space: nowrap;
}

.ld-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(15, 76, 92, 0.3);
  color: var(--ld-brand);
  font-weight: 600;
  background: #fff;
}

.ld-btn-login:hover,
.ld-btn-login:focus {
  background: var(--ld-brand);
  border-color: var(--ld-brand);
  color: #fff;
}

.ld-login-icon {
  flex: 0 0 auto;
}

.ld-tabs {
  border-bottom-color: rgba(15, 76, 92, 0.15);
  flex-wrap: wrap;
}

.ld-tabs .nav-link {
  color: var(--ld-brand);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5rem 0.85rem;
}

.ld-tabs .nav-link:hover,
.ld-tabs .nav-link:focus {
  color: var(--ld-brand-red);
  background: rgba(15, 76, 92, 0.04);
}

.ld-tabs .nav-link.active {
  color: var(--ld-brand-red);
  background: transparent;
  border-bottom-color: var(--ld-brand-red);
}

.ld-stub-title {
  font-family: var(--ld-display);
  font-weight: 650;
  color: var(--ld-brand);
}

.ld-filters .form-label {
  font-size: 0.8rem;
  color: var(--ld-muted);
  margin-bottom: 0.25rem;
}

/* ——— Единый вид страниц с формами ——— */
.ld-page {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.ld-form .form-label {
  font-size: 0.8rem;
  color: var(--ld-muted);
  margin-bottom: 0.25rem;
}

.ld-summary {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 0.5rem;
}

.ld-admin-nav {
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ld-admin-nav .nav-link {
  color: var(--ld-brand);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 76, 92, 0.15);
  border-radius: 0.5rem;
  background: #fff;
}

.ld-admin-nav .nav-link:hover,
.ld-admin-nav .nav-link:focus {
  background: rgba(15, 76, 92, 0.06);
  color: var(--ld-brand);
}

.ld-admin-nav .nav-link.active {
  background: var(--ld-accent);
  border-color: var(--ld-accent);
  color: #fff;
}

.ld-chart {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.ld-chart-sm {
  position: relative;
  height: 240px;
}

.ld-hours {
  font-size: 0.72rem;
  color: var(--ld-muted);
  line-height: 1.2;
  word-break: break-word;
}

/* ——— Лендинг «Обзор» ——— */
body.ld-body {
  overflow-x: hidden;
}

.ld-land-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background:
    radial-gradient(1000px 360px at 12% 0%, rgba(227, 30, 36, 0.22), transparent 62%),
    linear-gradient(135deg, var(--ld-brand) 0%, var(--ld-brand-deep) 100%);
  color: #fff;
}

.ld-land-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.ld-land-hero-copy {
  flex: 1 1 55%;
  min-width: 0;
}

.ld-land-kicker {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.ld-land-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
}

.ld-land-hero h1 {
  margin: 0;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ld-land-hero .ld-help {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.ld-land-hero .ld-help:hover,
.ld-land-hero .ld-help:focus {
  background: #fff;
  color: var(--ld-brand);
  border-color: #fff;
}

.ld-land-lead {
  max-width: 60rem;
  margin: 0.45rem 0 0;
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.ld-land-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.ld-land-hero-actions .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.ld-land-hero-actions .btn-outline-secondary:hover,
.ld-land-hero-actions .btn-outline-secondary:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ld-brand);
}

.ld-land-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.5rem 1.5rem 0.5rem;
}

.ld-land-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ld-land-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ld-land-card {
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  padding: 1.05rem 1.15rem;
  background: var(--ld-card);
  border: 1px solid rgba(15, 76, 92, 0.08);
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 76, 92, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ld-land-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 76, 92, 0.16);
  box-shadow: 0 16px 38px rgba(15, 76, 92, 0.12);
}

.ld-land-card--wide {
  grid-column: 1 / -1;
}

.ld-land-card-banner {
  flex-direction: row;
  align-items: center;
  min-height: 0;
  gap: 0.9rem 1.1rem;
}

.ld-land-banner-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ld-land-card-banner .ld-land-card-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.ld-land-card-banner .ld-land-card-title {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.ld-land-card-banner .ld-land-card-text {
  margin: 0;
}

.ld-land-card-banner .ld-land-card-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.ld-land-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.65rem;
  border-radius: 0.6rem;
  background: rgba(15, 76, 92, 0.08);
  color: var(--ld-brand);
}

.ld-land-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ld-land-card-title {
  margin: 0 0 0.45rem;
  font-family: var(--ld-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ld-brand);
}

.ld-land-card-text {
  margin: 0 0 0.85rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ld-muted);
}

.ld-land-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .ld-land-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ld-land-hero-copy {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .ld-land-grid {
    grid-template-columns: 1fr;
  }
  .ld-land-card--wide,
  .ld-land-card-banner {
    grid-column: auto;
  }
  .ld-land-card-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— UX-улучшения ——— */

/* Доступность: видимый фокус */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--ld-brand);
  outline-offset: 2px;
}

/* Шаги сценария */
.ld-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 76, 92, 0.15);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.ld-step a {
  color: var(--ld-brand);
  text-decoration: none;
}

.ld-step--done {
  border-color: rgba(15, 76, 92, 0.25);
  background: rgba(15, 76, 92, 0.06);
}

.ld-step--current {
  border-color: var(--ld-accent);
  background: var(--ld-accent);
}

.ld-step--current a,
.ld-step--current {
  color: #fff;
}

/* Липкая шапка таблиц при прокрутке */
.ld-summary thead th,
.table-responsive.thead-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ld-summary thead th {
  background: #fff;
}

/* Подсветка выбранной строки списка */
tr.ld-row-active > td {
  background: rgba(227, 30, 36, 0.06) !important;
}

/* Спиннер на кнопке при отправке */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ld-spin 0.6s linear infinite;
}

@keyframes ld-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Страница ошибки */
.ld-error-code {
  font-family: var(--ld-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--ld-accent);
  line-height: 1;
}

/* Строка быстрого поиска над списком/таблицей */
.ld-search {
  max-width: 22rem;
}

/* Круглая кнопка-аккаунт */
.ld-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.ld-account-btn img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.ld-account-btn:hover img {
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.ld-account .dropdown-menu {
  min-width: 12rem;
}

/* ——— Лендинг v2 ——— */
:root {
  --ld-land-blue: #1d4ed8;
  --ld-land-blue-deep: #172554;
  --ld-land-blue-ink: #0f1f3d;
  --ld-land-blue-soft: #dbeafe;
}

.ld-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ld-brand);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 76, 92, 0.18);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.ld-skip-link:focus {
  transform: none;
  outline: 2px solid var(--ld-brand);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

html.ld-scroll-pending body {
  visibility: hidden;
}

#top,
#how,
#capabilities,
#try,
#faq {
  scroll-margin-top: 5.5rem;
}

.navbar.ld-nav {
  min-height: 4.75rem;
}

.ld-brand {
  margin-left: 0;
}

.ld-nav-links {
  flex: 0 1 auto;
  gap: 0.2rem;
}

.ld-nav-links .nav-item {
  flex: 0 0 auto;
}

.ld-nav-links .nav-link {
  width: auto;
  padding: 0.45rem 0.65rem !important;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .ld-nav-links {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

.ld-nav-links .nav-link.ld-nav-login {
  border-color: rgba(15, 76, 92, 0.25);
  background: rgba(15, 76, 92, 0.05);
  color: var(--ld-brand) !important;
}

.ld-nav-links .nav-link.ld-nav-login:hover,
.ld-nav-links .nav-link.ld-nav-login:focus {
  background: var(--ld-brand);
  border-color: var(--ld-brand);
  color: #fff !important;
}

.ld-land-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 760px);
  margin-top: -1.5rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(900px 420px at 50% -20%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(800px 400px at 10% 20%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(135deg, #172554 0%, #0b1220 100%);
  color: #fff;
  text-align: center;
}

.ld-land-hero::before,
.ld-land-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ld-land-hero::before {
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(191, 219, 254, 0.22);
  box-shadow:
    0 0 0 36px rgba(191, 219, 254, 0.05),
    0 0 0 88px rgba(191, 219, 254, 0.035);
}

.ld-land-hero::after {
  bottom: -160px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%);
}

.ld-land-hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ld-land-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-brand);
}

.ld-land-hero h1 {
  margin: 0 auto 1.75rem;
  max-width: 30ch;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.04vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
}

.ld-land-lead {
  max-width: 66ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.ld-land-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.ld-land-note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.ld-land-hero-actions .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.ld-land-hero-actions .btn-outline-secondary:hover,
.ld-land-hero-actions .btn-outline-secondary:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ld-brand);
}

.ld-land-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
}

.ld-land-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ld-land-section--split {
  background: #fff;
}

.ld-land-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.ld-land-split-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ld-land-split h2 {
  margin: 0 0 1rem;
}

.ld-land-split .ld-land-steps--compact {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.ld-land-split .ld-land-steps--compact .ld-land-step {
  position: relative;
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
}

.ld-land-split .ld-land-steps--compact .ld-land-step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(29, 78, 216, 0.12);
  color: rgba(29, 78, 216, 0.85);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.05);
}

.ld-land-split .ld-land-steps--compact .ld-land-step-num {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
}

.ld-land-split .ld-land-steps--compact h3 {
  font-size: 1rem;
}

.ld-land-split .ld-land-cards--compact {
  flex: 1 1 auto;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0.6rem;
}

.ld-land-split .ld-land-cards--compact .ld-land-card {
  min-height: 0;
  padding: 1rem 1.1rem;
}

.ld-land-split .ld-land-cards--compact .ld-land-card-title {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.ld-land-split .ld-land-cards--compact .ld-land-card-text {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.ld-land-split .ld-land-cards--compact .btn {
  width: 50%;
  white-space: normal;
}

.ld-land-section-head {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.ld-land-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ld-land-blue-ink);
}

.ld-land-section-lead {
  margin: 0;
  color: var(--ld-muted);
}

.ld-land-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-land-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.07);
}

.ld-land-step-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ld-land-blue);
  color: #fff;
  font-family: var(--ld-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.ld-land-step h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ld-land-blue-ink);
}

.ld-land-step-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ld-muted);
}

.ld-land-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ld-land-cards .ld-land-card {
  height: 100%;
  padding: 1.5rem;
}

.ld-land-cards .ld-land-card-title {
  font-size: 1.15rem;
}

.ld-land-cards .ld-land-card-text {
  flex: 1 1 auto;
  font-size: 0.92rem;
}

.ld-land-cards .btn {
  width: 100%;
}

.ld-land-card {
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.07);
}

.ld-land-card-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ld-land-blue);
}

.ld-land-card-title {
  color: var(--ld-land-blue-ink);
}

.ld-land-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  background: linear-gradient(135deg, var(--ld-brand) 0%, var(--ld-brand-deep) 100%);
  color: #fff;
}

.ld-land-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ld-land-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: #fff;
}

.ld-land-cta p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.ld-land-cta .btn-light {
  color: var(--ld-brand-deep);
  font-weight: 700;
}

.ld-faq {
  max-width: 900px;
  margin: 0 auto;
}

.ld-faq .accordion-item {
  margin-bottom: 0.6rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
}

.ld-faq .accordion-button {
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--ld-land-blue-ink);
  background: #fff;
  box-shadow: none;
}

.ld-faq .accordion-button:not(.collapsed) {
  color: var(--ld-land-blue);
  background: rgba(37, 99, 235, 0.06);
}

.ld-faq .accordion-button:focus {
  box-shadow: none;
  outline: 2px solid var(--ld-land-blue);
  outline-offset: -2px;
}

.ld-faq .accordion-body {
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  color: #33474d;
}

.ld-footer-tagline {
  color: var(--ld-brand-deep);
  font-weight: 600;
}

.ld-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.ld-footer-links a {
  color: var(--ld-brand);
  text-decoration: none;
}

.ld-footer-links a:hover,
.ld-footer-links a:focus {
  text-decoration: underline;
}

.ld-footer-copy {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ld-muted);
}

@media (max-width: 1100px) {
  .ld-land-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .ld-nav-links {
    display: block;
  }
  .ld-nav-links .nav-link {
    width: 100%;
    white-space: normal;
  }
  .ld-land-split {
    grid-template-columns: 1fr;
  }
  .ld-land-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ld-land-steps {
    grid-template-columns: 1fr;
  }
  .ld-land-hero h1 {
    max-width: 22ch;
  }
}

@media (max-width: 767.98px) {
  .ld-land-cards {
    grid-template-columns: 1fr;
  }
  .ld-land-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ld-land-cta .btn {
    width: 100%;
  }
  .ld-land-hero {
    padding-top: 2rem;
  }
  .ld-land-hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ld-land-card,
  .ld-land-card:hover {
    transform: none;
    transition: none;
  }
  .ld-skip-link {
    transition: none;
  }
}

/* ——— Страница цен ЦК 3–6 ——— */
#params,
#download {
  scroll-margin-top: 5.5rem;
}

.ld-price-hero {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.55), rgba(255, 255, 255, 0.92));
}

.ld-price-hero h1 {
  margin: 0 0 0.3rem;
  font-family: var(--ld-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: #0f1f3d;
}

.ld-price-lead {
  max-width: 100ch;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #33474d;
}

.ld-price-note {
  max-width: 76ch;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ld-muted);
}

.ld-price-includes {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 0.85rem;
  background: #fff;
}

.ld-price-includes h2 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-price-includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem 0.9rem;
}

.ld-price-includes-col {
  padding-left: 0.6rem;
  border-left: 3px solid #1d4ed8;
}

.ld-price-includes-col h3 {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f1f3d;
}

.ld-price-includes-base {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ld-muted);
}

.ld-price-includes-col ul {
  margin: 0;
  padding-left: 1rem;
}

.ld-price-includes-col li {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ld-muted);
}

.ld-params-card {
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}

.ld-ck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.55rem 0 0;
}

.ld-ck-tab {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ld-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.ld-ck-tab:hover,
.ld-ck-tab:focus {
  background: none;
  color: var(--ld-brand);
  text-decoration: underline;
}

.ld-ck-tab.active {
  border: 0;
  background: none;
  color: var(--ld-brand);
  font-weight: 600;
  text-decoration: underline;
}

.ld-file-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.ld-file-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.04);
}

.ld-file-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-file-card p,
.ld-file-card li {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ld-muted);
}

.ld-file-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.ld-params-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ld-params-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-params-progress {
  padding: 0;
  border: 0;
  background: transparent;
}

.ld-params-progress .progress {
  height: 0.25rem;
  background: transparent;
}

.ld-params-progress .progress-bar {
  background: rgba(29, 78, 216, 0.35);
}

.ld-region-search {
  font-size: 0.88rem;
}

.ld-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ld-btn-disabled:hover,
.ld-btn-disabled:focus {
  background: var(--ld-accent);
  border-color: var(--ld-accent);
  color: #fff;
}

.ld-card .form-select:disabled,
.ld-card .form-control:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

.ld-choice {
  margin: 1rem 0;
}

.ld-choice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ld-choice h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-choice-actions {
  display: flex;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.ld-choice-actions a {
  color: var(--ld-brand);
  font-weight: 600;
  text-decoration: none;
}

.ld-choice-actions a:hover,
.ld-choice-actions a:focus {
  text-decoration: underline;
}

.ld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.ld-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 999px;
  background: #eef4f8;
  font-size: 0.8rem;
}

.ld-chip span {
  color: var(--ld-muted);
}

.ld-chip strong {
  font-weight: 600;
  color: var(--ld-brand-deep);
}

.ld-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.05);
}

.ld-download-preview {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.ld-download-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ld-download h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-download-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ld-muted);
}

.ld-download-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ld-muted);
}

.ld-download-actions {
  flex: 0 0 auto;
}

.ld-download-actions .btn {
  white-space: nowrap;
}

.ld-download-empty {
  padding: 1.5rem;
  text-align: center;
}

.ld-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(15, 76, 92, 0.06), rgba(29, 78, 216, 0.06));
}

.ld-next h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-next p {
  max-width: 65ch;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ld-muted);
}

@media (max-width: 991.98px) {
  .ld-file-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ld-file-cards {
    grid-template-columns: 1fr;
  }
  .ld-ck-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
  .ld-ck-tab {
    flex: 0 0 auto;
  }
  .ld-download,
  .ld-next {
    flex-direction: column;
    align-items: stretch;
  }
  .ld-download-actions .btn,
  .ld-next .btn {
    width: 100%;
  }
  .ld-choice-head {
    align-items: flex-start;
  }
}

/* ——— Центрирование страницы цен ——— */
.ld-price-page {
  max-width: 980px;
}

.ld-price-page .ld-price-hero,
.ld-price-page .ld-price-includes,
.ld-price-page .ld-download {
  text-align: center;
}

.ld-price-page .ld-ck-tabs {
  justify-content: center;
}

.ld-price-page .ld-price-includes-grid {
  justify-content: center;
}

.ld-price-includes-card {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 0.8rem;
  background: #f8fbff;
  text-align: left;
}

.ld-price-includes-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.ld-price-includes-card > div {
  min-width: 0;
}

.ld-price-includes-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f1f3d;
}

.ld-price-includes-card ul {
  margin: 0;
  padding-left: 1rem;
}

.ld-price-includes-card li,
.ld-price-includes-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ld-muted);
}

.ld-price-includes-note {
  margin-bottom: 0.2rem;
}

.ld-price-page .ld-params-card {
  max-width: none;
}

.ld-price-page .ld-params-head {
  justify-content: center;
  text-align: center;
}

.ld-price-page .ld-filter-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: none;
  margin: 0 auto;
}

.ld-filter-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 112px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 0.8rem;
  background: #f8fbff;
}

.ld-filter-block-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f1f3d;
  text-align: left;
}

.ld-filter-block-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.ld-filter-block-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ld-wholesale-info-text {
  max-width: 820px;
  margin: 0.5rem auto 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ld-muted);
  text-align: left;
}

.ld-wholesale-info-text a {
  color: var(--ld-brand);
  text-decoration: underline;
}

.ld-wholesale-check {
  margin: 0;
}

.ld-filter-field {
  min-width: 0;
}

.ld-filter-block .form-control,
.ld-filter-block .form-select {
  width: 100%;
}

.ld-price-page .ld-filters .form-label {
  text-align: left;
}

.ld-price-page .ld-params-progress {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.ld-choice-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.ld-choice-line h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.9rem;
}

.ld-choice-values {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--ld-brand-deep);
}

.ld-choice-values span {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-choice-values span + span::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--ld-muted);
}

.ld-price-page .ld-choice {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.ld-price-page .ld-choice-actions {
  flex: 0 0 auto;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.ld-price-page .ld-download {
  flex-direction: column;
  align-items: center;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.ld-price-page .ld-download-preview {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.ld-price-page .ld-download h2 {
  margin: 0;
}

.ld-price-page .ld-download-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.ld-price-page .ld-download-actions {
  flex: 0 0 auto;
}

.ld-price-page .ld-download-actions .btn {
  width: auto;
}

/* ——— Загрузка почасовых объёмов ——— */
.ld-flow-steps {
  justify-content: center;
}

.ld-flow-note {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ld-muted);
}

.ld-params-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ld-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin: 0 0 1rem;
}

.ld-upload-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.ld-upload-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-upload-head {
  min-height: 6.8rem;
}

.ld-upload-hint {
  min-height: 2.8rem;
  margin-bottom: 0.35rem;
}

.ld-upload-switch-space {
  height: 2.55rem;
}

.ld-upload-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ld-muted);
}

.ld-upload-card--disabled {
  background: #fbfcfd;
}

.ld-upload-disabled {
  margin: 0 0 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed rgba(15, 76, 92, 0.22);
  border-radius: 0.6rem;
  background: #f6f9fb;
  color: var(--ld-muted);
  font-size: 0.82rem;
  text-align: center;
}

.ld-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 128px;
  padding: 1rem;
  border: 2px dashed rgba(29, 78, 216, 0.25);
  border-radius: 0.8rem;
  background: #f8fbff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ld-dropzone:hover,
.ld-dropzone:focus-within,
.ld-dropzone.is-dragover {
  border-color: #1d4ed8;
  background: #f0f7ff;
}

.ld-dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ld-dropzone-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.ld-dropzone-text {
  max-width: 32rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ld-muted);
}

.ld-file-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  font-size: 0.82rem;
}

.ld-file-state[hidden] {
  display: none !important;
}

.ld-file-state [data-clear-file][hidden] {
  display: none !important;
}

.ld-file-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
}

.ld-file-meta [data-file-name] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ld-upload-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.ld-upload-links a {
  color: var(--ld-brand);
  text-decoration: underline;
}

.ld-upload-links a:hover,
.ld-upload-links a:focus {
  color: var(--ld-brand-deep);
}

.ld-upload-result {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(25, 135, 84, 0.18);
  border-radius: 0.7rem;
  background: #f4fbf6;
  font-size: 0.88rem;
}

.ld-upload-details {
  margin-top: 0.7rem;
  font-size: 0.78rem;
}

.ld-upload-details summary {
  cursor: pointer;
  color: var(--ld-brand);
  font-weight: 600;
}

.ld-upload-details .ld-stat {
  font-size: 1.05rem;
}

.ld-upload-details .ld-stat-label {
  font-size: 0.72rem;
}

.ld-upload-details .ld-feature {
  padding: 0.45rem 0.55rem;
}

.ld-upload-details .table {
  font-size: 0.76rem;
}

.ld-upload-details .table th,
.ld-upload-details .table td {
  padding: 0.25rem 0.35rem;
}

.ld-upload-subtitle {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f1f3d;
}

.ld-upload-error {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(220, 53, 69, 0.28);
  border-radius: 0.6rem;
  background: #fdf3f4;
  color: #842029;
  font-size: 0.84rem;
}

.ld-upload-error[hidden] {
  display: none !important;
}

.ld-upload-error .alert {
  margin-bottom: 0.5rem;
}

.ld-plan-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}

.ld-plan-switch .btn {
  font-size: 0.8rem;
}

.ld-time-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ld-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ld-next-link {
  color: var(--ld-brand);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.ld-next-link:hover,
.ld-next-link:focus {
  color: var(--ld-brand-deep);
}

.ld-faq-section {
  margin-top: 3rem;
}

@media (max-width: 767.98px) {

  .ld-upload-grid {
    grid-template-columns: 1fr;
  }
  .ld-upload-actions,
  .ld-next-actions,
  .ld-params-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ld-upload-actions .btn,
  .ld-next-actions .btn,
  .ld-params-actions .btn {
    width: 100%;
  }
  .ld-file-state {
    align-items: flex-start;
    flex-direction: column;
  }
  .ld-file-state .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .ld-price-page .ld-filter-blocks {
    max-width: 100%;
  }
  .ld-filter-block-row {
    grid-template-columns: 1fr;
  }
}

/* ——— Расчёт объёма и мощности ——— */
#series,
#result,
#hourly-profile,
#load-factor,
#zone-distribution,
#top-hours {
  scroll-margin-top: 5.5rem;
}

.ld-series-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.6rem;
}

.ld-series-search-input {
  position: relative;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.ld-series-search-input svg {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  color: var(--ld-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.ld-series-search-input .form-control {
  width: 100%;
  height: 2.5rem;
  padding-left: 2.35rem;
}

.ld-series-search .btn {
  width: auto;
  flex: 0 0 auto;
}

.ld-series-count {
  flex: 1 0 100%;
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--ld-muted);
}

.ld-series-no-results {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  border: 1px dashed rgba(15, 76, 92, 0.22);
  border-radius: 0.65rem;
  background: #f6f9fb;
  color: var(--ld-muted);
  font-size: 0.85rem;
  text-align: center;
}

.ld-series-no-results[hidden] {
  display: none !important;
}

.ld-series-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ld-series-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 0.8rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ld-series-card:hover {
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.06);
}

.ld-series-card.is-selected {
  border-color: #1d4ed8;
  background: #f7fbff;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.08);
}

.ld-series-main {
  min-width: 0;
}

.ld-series-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ld-series-period {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d4ed8;
}

.ld-series-selected {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 600;
}

.ld-series-title {
  margin: 0.12rem 0 0.1rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-series-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ld-muted);
}

.ld-series-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ld-series-actions form {
  margin: 0;
}

.ld-series-delete {
  padding: 0.2rem 0.35rem;
  color: #b02a37;
  font-size: 0.8rem;
  text-decoration: none;
}

.ld-series-delete:hover,
.ld-series-delete:focus {
  color: #842029;
  text-decoration: underline;
}

.ld-series-empty {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px dashed rgba(15, 76, 92, 0.22);
  border-radius: 0.7rem;
  background: #f6f9fb;
  color: var(--ld-muted);
  font-size: 0.85rem;
  text-align: center;
}

.ld-result {
  margin-top: 0.5rem;
}

.ld-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.ld-result-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--ld-muted);
}

.ld-result-meta span {
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 999px;
  background: #eef4f8;
}

.ld-result-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ld-result-kpi {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 0.8rem;
  background: #fff;
}

.ld-result-kpi .ld-stat {
  font-size: 1.55rem;
}

.ld-result-kpi .ld-stat-label {
  font-size: 0.78rem;
  line-height: 1.3;
}

.ld-result-kpis.ld-result-kpis--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ld-dashboard-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ld-dashboard-filters .ld-filter-block {
  min-height: 0;
  width: 100%;
}

.ld-dashboard-period {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.ld-dashboard-period .form-select {
  min-width: 0;
}

.ld-dashboard-page .ld-result-head {
  margin-bottom: 0.6rem;
}

.ld-dashboard-page .ld-result-head h2 {
  font-size: 1.05rem;
}

.ld-dashboard-page .ld-result-kpis {
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.ld-dashboard-page .ld-result-kpi {
  padding: 0.7rem 0.85rem;
}

.ld-dashboard-page .ld-result-kpi .ld-stat {
  font-size: 1.4rem;
}

.ld-dashboard-page .ld-result-kpi .ld-stat-label {
  font-size: 0.75rem;
}

.ld-dashboard-page .ld-result-card {
  padding: 0.75rem 0.85rem;
}

.ld-dashboard-page .ld-result-card-head h3 {
  font-size: 0.92rem;
}

.ld-dashboard-page .ld-summary {
  max-height: 260px;
}

.ld-dashboard-chart {
  position: relative;
  width: 100%;
  height: 240px;
}

.ld-dashboard-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.ld-dashboard-empty {
  padding: 1.1rem 1rem;
  border: 1px dashed rgba(29, 78, 216, 0.25);
  border-radius: 0.8rem;
  background: #f8fbff;
  color: var(--ld-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.ld-dashboard-note {
  margin: 0.65rem 0 0;
  color: var(--ld-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.ld-result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 76, 92, 0.1);
}

.ld-result-tabs .nav-link {
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ld-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.ld-result-tabs .nav-link:hover,
.ld-result-tabs .nav-link:focus {
  color: var(--ld-brand);
  background: none;
}

.ld-result-tabs .nav-link.active {
  color: var(--ld-brand);
  background: none;
  border-bottom-color: var(--ld-brand);
}

.ld-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ld-result-card {
  padding: 0.95rem 1rem;
}

.ld-result-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-result-card .table {
  font-size: 0.8rem;
}

.ld-result-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.35rem;
}

.ld-result-card-head h3 {
  margin: 0;
}

.ld-result-card-head .ld-upload-details {
  margin: 0;
  max-width: 34rem;
}

@media (max-width: 767.98px) {
  .ld-series-search .btn {
    width: auto;
  }
  .ld-series-search-input {
    max-width: none;
  }
  .ld-series-card {
    grid-template-columns: 1fr;
  }
  .ld-series-actions {
    justify-content: stretch;
  }
  .ld-series-actions .btn,
  .ld-series-actions form,
  .ld-series-actions form .btn {
    width: 100%;
  }
  .ld-result-kpis,
  .ld-result-kpis.ld-result-kpis--2,
  .ld-result-grid {
    grid-template-columns: 1fr;
  }
  .ld-dashboard-chart {
    height: 200px;
  }
  .ld-result-head {
    flex-direction: column;
  }
}


/* ——— Расчёт стоимости ——— */
.ld-series-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.ld-series-flag {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ld-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.ld-series-flag.is-ok {
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
}

.ld-ck-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.ld-ck-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ld-ck-option:hover {
  border-color: rgba(29, 78, 216, 0.3);
}
.ld-ck-option:has(input:checked) {
  border-color: #1d4ed8;
  background: #f7fbff;
}
.ld-ck-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.ld-ck-option input {
  margin-top: 0.15rem;
}

.ld-ck-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ld-ck-option-body strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ld-brand-deep);
}

.ld-ck-option-body small {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--ld-muted);
}

.ld-manual-prices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ld-manual-prices-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.ld-manual-price-block {
  height: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.ld-manual-price-title {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1f3d;
  text-align: left;
}

.ld-manual-price-block--ck2 .ld-filter-block-row--three {
  gap: 0.5rem;
}

.ld-ck2-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.ld-ck2-mode-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ld-brand-deep);
}

@media (max-width: 767.98px) {
  .ld-manual-prices-grid {
    grid-template-columns: 1fr;
  }
}

.ld-orem-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ld-orem-option {
  width: 100%;
}

.ld-orem-option .ld-ck-option-body strong {
  font-size: 1rem;
}

.ld-orem-warning {
  color: #b45309;
  line-height: 1.35;
}

.ld-orem-fields {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 76, 92, 0.1);
}

.ld-orem-hint {
  margin-bottom: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 0.6rem;
  background: #f8fbff;
  color: var(--ld-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ld-orem-hint a {
  color: var(--ld-brand);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .ld-ck-picker {
    grid-template-columns: repeat(6, minmax(92px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}
