/* Лендинг CDNMON: живая сводка по провайдерам + карта точек измерения.
   Все данные приходят из tarantool (см. app.py landing()/dd-web core.py
   cdncollector), сама страница не ходит в ClickHouse. */
.lp {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.lp .hero {
  text-align: center;
  padding: 34px 0 0;
}
.lp .hero h1 {
  margin-bottom: 12px;
  font-size: 38px;
}
.lp .hero h1 .accent {
  color: #0c7b93;
}
.lp .hero .lead {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.45;
  max-width: 700px;
  margin: 0 auto;
}
.lp .badge-live {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent-green);
  vertical-align: middle;
  margin-left: 6px;
}
/* Текущее состояние — строкой, без карточек */
.lp .now {
  text-align: center;
  margin: 24px auto 0;
  max-width: 940px;
  min-height: 24px;
}
.lp .now-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}
.lp .now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp .now.ok .now-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}
.lp .now.bad .now-dot {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.45);
  animation: lpNowPulse 2s ease-in-out infinite;
}
@keyframes lpNowPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp .now.bad .now-dot {
    animation: none;
  }
}
.lp .now-more {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}
.lp .now-more a {
  color: var(--brand-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(52, 71, 103, 0.25);
}
/* Лента суток */
.lp .day {
  max-width: 1000px;
  margin: 30px auto 0;
  border-top: 1px solid var(--border);
}
.lp .day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 2px 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.lp .day-head .upd {
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}
.lp .row {
  display: grid;
  grid-template-columns: 148px 1fr 76px 72px;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
}
.lp .row:first-of-type {
  border-top: none;
}
.lp .row:hover {
  background: #fbfcfe;
  text-decoration: none;
}
.lp .row .nm {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-dark);
  position: relative;
  padding-left: 12px;
}
.lp .row .nm::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--pc, #94A3B8);
}
.lp .curve {
  position: relative;
  height: 34px;
}
.lp .curve svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.lp .curve .grid {
  stroke: rgba(52, 71, 103, 0.07);
  stroke-width: 0.5;
}
.lp .curve .band {
  fill: rgba(239, 182, 95, 0.13);
}
.lp .curve .band.bad {
  fill: rgba(242, 109, 139, 0.14);
}
.lp .curve .ln {
  fill: none;
  stroke: #4FB57F;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.lp .curve .ln.warn {
  stroke: #E9A63F;
}
.lp .curve .ln.bad {
  stroke: #F26D8B;
}
.lp .curve .now {
  fill: #4FB57F;
}
.lp .curve .now.warn {
  fill: #E9A63F;
}
.lp .curve .now.bad {
  fill: #F26D8B;
}
.lp .row .av {
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.lp .row.down .av {
  color: #e11d48;
}
.lp .row .rt {
  font-size: 12.5px;
  text-align: right;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.lp .row .rt b {
  font-weight: 700;
  color: var(--text-primary);
}
.lp .row.down .rt b.hit {
  color: #e11d48;
}
.lp .day-axis {
  display: grid;
  grid-template-columns: 148px 1fr 76px 72px;
  gap: 14px;
  padding: 8px 2px 0;
  border-top: 1px solid var(--border);
}
.lp .day-axis .sc {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
}
.lp .day-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 2px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.lp .day-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp .day-legend i {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: #4FB57F;
}
.lp .day-legend i.warn {
  background: #E9A63F;
}
.lp .day-legend i.bad {
  background: #F26D8B;
}
.lp .day-empty {
  padding: 20px 2px;
  color: var(--text-tertiary);
  font-size: 13.5px;
}
/* Секции */
.lp .sec {
  margin: 64px 0;
}
.lp .sec-head {
  text-align: center;
  margin-bottom: 22px;
}
.lp .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0c7b93;
  background: rgba(12, 123, 147, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.lp .eyebrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp .sec-head h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.lp .sec-head p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}
.lp .nums {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 24px auto 26px;
}
.lp .num {
  flex: 1 1 0;
  max-width: 230px;
  padding: 4px 22px;
  text-align: center;
  position: relative;
}
.lp .num + .num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: var(--border);
}
.lp .num .n {
  font-size: 31px;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.lp .num .n .u {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-left: 2px;
}
.lp .num .k {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.3;
}
/* Карта в «консоли» */
.lp .console {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px -16px rgba(52, 71, 103, 0.22), 0 1px 4px rgba(0, 0, 0, 0.04);
}
.lp .console-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}
.lp .console-bar .dots {
  display: flex;
  gap: 6px;
}
.lp .console-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lp .console-bar .dots i:nth-child(1) {
  background: #fb7185;
}
.lp .console-bar .dots i:nth-child(2) {
  background: #fbbf24;
}
.lp .console-bar .dots i:nth-child(3) {
  background: #34d399;
}
.lp .console-bar .title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lp .console-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-green);
}
.lp .console-bar .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: lpBlink 1.6s ease-in-out infinite;
}
@keyframes lpBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp .console-bar .live i {
    animation: none;
  }
}
.lp .map-box {
  padding: 4px 10px 0;
  min-height: 200px;
}
.lp .map-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.lp .map-box .reg {
  fill: #EDF1F7;
  stroke: #fff;
  stroke-width: 0.7;
}
.lp .map-box .pt-halo {
  fill: rgba(12, 123, 147, 0.14);
}
.lp .map-box .pt {
  fill: #0c7b93;
  stroke: #fff;
  stroke-width: 1.3;
}
.lp .map-box .pt-halo.bad {
  fill: rgba(244, 63, 94, 0.2);
}
.lp .map-box .pt.bad {
  fill: #f43f5e;
}
.lp .map-foot {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: #fbfcfe;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.lp .map-foot .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp .map-foot .lg i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0c7b93;
}
.lp .map-foot .lg i.bad {
  background: #f43f5e;
}
.lp .map-foot .cities {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.lp .map-foot .city {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.lp .map-foot .city.bad {
  background: #FFF5F7;
  border-color: rgba(244, 63, 94, 0.22);
  color: #e11d48;
}
/* Метрики */
.lp .mcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp .mcard {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}
.lp .mcard:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 123, 147, 0.35);
  box-shadow: 0 12px 30px -16px rgba(52, 71, 103, 0.4);
  text-decoration: none;
}
.lp .mcard-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(12, 123, 147, 0.1);
  color: #0c7b93;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.lp .mcard-ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp .mcard b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.lp .mcard span.d {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.lp .mcard u {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0c7b93;
  text-decoration: none;
}
/* ===== Панель проверки URL — главный элемент первого экрана =============
   Раньше это была тяжёлая полноширинная плашка внизу страницы с
   заголовком и абзацем. Теперь это первое, что видит пользователь под
   hero — одно поле, одна кнопка и короткая подпись под ними о том, что
   именно произойдёт после нажатия. */
