/* =========================================================
   Delow — SEO анализ page: graphics on top of service.css
   ========================================================= */

/* ---------- Hero: a report whose rows arrive and sort by importance ---------- */
.audit { --row: 54px; --gap: 8px; position: relative; padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.audit__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-right: 56px; font-weight: 600; font-size: .9688rem; }
.audit__head .ico { width: 18px; height: 18px; color: var(--accent); }
.audit__state { padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.audit.is-scan .audit__state { background: var(--surface-2); color: var(--muted); }
.audit__list { position: relative; margin-top: 16px; height: calc(var(--row) * 5 + var(--gap) * 4); }
.audit__row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--row);
  display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 14px; background: #fff; font-size: .9375rem; font-weight: 500;
  transform: translateY(calc(var(--slot) * (var(--row) + var(--gap))));
  transition: transform .7s var(--ease-out), opacity .4s ease;
}
.audit__row .sev { flex: none; }
.audit__b { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.audit__b--hi { background: #fee2e2; color: #b91c1c; }
.audit.is-scan .audit__row:not(.is-shown) { opacity: 0; }
.audit.is-reset .audit__row { transition: none; }
@media (max-width: 559px) {
  .audit { --row: 42px; --gap: 5px; padding: 14px; border-radius: 22px; }
  .audit__head { font-size: .875rem; margin-right: 48px; }
  .audit__list { margin-top: 12px; }
  .audit__row { padding: 0 12px; font-size: .8438rem; gap: 10px; }
}
@media (min-width: 1024px) { .audit { --row: 60px; padding: 24px; } }

/* ---------- Text bits ---------- */
.bul { display: grid; gap: 6px; margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.bul li { position: relative; padding-left: 20px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc__h3 { margin-top: 64px; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); letter-spacing: -.03em; }
.doc code, .tip code { padding: 2px 7px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .9em; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* ---------- Sticky graphic figures ---------- */
.crawl { display: grid; gap: 8px; width: min(100%, 380px); }
.crawl li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.crawl code { background: none; box-shadow: none; padding: 0; font-size: .875rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st { margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.st--ok { background: #dcfce7; color: #15803d; }
.st--bad { background: #fee2e2; color: #b91c1c; }
.st--mid { background: #fef3c7; color: #a16207; }

.serp { display: grid; gap: 10px; width: min(100%, 380px); }
.serp__item { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.serp__url { font-size: .8125rem; color: var(--muted); }
.serp__t { font-weight: 600; color: #1a0dab; }
.serp__item.is-dup { box-shadow: 0 0 0 1.5px #f59e0b; }
.serp__flag { justify-self: start; margin: -2px 0 2px; padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #a16207; font-size: .75rem; font-weight: 700; }
.serp__item.is-missing { background: transparent; border: 2px dashed var(--line); }
.serp__item.is-missing .serp__t { color: var(--ink); }

.depth { display: grid; gap: 8px; width: min(100%, 380px); }
.depth li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: calc(var(--l) * 18px); padding: 11px 14px; border-radius: 12px; background: #fff; font-weight: 600; font-size: .9375rem; }
.depth em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); }
.depth li.is-bad { box-shadow: 0 0 0 1.5px #dc2626; }
.depth li.is-bad em { color: #b91c1c; }

.nap-t { width: min(100%, 380px); border-collapse: separate; border-spacing: 0 6px; font-size: .875rem; }
.nap-t thead th { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 0 8px; text-align: center; }
.nap-t tbody th { padding: 12px 14px; border-radius: 12px 0 0 12px; background: #fff; text-align: left; font-weight: 600; white-space: nowrap; }
.nap-t td { padding: 12px 8px; background: #fff; text-align: center; font-weight: 700; }
.nap-t td:last-child { border-radius: 0 12px 12px 0; }
.nap-t .ok { color: #15803d; }
.nap-t .bad { color: #b91c1c; background: #fee2e2; }

html.js .fig.is-active .crawl li, html.js .fig.is-active .serp > *, html.js .fig.is-active .depth li, html.js .fig.is-active .nap-t tbody tr { animation: rise .5s var(--ease-out) both; }
html.js .fig.is-active .crawl li:nth-child(2), html.js .fig.is-active .serp > :nth-child(2), html.js .fig.is-active .depth li:nth-child(2), html.js .fig.is-active .nap-t tbody tr:nth-child(2) { animation-delay: .1s; }
html.js .fig.is-active .crawl li:nth-child(3), html.js .fig.is-active .serp > :nth-child(3), html.js .fig.is-active .depth li:nth-child(3), html.js .fig.is-active .nap-t tbody tr:nth-child(3) { animation-delay: .2s; }
html.js .fig.is-active .crawl li:nth-child(4), html.js .fig.is-active .serp > :nth-child(4), html.js .fig.is-active .depth li:nth-child(4) { animation-delay: .3s; }
html.js .fig.is-active .crawl li:nth-child(5), html.js .fig.is-active .depth li:nth-child(5) { animation-delay: .4s; }

/* ---------- What we check and why (3-column table; cards on phones) ---------- */
.checks { margin-top: 24px; }
.checks__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.checks__table thead th { padding: 0 18px 14px; text-align: left; font-size: .875rem; font-weight: 600; color: var(--muted); }
.checks__table tbody th, .checks__table td { padding: 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.checks__table tbody th { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; }
.checks__table td { color: var(--ink-2); }
.checks__table td:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 767px) {
  .checks__table thead { display: none; }
  .checks__table, .checks__table tbody, .checks__table tr { display: block; }
  .checks__table tr { padding: 16px 18px; border-radius: 18px; background: var(--surface); }
  .checks__table tr + tr { margin-top: 8px; }
  .checks__table tbody th, .checks__table td { display: block; padding: 0; border: 0; }
  .checks__table td { margin-top: 10px; }
  .checks__table td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
}

/* ---------- Sofia: area, city, country ---------- */
.rings { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 26px; background: var(--surface); overflow: hidden; }
.rings__c { position: absolute; left: 50%; top: 54%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; display: flex; justify-content: center; }
.rings__c b { margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; height: max-content; }
.rings__c--3 { width: 92%; background: rgba(203,169,197,.18); box-shadow: 0 0 0 1px rgba(74,37,69,.12) inset; }
.rings__c--2 { width: 64%; background: rgba(203,169,197,.3); box-shadow: 0 0 0 1px rgba(74,37,69,.16) inset; }
.rings__c--1 { width: 36%; background: rgba(203,169,197,.55); box-shadow: 0 0 0 1px rgba(74,37,69,.22) inset; }
.rings__c--1 b { background: var(--ink); color: #fff; margin-top: -12px; }
.rings__you { position: absolute; left: 50%; top: 54%; translate: -50% -80%; color: var(--accent); }
.rings__you .ico { width: 36px; height: 36px; fill: var(--accent); stroke: #fff; }
html.js .split__fig.is-in .rings__c { animation: ring-in .8s var(--ease-out) both; }
html.js .split__fig.is-in .rings__c--2 { animation-delay: .15s; }
html.js .split__fig.is-in .rings__c--1 { animation-delay: .3s; }
@keyframes ring-in { from { opacity: 0; scale: .6; } }

/* ---------- What you get: list + one report point ---------- */
.deliver { display: grid; gap: 32px; margin-top: 4px; }
.deliver__list { display: grid; gap: 10px; margin-top: 22px; }
.deliver__list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--surface); font-weight: 500; line-height: 1.45; }
.deliver__list .icon-box { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.deliver__list .icon-box .ico { width: 19px; height: 19px; }
.deliver__cap { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 14px; }
.point { position: relative; padding: 24px 22px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.point::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: #dc2626; }
.point__no { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.point__fields { display: grid; gap: 14px; }
.point__fields dt { font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.point__fields dd { margin-top: 3px; color: var(--ink); line-height: 1.5; }
.point__prio { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: .875rem; }
@media (min-width: 1200px) { .deliver { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 48px; align-items: start; } .deliver__fig { position: sticky; top: calc(var(--header-h) + 40px); } }

.panel-dark--need { margin-top: 48px; }
.howwe__list--row { grid-template-columns: 1fr; }
@media (min-width: 900px) { .howwe__list--row { grid-template-columns: repeat(3, 1fr); } .howwe__list--row li { align-items: flex-start; flex-direction: column; } }

/* ---------- Scope note ---------- */
.scope__note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px !important; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); color: var(--ink); }
.scope__note .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

/* ---------- When it is worth it ---------- */
.when { display: grid; gap: 12px; margin-top: 32px; }
.when__card { padding: 22px; border-radius: var(--r-card); background: var(--surface); transition: background-color .3s ease, transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.when__card .icon-box { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.when__card .icon-box .ico { width: 22px; height: 22px; }
.when__card .ico--down { transform: scaleY(-1); }
.when__card h3 { margin-top: 16px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.015em; }
.when__card p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .when__card:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); } .when__card:hover .icon-box { background: var(--accent); color: #fff; } }
@media (min-width: 768px) { .when { grid-template-columns: 1fr 1fr; gap: 16px; } .when__card { padding: 26px; } }

/* Tips that are one sentence */
.tip--plain p { grid-row: 1 / 3; margin-top: 0; font-size: 1.0625rem; color: var(--ink); line-height: 1.5; }

/* Related card: ranking mock inside a link */
.rel .viz-rank { max-width: 300px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .audit__row { transition: none; }
  html.js .split__fig.is-in .rings__c { animation: none; }
}
