/* =============================================================================
   KARLUSON · сдача стенда (05.12.2026) — оформление правок kl-handover.js
   ========================================================================== */

/* ---------- уведомления ---------- */
.klh-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: #1d2320;
  color: #fff;
  font: 14px/1.35 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: opacity .3s, transform .3s;
}
.klh-toast--err { background: #8d2b24; }
.klh-toast.is-out { opacity: 0; transform: translate(-50%, 8px); }

/* ---------- вход: старая «голая» карточка не показывается, когда открыта единая форма ---------- */
body.klh-auth .lk-login { display: none !important; }

/* ---------- единая форма входа (MAX / Telegram / SMS) ---------- */
body.klh-auth-lock { overflow: hidden; }

.klh-auth {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 14, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.klh-auth__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.klh-auth__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 34px;
  border-radius: 20px 0 0 20px;
  background: radial-gradient(120% 120% at 0% 0%, #24302a 0%, #151b17 60%, #101512 100%);
  color: #eef2ee;
}
.klh-auth__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
}
.klh-auth__logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f0a52a;
  color: #21170a;
  font-weight: 900;
}
.klh-auth__btitle { margin: 18px 0 4px; font-size: 30px; line-height: 1.15; font-weight: 800; color: #ffffff !important; }
.klh-auth__blist { margin: 6px 0 0; padding-left: 18px; color: #c3ccc5; font-size: 13.5px; }
.klh-auth__blist li { margin-bottom: 8px; }
.klh-auth__bnote { margin-top: auto; color: #8f9b93; font-size: 12.5px; }

.klh-auth__card { position: relative; padding: 34px 34px 26px; }
.klh-auth__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #5b6672;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.klh-auth__x:hover { background: #e6e9ec; }
.klh-auth__title { margin: 4px 0 4px; font-size: 24px; font-weight: 800; color: #17201b; }
.klh-auth__sub { margin: 0 0 18px; color: #6b7580; font-size: 13px; }
.klh-auth__lbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #4b5563; }
.klh-auth__chans { display: flex; gap: 8px; }
.klh-auth__chan {
  flex: 1 1 0;
  padding: 9px 8px;
  border: 1.5px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  color: #313a44;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.klh-auth__chan:hover { border-color: #f0a52a; }
.klh-auth__chan.is-on { border-color: #f0a52a; background: #fff7e8; color: #8a5a10; }
.klh-auth__hint { margin: 8px 0 14px; color: #7b8492; font-size: 12.5px; }
.klh-auth__f { display: block; margin-bottom: 12px; }
.klh-auth__f span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #4b5563; }
.klh-auth__f input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1.5px solid #d8dde3;
  border-radius: 10px;
  background: #fff;
  color: #17201b;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.klh-auth__f input:focus { border-color: #f0a52a; box-shadow: 0 0 0 3px rgba(240, 165, 42, .18); }
.klh-auth__coderow { display: grid; grid-template-columns: 1fr 136px; gap: 10px; align-items: end; }
.klh-auth__f--code { margin-bottom: 12px; }
.klh-auth__send {
  height: 42px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 10px;
  background: #f1f3f5;
  color: #313a44;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.klh-auth__send:hover { background: #e7eaee; }
.klh-auth__send:disabled { opacity: .6; cursor: default; }
.klh-auth__go {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: #f0a52a;
  color: #21170a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.klh-auth__go:hover { background: #e59a1f; }
.klh-auth__go:disabled { opacity: .65; cursor: default; }
.klh-auth__msg {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12.5px;
}
.klh-auth__msg.is-ok { background: #e8f6ee; color: #1f6b3d; }
.klh-auth__msg.is-err { background: #fdecea; color: #96271f; }
.klh-auth__demobox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbf6ea;
  color: #7a6335;
  font-size: 12px;
}
.klh-auth__demo {
  padding: 5px 10px;
  border: 1px solid #e4d3a9;
  border-radius: 8px;
  background: #fff;
  color: #6b531f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.klh-auth__demo:hover { border-color: #f0a52a; }
.klh-auth__foot { margin: 14px 0 0; color: #8a929b; font-size: 12px; }
.klh-auth__foot a { color: #a0611a; }

/* ---------- анкета курьера отдельным экраном ---------- */
.klh-asp {
  position: fixed;
  inset: 0;
  z-index: 3400;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #f4f6f3;
  font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.klh-asp__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e4e8e3;
}
.klh-asp__brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .02em; color: #17201b; }
.klh-asp__brand span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: #f0a52a; color: #21170a; font-weight: 900;
}
.klh-asp__back {
  padding: 8px 12px;
  border: 1.5px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  color: #2b333c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.klh-asp__back:hover { border-color: #f0a52a; }
.klh-asp__body { padding: 20px; }
.klh-asp__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.klh-asp__wrap .lk-card { background: #fff; border: 1px solid #e4e8e3; border-radius: 14px; }
.klh-asp__wrap .lk-card__body { padding: 16px 18px; }
.klh-asp__wrap .lk-card__head { padding: 14px 18px 0; }
.klh-asp__wrap .lk-card__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #17201b; }

@media (max-width: 860px) {
  .klh-asp__wrap { grid-template-columns: 1fr; }
  .klh-asp__body { padding: 14px; }
  .klh-asp__brand { font-size: 13px; }
}

@media (max-width: 860px) {
  .klh-auth { padding: 0; }
  .klh-auth__title { padding-right: 44px; }
  .klh-auth__panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
  .klh-auth__brand { display: none; }
  .klh-auth__card { padding: 26px 20px 22px; }
  .klh-auth__coderow { grid-template-columns: 1fr 118px; }
}

/* ---------- анкета курьера ---------- */
.klh-note {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.45;
}
.klh-form { display: block; }
.klh-f { display: block; margin-bottom: 10px; }
.klh-f__l {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #4b5563;
}
.klh-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.klh-vehicle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.klh-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
}
.klh-check input { width: 16px; height: 16px; accent-color: #f0a52a; }
.klh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.klh-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13.5px;
  line-height: 1.4;
}
.klh-status--ok { background: #e8f6ee; color: #1f6b3d; }
.klh-status--err { background: #fdecea; color: #96271f; }

/* плитки документов */
.klh-docs { display: grid; gap: 10px; }
.klh-doc {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "thumb body" "thumb st";
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1.5px dashed #d6d9df;
  border-radius: 12px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.klh-doc:hover { border-color: #f0a52a; background: #fffdf7; }
.klh-doc.is-on { border-style: solid; border-color: #57b566; background: #f5fbf7; }
.klh-doc__thumb {
  grid-area: thumb;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #eef0f3;
  color: #9aa2ad;
  font-size: 22px;
  overflow: hidden;
}
.klh-doc.is-on .klh-doc__thumb { background: #e6f4ea; color: #2f8f4e; }
.klh-doc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.klh-doc__body { grid-area: body; align-self: center; min-width: 0; }
.klh-doc__name { display: block; font-size: 13.5px; font-weight: 600; color: #1f2530; }
.klh-doc__hint { display: block; margin-top: 2px; font-size: 12.5px; color: #7b8492; }
.klh-doc__req { display: inline-block; margin-top: 5px; font-size: 11.5px; color: #a0611a; }
.klh-doc__req--opt { color: #8a919c; }
.klh-doc__st { grid-area: st; font-size: 12px; color: #6b7280; }
.klh-doc.is-on .klh-doc__st { color: #2f8f4e; }
.klh-progress { margin: 12px 0 0; font-size: 12.5px; color: #6b7280; }
.klh-progress.is-ok { color: #2f8f4e; font-weight: 600; }

/* ---------- главная: мобильные поправки ---------- */
@media (max-width: 860px) {
  /* последний баннер больше не обрезается и не заезжает на футер */
  #banner.banner,
  section.banner.k-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 18px 16px 22px !important;
    margin-bottom: 18px;
  }
  #banner .banner__inner,
  .banner__inner {
    display: block !important;
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
  }
  #banner .banner__title,
  .banner__title { display: block; font-size: 22px; line-height: 1.2; position: static !important; }
  #banner .banner__text,
  .banner__text { margin-top: 6px; position: static !important; }
  #banner .banner__art,
  .banner__art {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 12px;
    text-align: center;
  }
  #banner .banner__art img,
  .banner__art img {
    position: static !important;
    display: inline-block;
    max-width: 100%;
    width: 120px !important;
    height: auto !important;
    object-fit: contain;
  }
  /* фото в информационных блоках не должно накрывать текст и растягивать пустоту */
  .info__section img { max-width: 100%; height: auto !important; }
  /* на телефоне в последнем баннере оставляем только текст: картинка перекрывала заголовок */
  #banner .banner__inner { overflow: visible !important; }
  #banner .banner__art { display: none !important; }
  #banner .banner__title, #banner .banner__text { position: relative !important; z-index: 3; }
  /* карточки с абсолютными картинками не выпускают их за свои границы */
  .info__section { overflow: hidden; }
  /* баннер всегда выше соседних блоков, чтобы чужие картинки его не накрывали */
  #banner.banner {
    position: relative !important;
    z-index: 4 !important;
    background: #fff !important;
    border-radius: 16px;
    overflow: hidden;
  }
  /* декоративный фон-чертёж перекрывал текст баннера — на телефоне убираем */
  #banner::before, #banner::after,
  #banner .banner__inner::before, #banner .banner__inner::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
  #banner .banner__inner { background: #fff !important; }
  #banner .banner__title { color: #17201b !important; }
  #banner .banner__text { color: #4b5563 !important; }
  /* карточки-блоки не должны держать фиксированную высоту и пустоту */
  .info__section { height: auto !important; min-height: 0 !important; padding-top: 18px; padding-bottom: 18px; }
  .info__section .geo__card, .info__section .courier__card, .info__section .pay__card,
  .info__section .info__card { min-height: 0 !important; height: auto !important; }
  /* любая «карточка» внутри информационных блоков не держит пустую высоту */
  .info__section [class*="card"] { min-height: 0 !important; height: auto !important; }
  .info__section [class*="__art"] { max-height: 260px !important; }
  .info__section [class*="__art"] img { max-height: 260px !important; width: auto !important; }

  /* иллюстрации-3D встают в поток, не перекрывают калькулятор */
  .hero-scene, .kl7-hero-v2 { position: relative !important; z-index: 0 !important; }

  /* логотипы оплаты не растягиваются в пустое поле */
  [class*="pay"] img { max-width: 100%; height: auto; }

  .klh-row2, .klh-vehicle { grid-template-columns: 1fr; }
  .klh-doc { grid-template-columns: 56px 1fr; }
  .klh-doc__thumb { width: 56px; height: 56px; }
}
