/* =====================================================
   CYBERINSPECT (подключается после site.css и blog.css)
===================================================== */

/* первый экран и иллюстрация проверки — в product-hero.css (общие с CYBERID) */

/* ---------- почему это важно ---------- */
.risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.risk__card { padding: 36px; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.risk__card:not(.risk__card--dark) { background: var(--surface); }
.risk__card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.risk__num { margin: 0 0 16px; font-size: 76px; line-height: 76px; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--grad-ink) 30%, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.risk__text { margin: 0 0 20px; font-size: 16px; line-height: 24px; }
.risk__src { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.risk__card--dark { justify-content: space-between; gap: 28px; box-shadow: inset 0 0 0 1px rgba(108,196,255,0.22), var(--shadow-lg); }
.risk__card--dark:hover { box-shadow: inset 0 0 0 1px rgba(108,196,255,0.5), var(--shadow-lg); }
.risk__card--dark::before { left: 70%; top: -60%; width: 80%; }
.risk__lead { margin: 0; font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.risk__card--dark .btn { align-self: flex-start; }
.risk__card--dark .btn:hover svg { transform: translateY(3px); }
@media (max-width: 1024px) { .risk { grid-template-columns: 1fr 1fr; } .risk__card--dark { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
@media (max-width: 640px) { .risk { grid-template-columns: 1fr; } .risk__card { padding: 26px; } .risk__num { font-size: 56px; line-height: 58px; } .risk__card--dark { flex-direction: column; align-items: flex-start; } .risk__lead { font-size: 21px; line-height: 28px; } }

/* ---------- сравнение и вывод ---------- */
#what .cmp--old .tile { opacity: 1; color: var(--ink); }
#what .cmp--old .tile svg { color: var(--border-strong); }
.verdict { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; }
.verdict__main, .verdict__who { padding: 36px; border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.verdict__main h3 { margin: 0 0 24px; font-size: 26px; line-height: 34px; letter-spacing: -0.02em; }
.verdict__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.verdict__list li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface-sunken); font-size: 16px; line-height: 22px; font-weight: 600; transition: background 0.3s ease, transform 0.4s var(--ease); }
.verdict__list li:hover { background: var(--accent-soft); transform: translateX(4px); }
.verdict__note { margin: 0; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, var(--accent-soft), var(--surface) 80%); box-shadow: inset 0 0 0 1px var(--accent-line); font-size: 15px; line-height: 22px; font-weight: 600; }
.verdict__who .ind__label { margin-bottom: 18px; }
@media (max-width: 1024px) { .verdict { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .verdict__main, .verdict__who { padding: 24px; } .verdict__main h3 { font-size: 21px; line-height: 28px; } .verdict__list li { grid-template-columns: 1fr; gap: 8px; } .verdict__list .status { justify-self: start; } }

/* ---------- когда подключать ---------- */
.when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.when__card { padding: 32px 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.when__card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.when__card:nth-child(4), .when__card:nth-child(5) { grid-column: span 1; }
.when__num { display: block; margin-bottom: 16px; font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(180deg, var(--brand-blue), rgba(23,162,248,0.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.when__card h3 { margin: 0 0 10px; font-size: 20px; line-height: 26px; }
.when__card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
@media (max-width: 1024px) { .when { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .when { grid-template-columns: 1fr; } .when__card { padding: 24px 22px; } }

/* ---------- 18 направлений ---------- */
.vtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.vtab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: var(--r-pill); cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); font-size: 14px; line-height: 20px; font-weight: 600; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.vtab span { min-width: 24px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 18px; text-align: center; transition: background 0.25s ease, color 0.25s ease; }
.vtab:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.vtab.is-active { background: var(--brand-navy); color: #FFFFFF; box-shadow: 0 10px 24px -12px rgba(8,24,110,0.7); }
.vtab.is-active span { background: var(--brand-blue); color: var(--brand-navy); }
.vectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vec { position: relative; padding: 26px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.vec:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.vec__num { position: absolute; right: 22px; top: 22px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--border-strong); transition: color 0.3s ease; }
.vec:hover .vec__num { color: var(--accent-text); }
.vec h3 { margin: 0 0 10px; padding-right: 40px; font-size: 19px; line-height: 25px; }
.vec h3 small { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.vec p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.vec.is-hidden { display: none; }
.vec.is-shown { animation: vecIn 0.5s var(--ease) both; }
@keyframes vecIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) { .vectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .vectors { grid-template-columns: 1fr; }
  .vtabs { flex-wrap: nowrap; overflow-x: auto; margin: -8px calc(var(--gutter) * -1) 20px; padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .vtabs::-webkit-scrollbar { display: none; }
  .vtab { flex-shrink: 0; }
}

/* ---------- форматы ---------- */
.fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.fmt { display: flex; flex-direction: column; padding: 36px 32px; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.fmt:not(.fmt--main) { background: var(--surface); }
.fmt:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.fmt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fmt .pill { margin: 0 0 20px; }
.fmt__head .pill { margin-bottom: 20px; }
.fmt__badge { margin-bottom: 20px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand-blue); color: var(--brand-navy); font-size: 12px; line-height: 16px; font-weight: 700; }
.fmt__vectors { margin: 0 0 20px; font-size: 16px; line-height: 22px; color: var(--ink-muted); display: flex; align-items: baseline; gap: 10px; }
.fmt__vectors b { font-size: 48px; line-height: 48px; letter-spacing: -0.04em; color: var(--ink); }
.fmt--main .fmt__vectors { color: var(--ink-on-brand-muted); }
.fmt--main .fmt__vectors b { background: linear-gradient(90deg, #FFFFFF, var(--accent-text-on-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fmt__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fmt__list li { position: relative; padding: 9px 12px 9px 38px; border-radius: 12px; background: var(--surface-sunken); font-size: 15px; line-height: 21px; font-weight: 600; }
.fmt__list li::before { content: ""; position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230572B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: inset 0 0 0 1px var(--accent-line); }
.fmt--main .fmt__list li { background: rgba(255,255,255,0.07); color: #E8EEFA; }
.fmt--main .fmt__list li::before { background-color: rgba(23,162,248,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236CC4FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); box-shadow: none; }
.fmt__for { margin: 0 0 24px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.fmt--main .fmt__for { color: var(--ink-on-brand-muted); }
.fmt__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.fmt--main { box-shadow: inset 0 0 0 1px rgba(108,196,255,0.22), var(--shadow-lg); }
.fmt--main:hover { box-shadow: inset 0 0 0 1px rgba(108,196,255,0.5), var(--shadow-lg); }
.fmt--main .fmt__foot { border-color: rgba(255,255,255,0.14); }
.fmt__time { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 13px; line-height: 18px; font-weight: 700; }
.fmt--main .fmt__time { background: rgba(108,196,255,0.16); color: var(--accent-text-on-brand); }
.fmt__price { margin: 14px 0 18px; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
.fmt--main .fmt__price { background: linear-gradient(90deg, #FFFFFF, var(--accent-text-on-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fmt .btn { width: 100%; }
@media (max-width: 1024px) { .fmts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fmt { padding: 26px 22px; } }

/* ---------- логотип в финальном блоке ---------- */
.cta__logo { height: 30px; width: auto; margin: 0 auto 24px; opacity: 0.95; }
@media (max-width: 640px) { .cta__logo { height: 22px; } }

/* длинные подписи в плитках сравнения не должны распирать карточку */
#what .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#what .tile { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { #what .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- почтовые кнопки ---------- */
.i-mail { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover .i-mail { transform: none; }
.copymail { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 8px 14px; border: 0; border-radius: var(--r-pill); cursor: pointer; background: rgba(255,255,255,0.08); color: #FFFFFF; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; transition: background 0.25s ease, color 0.25s ease; }
.copymail svg { width: 16px; height: 16px; }
.copymail:hover { background: rgba(255,255,255,0.16); }
.copymail.is-done { background: var(--ok-soft); color: var(--ok-text); }

/* CYBERINSPECT: supplied logo artwork and findings cards. */
/* Clip transparent source margins without changing or stretching the artwork. */
.inspect-logo { position: relative; overflow: hidden; aspect-ratio: 6369 / 527; height: auto; max-width: 100%; }
.chero__logo.inspect-logo { width: 460px; margin: 0 0 28px; }
.cta__logo.inspect-logo { width: 400px; margin: 0 auto 28px; }
.inspect-logo > img { position: absolute; width: 111.226252%; height: 395.445920%; max-width: none; left: -5.935%; top: -147.628083%; }
@media (max-width: 640px) { .chero__logo.inspect-logo { width: 360px; } }
.inspect-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
@media(max-width:720px){.inspect-findings{grid-template-columns:1fr}}

/* Findings cards use the same component styling as the CYBERID examples. */
.inspect-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.inspect-example {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: var(--r-card); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.35s ease;
}
.inspect-example:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.inspect-example__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inspect-example .task__icon { margin: 0; width: 44px; height: 44px; }
.inspect-example__text { margin: 0; flex: 1; font-size: 15px; line-height: 22px; font-weight: 600; }
.inspect-example__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); letter-spacing: 0.04em; }
.inspect-example__foot svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease), color 0.2s ease; }
.inspect-example:hover .inspect-example__foot svg { transform: translate(2px, -2px); color: var(--accent-text); }
.inspect-example__status { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 1100px) { .inspect-examples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inspect-examples { grid-template-columns: 1fr; } }
.inspect-examples { margin-bottom:32px; scroll-margin-top:100px; }