.lp .probe {
  max-width: 620px;
  margin: 22px auto 0;
}
.lp .probe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  box-shadow: 0 10px 26px -20px rgba(52, 71, 103, 0.55);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lp .probe-form:focus-within {
  border-color: rgba(12, 123, 147, 0.5);
  box-shadow: 0 10px 26px -18px rgba(12, 123, 147, 0.5);
}
.lp .probe-form > svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp .probe-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  padding: 0 4px;
  height: 42px;
}
.lp .probe-form input::placeholder {
  color: var(--text-tertiary);
}
.lp .probe-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0c7b93;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  height: 42px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.lp .probe-btn:hover {
  background: #0e8ea9;
  color: #fff;
  text-decoration: none;
}
.lp .probe-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp .probe-note {
  margin: 11px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.lp .probe-note b {
  font-weight: 700;
  color: var(--text-primary);
}
/* ===== Кнопка перехода на дашборд =====================================
   Одна плавающая кнопка вместо панели ссылок: на лендинге единственное
   продолжение с проверки — открыть графики. */
.dash-fab {
  /* #goup (стрелка "наверх", less/base.less) стоит по формуле
       max((100svw - var(--max-width))/2 - 72px, 24px) шириной 48px, снизу —
       24px (12px на ≤600px). Берём ту же формулу справа со сдвигом на "её
       ширина (48px) + зазор (14px)", чтобы dash-fab всегда шёл вплотную
       слева от неё на любой ширине экрана, и то же bottom/брейкпоинт снизу,
       чтобы кнопки стояли строго на одной высоте. */
  position: fixed;
  bottom: 24px;
  z-index: 60;
  right: max((100svw - var(--max-width)) / 2 - 10px, 86px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(52, 71, 103, 0.65);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dash-fab:hover {
  background: var(--brand-dark-light);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(52, 71, 103, 0.7);
}
.dash-fab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  .dash-fab {
    bottom: 12px;
  }
}
@media (max-width: 1000px) {
  .lp .mcards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .lp .probe-form {
    flex-wrap: wrap;
    padding: 6px 6px 6px 12px;
  }
  .lp .probe-form input {
    flex: 1 1 auto;
  }
  .lp .probe-btn {
    flex: 1 0 100%;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .lp .hero {
    padding-top: 26px;
  }
  .lp .hero h1 {
    font-size: 27px;
  }
  .lp .hero .lead {
    font-size: 15px;
  }
  .lp .probe {
    margin-top: 18px;
  }
  .lp .probe-note {
    font-size: 12.5px;
  }
  .lp .now-line {
    font-size: 15px;
  }
  .lp .mcards {
    grid-template-columns: 1fr;
  }
  .lp .row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 12px 2px;
  }
  .lp .row .nm {
    grid-column: 1;
  }
  .lp .row .av {
    grid-column: 2;
    grid-row: 1;
  }
  .lp .row .curve {
    grid-column: 0.33333333;
    grid-row: 2;
  }
  .lp .row .rt {
    grid-column: 0.33333333;
    grid-row: 3;
    text-align: left;
  }
  .lp .day-axis {
    grid-template-columns: 1fr;
  }
  .lp .day-axis .sc {
    grid-column: 1;
  }
  .lp .sec {
    margin: 44px 0;
  }
  .lp .sec-head h2 {
    font-size: 22px;
  }
  .lp .nums {
    margin: 18px auto 20px;
    max-width: 420px;
  }
  .lp .num {
    flex: 0 0 50%;
    max-width: none;
    padding: 10px;
  }
  .lp .num::before {
    display: none;
  }
  .lp .num .n {
    font-size: 23px;
  }
  .lp .map-foot .cities {
    margin-left: 0;
    justify-content: flex-start;
  }
}
