/* NoutMarket Passport V2 */

.check-passport.nm-passport-v2{
  position:relative;
  overflow:hidden;
  padding:22px;
  border:1px solid rgba(148,163,184,.34);
  border-radius:32px;
  background:
    linear-gradient(rgba(148,163,184,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(148,163,184,.055) 1px,transparent 1px),
    linear-gradient(145deg,#f8fafc,#eef4fb);
  background-size:22px 22px,22px 22px,auto;
  box-shadow:
    0 32px 90px rgba(2,6,23,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.check-passport.nm-passport-v2:before{
  content:"NOUTMARKET • КОНТРОЛЬ КАЧЕСТВА";
  position:absolute;
  right:-54px;
  top:42px;
  transform:rotate(90deg);
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
  color:rgba(15,23,42,.18);
}

.nm-passport-v2 .passport-top{
  position:relative;
  z-index:3;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
  padding-bottom:14px;
  border-bottom:1px dashed #cbd5e1;
}

.nm-passport-v2 .passport-top span,
.nm-passport-v2 .passport-top > :first-child{
  color:#475569;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.nm-passport-v2 .passport-top b{
  color:#0f172a;
  font-size:34px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.04em;
}

/* главный экран паспорта */

.nm-passport-v2 .passport-screen{
  position:relative;
  height:230px;
  overflow:hidden;
  border-radius:25px;
  background:
    radial-gradient(circle at 18% 18%,rgba(59,130,246,.35),transparent 30%),
    radial-gradient(circle at 90% 82%,rgba(16,185,129,.24),transparent 34%),
    linear-gradient(145deg,#07111f,#102342 60%,#12364a);
  border:1px solid rgba(255,255,255,.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    0 18px 45px rgba(15,23,42,.20);
}

.nm-passport-v2 .passport-screen:after{
  display:none!important;
  content:none!important;
}

.nm-qc-art{
  position:absolute;
  inset:0;
  padding:18px;
  color:#fff;
}

.nm-qc-label{
  position:absolute;
  left:18px;
  top:15px;
  z-index:4;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.13em;
  color:#bae6fd;
}

.nm-qc-number{
  position:absolute;
  right:18px;
  top:14px;
  z-index:4;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  color:#94a3b8;
}

/* рисованный ноутбук */

.nm-qc-laptop{
  position:absolute;
  left:22px;
  top:48px;
  width:64%;
  height:135px;
}

.nm-qc-display{
  position:absolute;
  left:8%;
  top:0;
  width:84%;
  height:108px;
  padding:13px;
  border:3px solid #94a3b8;
  border-bottom-width:5px;
  border-radius:12px 12px 8px 8px;
  background:
    radial-gradient(circle at 75% 10%,rgba(34,197,94,.28),transparent 30%),
    linear-gradient(135deg,#0f172a,#172554);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 16px 30px rgba(0,0,0,.25);
}

.nm-qc-display-title{
  margin-bottom:9px;
  color:#e0f2fe;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}

.nm-qc-progress{
  height:7px;
  margin-bottom:11px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.nm-qc-progress i{
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#38bdf8,#22c55e);
  box-shadow:0 0 14px rgba(34,197,94,.45);
}

.nm-qc-mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}

.nm-qc-mini-grid span{
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:7px;
  background:rgba(255,255,255,.07);
  color:#dbeafe;
  font-size:8px;
  font-weight:800;
}

.nm-qc-mini-grid span:before{
  content:"✓";
  color:#86efac;
  font-weight:1000;
}

.nm-qc-base{
  position:absolute;
  left:0;
  right:0;
  bottom:8px;
  height:13px;
  border-radius:3px 3px 14px 14px;
  background:linear-gradient(180deg,#94a3b8,#475569);
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}

.nm-qc-base:after{
  content:"";
  position:absolute;
  left:44%;
  top:2px;
  width:12%;
  height:3px;
  border-radius:99px;
  background:#cbd5e1;
}

/* печать */

.nm-qc-stamp{
  position:absolute;
  right:17px;
  bottom:18px;
  z-index:5;

  width:122px;
  height:122px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  border:4px solid #ef4444;
  border-radius:50%;

  color:#ef4444;
  background:rgba(15,23,42,.58);

  text-align:center;
  text-transform:uppercase;

  transform:rotate(-10deg);

  box-shadow:
    inset 0 0 0 5px rgba(239,68,68,.16),
    0 10px 28px rgba(0,0,0,.18);
}

.nm-qc-stamp:before{
  content:"";
  position:absolute;
  inset:7px;
  border:1px dashed #ef4444;
  border-radius:50%;
}

.nm-qc-stamp strong{
  position:relative;
  z-index:2;
  font-size:16px;
  line-height:1;
  letter-spacing:.04em;
}

.nm-qc-stamp b{
  position:relative;
  z-index:2;
  margin:5px 0;
  font-size:24px;
  line-height:1;
  color:#fff;
}

.nm-qc-stamp small{
  position:relative;
  z-index:2;
  max-width:80px;
  color:#fecaca;
  font-size:7px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.08em;
}

/* список проверок */

.nm-passport-v2 .passport-list{
  display:grid;
  gap:8px;
  margin-top:15px;
}

.nm-passport-v2 .passport-list span{
  position:relative;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 44px 9px 13px;

  border:1px solid #dbe4f0;
  border-radius:13px;

  color:#334155;
  background:rgba(255,255,255,.82);

  font-size:13px;
  font-weight:800;

  box-shadow:0 6px 16px rgba(15,23,42,.035);
}

.nm-passport-v2 .passport-list span:before{
  content:"✓";
  display:grid;
  place-items:center;

  flex:0 0 24px;
  width:24px;
  height:24px;

  margin-right:9px;

  border-radius:50%;

  color:#047857;
  background:#d1fae5;

  font-weight:1000;
}

.nm-passport-v2 .passport-list span:after{
  content:"OK";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);

  color:#059669;
  font-size:9px;
  font-weight:1000;
  letter-spacing:.08em;
}

.nm-qc-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed #cbd5e1;

  color:#64748b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
}

.nm-qc-footer strong{
  color:#0f172a;
}

@media(max-width:680px){

  .check-passport.nm-passport-v2{
    padding:15px;
    border-radius:24px;
  }

  .nm-passport-v2 .passport-top b{
    font-size:28px;
  }

  .nm-passport-v2 .passport-screen{
    height:205px;
  }

  .nm-qc-laptop{
    left:13px;
    top:48px;
    width:69%;
    height:120px;
  }

  .nm-qc-display{
    height:96px;
    padding:10px;
  }

  .nm-qc-display-title{
    font-size:8px;
  }

  .nm-qc-mini-grid span{
    padding:4px;
    font-size:7px;
  }

  .nm-qc-stamp{
    right:9px;
    bottom:13px;
    width:96px;
    height:96px;
  }

  .nm-qc-stamp strong{
    font-size:12px;
  }

  .nm-qc-stamp b{
    font-size:18px;
  }

  .nm-qc-stamp small{
    max-width:62px;
    font-size:6px;
  }

  .nm-qc-footer{
    display:grid;
  }
}

/* === Passport v2.1 polish === */

.check-hero .grid2{
  grid-template-columns:.92fr 1.08fr;
  gap:44px;
}

.nm-passport-v2 .passport-top b{
  font-size:29px;
  opacity:.88;
}

/* Печать чуть заметнее */
.nm-qc-stamp{
  width:136px;
  height:136px;
  right:15px;
  bottom:12px;
  transform:rotate(-13deg);
  border-width:5px;
}

.nm-qc-stamp strong{
  font-size:18px;
}

.nm-qc-stamp b{
  font-size:27px;
}

.nm-qc-stamp small{
  font-size:7px;
}

/* Статус допуска */
.nm-qc-sale-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  margin-top:12px;
  padding:12px 14px;

  border:1px solid #a7f3d0;
  border-radius:14px;

  background:linear-gradient(135deg,#ecfdf5,#f0fdf4);
}

.nm-qc-sale-status span{
  color:#475569;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.nm-qc-sale-status strong{
  display:flex;
  align-items:center;
  gap:7px;
  color:#047857;
  font-size:14px;
  font-weight:950;
}

.nm-qc-sale-status strong:before{
  content:"✓";
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#10b981;
  color:#fff;
  font-size:13px;
}

/* маленькая "служебная" маркировка */
.nm-passport-v2:after{
  content:"QC-12 • VERIFIED";
  position:absolute;
  left:22px;
  bottom:7px;
  color:rgba(15,23,42,.18);
  font-size:8px;
  font-weight:950;
  letter-spacing:.12em;
}

@media(max-width:980px){
  .check-hero .grid2{
    grid-template-columns:1fr;
  }
}

@media(max-width:680px){
  .nm-qc-stamp{
    width:104px;
    height:104px;
    right:7px;
    bottom:9px;
  }

  .nm-qc-stamp strong{
    font-size:13px;
  }

  .nm-qc-stamp b{
    font-size:19px;
  }

  .nm-qc-sale-status{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* === Passport v2.2 — laptop scale fix === */

/* Чуть больше воздуха внутри тёмного экрана */
.nm-passport-v2 .passport-screen{
  padding:0;
}

/* Уменьшаем сам ноутбук и опускаем аккуратнее */
.nm-qc-laptop{
  left:20px;
  top:56px;
  width:56%;
  height:118px;
}

/* Дисплей ноутбука делаем компактнее */
.nm-qc-display{
  left:9%;
  width:82%;
  height:94px;
  padding:10px 11px;
  border-width:3px;
  border-bottom-width:4px;
}

/* Текст и прогресс чуть компактнее */
.nm-qc-display-title{
  margin-bottom:7px;
  font-size:9px;
}

.nm-qc-progress{
  height:6px;
  margin-bottom:9px;
}

/* Внутренние карточки диагностики плотнее */
.nm-qc-mini-grid{
  gap:4px;
}

.nm-qc-mini-grid span{
  padding:4px 5px;
  font-size:7px;
  border-radius:6px;
}

/* Основание ноутбука чуть уже и ниже */
.nm-qc-base{
  left:4%;
  right:4%;
  bottom:4px;
  height:11px;
}

/* Печать чуть правее и ниже, чтобы не спорила с ноутбуком */
.nm-qc-stamp{
  right:14px;
  bottom:10px;
}

/* Мобильная версия тоже слегка компактнее */
@media(max-width:680px){

  .nm-qc-laptop{
    left:10px;
    top:54px;
    width:62%;
    height:108px;
  }

  .nm-qc-display{
    height:86px;
    padding:8px 9px;
  }

  .nm-qc-display-title{
    font-size:7px;
    margin-bottom:6px;
  }

  .nm-qc-progress{
    margin-bottom:7px;
  }

  .nm-qc-mini-grid span{
    font-size:6px;
    padding:3px 4px;
  }

  .nm-qc-base{
    bottom:3px;
    height:10px;
  }
}

/* === Passport v2.3 — diagnosis screen fit === */

/* Сохраняем хороший масштаб, но даём ноутбуку больше высоты */
.nm-qc-laptop{
  top:50px !important;
  height:138px !important;
}

/* Экран выше — все 6 проверок помещаются полностью */
.nm-qc-display{
  height:112px !important;
  padding:10px 11px !important;
}

/* Компактнее именно содержимое дисплея */
.nm-qc-display-title{
  margin-bottom:6px !important;
  font-size:9px !important;
  line-height:1 !important;
}

.nm-qc-progress{
  height:6px !important;
  margin-bottom:7px !important;
}

.nm-qc-mini-grid{
  grid-template-columns:1fr 1fr !important;
  grid-template-rows:repeat(3,18px) !important;
  gap:4px !important;
}

.nm-qc-mini-grid span{
  min-height:18px !important;
  height:18px !important;
  padding:2px 5px !important;
  font-size:7px !important;
  line-height:1 !important;
  overflow:hidden !important;
}

/* Основание больше ничего не перекрывает */
.nm-qc-base{
  bottom:2px !important;
  height:10px !important;
  left:4% !important;
  right:4% !important;
  z-index:3;
}

@media(max-width:680px){
  .nm-qc-laptop{
    top:48px !important;
    height:126px !important;
  }

  .nm-qc-display{
    height:103px !important;
    padding:8px 9px !important;
  }

  .nm-qc-mini-grid{
    grid-template-rows:repeat(3,16px) !important;
    gap:3px !important;
  }

  .nm-qc-mini-grid span{
    min-height:16px !important;
    height:16px !important;
    font-size:6px !important;
    padding:2px 4px !important;
  }
}

/* NM_CHECK_PASSPORT_MOBILE_FIX_V29
   Fix is isolated to /kak-my-proveryaem/ content; no site-wide layout changes. */
@media (max-width: 767px) {
  body .check-hero {
    padding-top: 24px !important;
    padding-bottom: 22px !important;
  }
  body .check-hero > .wrap.grid2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    min-width: 0 !important;
  }
  body .check-hero > .wrap.grid2 > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Keep all three CTAs, but fit them without horizontal scrolling. */
  body .check-hero .actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }
  body .check-hero .actions > .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 9px 9px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    border-radius: 14px !important;
  }
  body .check-hero .actions > .btn:first-child {
    grid-column: 1 / -1 !important;
  }
  /* Diagnostic promises become two balanced columns instead of clipped pills. */
  body .check-hero .trust-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 12px 0 0 !important;
    overflow: visible !important;
  }
  body .check-hero .trust-strip > span {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    padding: 8px 9px !important;
    min-height: 43px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  /* Passport belongs fully inside the viewport, including its graphic. */
  body .check-hero .check-passport {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }
  body .check-hero .check-passport .passport-top {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 11px !important;
    padding-bottom: 10px !important;
  }
  body .check-hero .check-passport .passport-top > span {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }
  body .check-hero .check-passport .passport-top > b {
    flex: 0 0 auto !important;
    font-size: 24px !important;
  }
  body .check-hero .nm-passport-v2 .passport-screen {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 213px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  body .check-hero .nm-passport-v2 .nm-qc-art {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body .check-hero .nm-qc-laptop {
    left: 8px !important;
    top: 43px !important;
    width: 60% !important;
    max-width: calc(100% - 102px) !important;
    height: 146px !important;
  }
  body .check-hero .nm-qc-display {
    left: 6% !important;
    width: 88% !important;
    height: 120px !important;
    padding: 7px !important;
    border-width: 2px 2px 4px !important;
    border-radius: 8px !important;
  }
  body .check-hero .nm-qc-display-title {
    font-size: 7px !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
    letter-spacing: 0 !important;
  }
  body .check-hero .nm-qc-progress {
    height: 5px !important;
    margin-bottom: 6px !important;
  }
  body .check-hero .nm-qc-mini-grid {
    gap: 3px !important;
  }
  body .check-hero .nm-qc-mini-grid span {
    min-width: 0 !important;
    padding: 3px 2px !important;
    gap: 2px !important;
    font-size: 6.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body .check-hero .nm-qc-base {
    bottom: 9px !important;
  }
  body .check-hero .nm-qc-stamp {
    right: 7px !important;
    bottom: 12px !important;
    width: clamp(70px, 21vw, 91px) !important;
    height: clamp(70px, 21vw, 91px) !important;
    border-width: 3px !important;
    transform: rotate(-9deg) !important;
  }
  body .check-hero .nm-qc-stamp strong {
    font-size: clamp(9px, 2.6vw, 12px) !important;
  }
  body .check-hero .nm-qc-stamp b {
    font-size: clamp(14px, 4vw, 18px) !important;
    margin: 3px 0 !important;
  }
  body .check-hero .nm-qc-stamp small {
    max-width: 62px !important;
    font-size: 5.5px !important;
    line-height: 1.12 !important;
  }
  body .check-hero .nm-passport-v2 .passport-list {
    min-width: 0 !important;
    gap: 7px !important;
    margin-top: 10px !important;
  }
  body .check-hero .nm-passport-v2 .passport-list span {
    min-width: 0 !important;
    padding: 9px 35px 9px 8px !important;
    overflow-wrap: anywhere !important;
  }
  body .check-hero .nm-qc-sale-status,
  body .check-hero .nm-qc-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  body .check-hero .nm-qc-sale-status > *,
  body .check-hero .nm-qc-footer > * {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
}

