/* FP Scout.ru · final revision 06 ------------------------------------ */
.brand__logo,
.brand__logo--footer { width: 230px; max-width: 100%; }

/* Bidder: video is the only product evidence in this module. */
.video-showcase {
  position: relative;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(130, 158, 218, .28);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  box-shadow: 0 30px 80px rgba(0, 16, 55, .28);
  overflow: hidden;
}
.video-showcase::before {
  content: "";
  position: absolute;
  inset: -35% 15% 55% -10%;
  background: radial-gradient(circle, rgba(65, 112, 255, .38), transparent 68%);
  pointer-events: none;
}
.video-showcase__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px 10px;
  color: #d6e1fb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
}
.video-showcase__bar span:first-child::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: #FF8A34;
  box-shadow: 0 0 0 5px rgba(255,138,52,.14);
}
.video-showcase__duration {
  color: #9fb1d5;
  font-size: 10px;
}
.bidder-inline-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1922 / 1042;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: #071127;
  object-fit: contain;
}
.video-showcase__caption {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 4px 0;
  color: #c3d0eb;
  font-size: 12px;
  line-height: 1.55;
}
.video-showcase__caption::before {
  content: "▶";
  flex: 0 0 auto;
  color: #7fa0ff;
  font-size: 11px;
  line-height: 1.7;
}

/* A local consent block belongs to every Telegram action. */
.telegram-action {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.telegram-action > .button { width: 100%; }
.telegram-consent {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 12px 13px;
  border: 1px solid rgba(36, 92, 255, .16);
  border-radius: 13px;
  background: rgba(245, 248, 253, .84);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.telegram-consent label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 32px;
  color: #4d5b72;
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}
.telegram-consent label > span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}
.telegram-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary-600);
}
.telegram-consent a {
  color: var(--primary-700);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.telegram-consent__message {
  margin: 0;
  color: #b5261c;
  font-size: 11px;
  font-weight: 800;
}
.telegram-consent.is-attention {
  border-color: rgba(194, 58, 45, .48);
  background: #fff7f5;
  box-shadow: 0 0 0 4px rgba(194, 58, 45, .08);
}
.telegram-consent.is-complete {
  border-color: rgba(16, 132, 87, .3);
  background: #f4fbf7;
}
.telegram-action .button[aria-disabled="true"] {
  opacity: .72;
}

.cta-panel .telegram-consent,
.cinematic-panel .telegram-consent,
.site-footer .telegram-consent {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.cta-panel .telegram-consent label,
.cinematic-panel .telegram-consent label,
.site-footer .telegram-consent label { color: #e2e9f8; }
.cta-panel .telegram-consent a,
.cinematic-panel .telegram-consent a,
.site-footer .telegram-consent a { color: #fff; }
.cta-panel__actions .telegram-action { max-width: 420px; }
.price-card .telegram-action { margin-top: auto; }
.price-card > .telegram-action .button { margin-top: 0; }
.trial-card__action { min-width: min(100%, 310px); }
.trial-card__action .telegram-action {
  min-width: min(100%, 360px);
}
.trial-card__action .telegram-consent {
  padding: 13px 14px;
}
.trial-card__action .telegram-consent label {
  min-height: 0;
  align-items: start;
  text-align: left;
}
.trial-card__action .telegram-consent__message {
  text-align: left;
}

.contact-card .telegram-action { margin-top: auto; }
.contact-card .telegram-action .button { margin-top: 0; }

/* Cookie consent from the approved cookie document. */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid rgba(142,170,255,.32);
  border-radius: 18px;
  color: #eaf0ff;
  background: rgba(10, 22, 49, .96);
  box-shadow: 0 22px 70px rgba(0, 8, 28, .38);
  backdrop-filter: blur(18px);
}
.cookie-banner.is-visible { display: grid; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.55; }
.cookie-banner a { color: #fff; font-weight: 800; text-underline-offset: 3px; }
.cookie-banner .button { min-width: 76px; }

/* More complete documentation/download layouts. */
.docs-layout--wide { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.docs-toc { max-height: calc(100dvh - 120px); overflow: auto; }
.prose .doc-subsection { margin-top: 28px; }
.prose .doc-subsection h3 { margin: 0 0 11px; font-size: 22px; }
.prose .doc-subsection h4 { margin: 20px 0 8px; font-size: 17px; }
.prose .doc-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.prose th { color: #24314a; background: #eef3fb; font-weight: 850; }
.prose tr:last-child td { border-bottom: 0; }
.step-list { display: grid; gap: 12px; margin: 20px 0; }
.step-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-card > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--primary-600); font-family: var(--font-mono); font-weight: 900; }
.step-card h3, .step-card h4 { margin: 0 0 5px; }
.step-card p { margin: 0; }
.download-platform { scroll-margin-top: 100px; }
.download-note { margin-top: 20px; }

/* Legal documents mirror the approved live versions without condensation. */
.legal-version { margin: 10px 0 0; color: #b9c8e7; font-family: var(--font-mono); font-size: 11px; }
.legal-lead { font-size: 17px; line-height: 1.7; }
.legal-meta-grid { display: grid; gap: 12px; }
.legal-meta-grid div { display: grid; gap: 3px; }
.legal-meta-grid span { color: #91a3c6; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.legal-meta-grid strong { color: #fff; font-size: 13px; }
.prose--legal section { scroll-margin-top: 100px; }
.prose--legal p, .prose--legal li { font-size: 14px; line-height: 1.75; }
.prose--legal h2 { margin-top: 46px; }

.site-footer__links { flex-wrap: wrap; }

@media (max-width: 980px) {
  .brand__logo, .brand__logo--footer { width: 188px; }
  .docs-layout--wide { grid-template-columns: 1fr; }
  .docs-toc { max-height: none; }
  .video-showcase { border-radius: 22px; }
}
@media (max-width: 760px) {
  .brand__logo, .brand__logo--footer { width: 172px; }
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 16px;
    border-radius: 16px;
  }
  .cookie-banner .button { width: 100%; }
  .telegram-consent label { font-size: 10.5px; }
  .video-showcase { padding: 9px; }
  .video-showcase__bar { min-height: 39px; padding-bottom: 7px; font-size: 9px; }
  .bidder-inline-video { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-consent, .cookie-banner { transition: none; }
}

/* FP Scout.ru · final revision 06
   Full layout correction after local Telegram consent blocks were introduced.
   These overrides intentionally run last in the cascade. */

/* Composition safeguards ------------------------------------------------ */
.section-heading > *,
.roadmap > *,
.cta-panel > *,
.trial-card > *,
.contact-layout > *,
.contact-grid > *,
.price-card > * { min-width: 0; }

.section-heading h2,
.section-heading h3,
.roadmap h3,
.roadmap h4 {
  text-wrap: balance;
}

/* Roadmap is a real card: its content must not touch or escape the radius. */
.cinematic-page .roadmap {
  box-sizing: border-box;
  overflow: hidden;
  padding: clamp(32px, 3.25vw, 48px);
}
.cinematic-page .roadmap .section-heading--compact {
  margin-bottom: 30px;
}
.cinematic-page .roadmap .section-heading--compact h3 {
  max-width: 760px;
  padding-inline-start: 2px;
}
.cinematic-page .roadmap .section-heading--compact > p {
  align-self: center;
  justify-self: end;
  max-width: 470px;
}
.cinematic-page .roadmap__grid article {
  min-width: 0;
}

/* Consent controls ------------------------------------------------------ */
.telegram-action {
  align-content: start;
  gap: 10px;
}
.telegram-action > .button {
  min-height: 50px;
}
.telegram-consent {
  box-sizing: border-box;
  gap: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 254, .94);
}
.telegram-consent label {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 2px 0;
  align-items: start;
  color: #44516a;
  font-size: 11.5px;
  line-height: 1.5;
}
.telegram-consent label + label {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 92, 255, .11);
}
.telegram-consent input {
  width: 19px;
  height: 19px;
  margin: 0;
}
.telegram-consent label > span {
  padding-top: 1px;
  overflow-wrap: break-word;
}
.telegram-consent a {
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.telegram-action--single-consent .telegram-consent {
  min-height: 0;
}
.telegram-action--single-consent .telegram-consent label {
  padding-block: 1px;
}
.telegram-action .button[aria-disabled="true"] {
  opacity: .82;
}

/* Keep purchase confirmations equal and tidy across all tariff cards. */
.price-card .telegram-consent {
  min-height: 132px;
}
.price-card .telegram-consent label {
  font-size: 10.75px;
  line-height: 1.42;
}
.price-card--featured .telegram-consent {
  border-color: rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .09);
}
.price-card--featured .telegram-consent label {
  color: #e5ecfb;
}
.price-card--featured .telegram-consent label + label {
  border-top-color: rgba(255, 255, 255, .14);
}
.price-card--featured .telegram-consent a {
  color: #fff;
}
.price-card--featured .telegram-consent.is-complete {
  border-color: rgba(91, 220, 159, .45);
  background: rgba(24, 115, 76, .22);
}
.price-card--featured .telegram-consent.is-attention {
  border-color: rgba(255, 153, 122, .6);
  background: rgba(134, 42, 30, .24);
}

/* Mid-page CTA: both actions now share one clear vertical rhythm. */
.cta-panel__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 540px);
  margin-top: 28px;
}
.cta-panel__actions > .button,
.cta-panel__actions > .telegram-action {
  width: 100%;
  max-width: none;
}
.cta-panel__actions > .button {
  min-height: 54px;
  justify-content: center;
}
.cta-panel__actions .telegram-consent {
  border-color: rgba(255,255,255,.22);
  background: rgba(6, 26, 76, .18);
}
.cta-panel__actions .telegram-consent label {
  color: #eef3ff;
}
.cta-panel__actions .telegram-consent a {
  color: #fff;
}
.cta-panel__actions .telegram-action {
  max-width: none;
}

/* Trial CTA: compact, readable and visually tied to the 48-hour offer. */
.trial-card {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 42px 54px;
}
.trial-card__action {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  justify-self: end;
  text-align: left;
}
.trial-card__action .telegram-action {
  width: 100%;
  min-width: 0;
}
.trial-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px !important;
  padding: 12px 14px 12px 20px;
  border-radius: 16px;
  text-align: left;
}
.trial-cta__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}
.trial-cta__meta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.trial-card__action .telegram-consent {
  padding: 13px 14px;
}
.trial-card__action small {
  margin-top: 10px;
  padding-left: 2px;
  text-align: left;
  line-height: 1.45;
}

/* Contact cards use only the consent relevant to opening a bot/support. */
.contact-card {
  min-height: 350px;
}
.contact-card .telegram-consent {
  min-height: 0;
  background: rgba(255,255,255,.92);
}
.contact-card .telegram-consent label {
  color: #39465f;
  font-size: 11.25px;
}
.contact-card .telegram-consent a {
  color: #1747d7;
}

@media (max-width: 980px) {
  .cinematic-page .roadmap .section-heading--compact > p {
    justify-self: start;
    max-width: 760px;
  }
  .trial-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .trial-card__action {
    width: min(100%, 520px);
    max-width: 520px;
    justify-self: start;
  }
  .price-card .telegram-consent {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .cinematic-page .roadmap {
    margin-top: 46px;
    padding: 26px 22px;
    border-radius: 26px;
  }
  .cinematic-page .roadmap .section-heading--compact {
    margin-bottom: 24px;
  }
  .cinematic-page .roadmap .section-heading--compact h3 {
    padding-inline-start: 0;
  }
  .cta-panel__actions {
    width: 100%;
    margin-top: 24px;
  }
  .telegram-consent label,
  .contact-card .telegram-consent label {
    font-size: 11px;
  }
  .telegram-consent input {
    width: 20px;
    height: 20px;
  }
  .trial-card__action {
    width: 100%;
    max-width: none;
  }
  .trial-cta {
    min-height: 66px !important;
    padding-inline: 16px 12px;
  }
  .trial-card__action small {
    font-size: 10px;
  }
  .contact-card {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .cinematic-page .roadmap {
    padding: 22px 18px;
  }
  .trial-cta {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 74px !important;
    text-align: center;
  }
  .trial-cta__meta {
    justify-self: center;
    min-height: 26px;
    padding: 5px 9px;
  }
}

/* FP Scout.ru · revision 06.1
   Final visual correction after the offer/autorenewal checkbox was removed
   from every Telegram action. */

/* One consent row must stay compact and must never stretch its parent card. */
.telegram-action--single-consent .telegram-consent,
.price-card .telegram-consent,
.contact-card .telegram-consent {
  min-height: 0;
}
.telegram-action--single-consent .telegram-consent label {
  min-height: 0;
}

/* Pricing: keep all three CTA areas on the same baseline without a bulky
   nested form card. */
.price-card .telegram-action {
  gap: 9px;
}
.price-card .telegram-consent {
  padding: 11px 12px;
}
.price-card .telegram-consent label {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  font-size: 10.5px;
  line-height: 1.42;
}
.price-card .telegram-consent input {
  width: 18px;
  height: 18px;
}

/* Contact cards are dark product surfaces; the consent row follows the same
   surface instead of looking like an unrelated white form pasted inside. */
.contact-card .telegram-consent {
  border-color: rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .075);
}
.contact-card .telegram-consent label {
  color: #e5ecfb;
}
.contact-card .telegram-consent a {
  color: #fff;
}
.contact-card .telegram-consent.is-complete {
  border-color: rgba(91, 220, 159, .42);
  background: rgba(24, 115, 76, .22);
}
.contact-card .telegram-consent.is-attention {
  border-color: rgba(255, 153, 122, .58);
  background: rgba(134, 42, 30, .24);
}

/* Redesigned mid-page “Попробовать бесплатно” action. */
.cta-start-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 66px !important;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 16px;
  color: #1747d7;
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  box-shadow: 0 16px 34px rgba(8, 35, 103, .20);
  text-align: left;
}
.cta-start-button:hover {
  color: #123cb9;
  background: #fff;
  box-shadow: 0 20px 42px rgba(8, 35, 103, .26);
}
.cta-start-button__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}
.cta-start-button__meta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(36, 92, 255, .16);
  border-radius: 999px;
  color: #245cff;
  background: rgba(36, 92, 255, .08);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

/* Keep the consent note, button and hint as one aligned column. */
.trial-card__action .telegram-action,
.cta-panel__actions .telegram-action {
  align-items: stretch;
}
.trial-card__action small {
  display: block;
  width: 100%;
}

@media (max-width: 760px) {
  .price-card .telegram-consent label {
    font-size: 10.75px;
  }
  .cta-start-button {
    min-height: 66px !important;
    padding-inline: 16px 12px;
  }
}

@media (max-width: 420px) {
  .cta-start-button {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 74px !important;
    text-align: center;
  }
  .cta-start-button__meta {
    justify-self: center;
    min-height: 26px;
    padding: 5px 9px;
  }
}

/* FP Scout.ru · revision 06.2
   Final inner-page stability pass. Mobile contents wrap inside the page
   instead of placing off-screen chips in a horizontal rail. */
@media (max-width: 760px) {
  .docs-toc,
  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    width: 100%;
    max-height: none;
    padding: 14px;
    border: 1px solid #dce4f1;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(17, 35, 71, .07);
    backdrop-filter: blur(14px);
    scroll-snap-type: none;
  }
  .docs-toc > strong,
  .legal-toc > strong {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 4px;
  }
  .docs-toc a,
  .legal-toc a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    background: #fff;
    overflow-wrap: anywhere;
    white-space: normal;
    scroll-snap-align: none;
  }
}

@media (max-width: 430px) {
  .docs-toc,
  .legal-toc {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

/* Minimum interactive target on download instructions. */
.copy-line button {
  min-width: 96px;
  min-height: 44px;
  padding: 10px 13px;
}



/* FP Scout.ru · Revision 08 — context-aware legal confirmations
   Five purchase/trial actions use two confirmations. Both actions that lead
   directly to @fp_scout_supportbot use only the personal-data confirmation. */
.telegram-action--dual-consent {
  align-content: start;
  min-width: 0;
}
.telegram-action--dual-consent .telegram-consent {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
}
.telegram-action--dual-consent .telegram-consent label + label {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 92, 255, .11);
}
.telegram-action--dual-consent .telegram-consent__message {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(194, 58, 45, .12);
  line-height: 1.4;
}
/* Keep tariff CTA bottoms aligned on desktop, while allowing natural height
   on narrower layouts where cards stack. */
.price-card .telegram-action--dual-consent .telegram-consent {
  min-height: 132px;
}
.price-card--featured .telegram-action--dual-consent .telegram-consent label + label {
  border-top-color: rgba(255, 255, 255, .14);
}
/* The intermediate blue CTA must not stretch or shift when its validation
   message appears. The action remains a self-contained column. */
.cta-panel__actions .telegram-action--dual-consent {
  display: grid;
  grid-template-rows: auto auto;
  width: 100%;
  max-width: none;
}
.cta-panel__actions .telegram-action--dual-consent .telegram-consent {
  min-height: 0;
}
/* Trial and contact cards grow vertically without pushing content sideways. */
.trial-card__action .telegram-action--dual-consent,
.contact-card .telegram-action--dual-consent {
  width: 100%;
  min-width: 0;
}
.trial-card__action .telegram-action--dual-consent .telegram-consent,
.contact-card .telegram-action--dual-consent .telegram-consent {
  min-height: 0;
}
/* The explicit Technical Support card remains compact with one row. */
.contact-card .telegram-action--single-consent .telegram-consent {
  min-height: 0;
}
@media (max-width: 980px) {
  .price-card .telegram-action--dual-consent .telegram-consent {
    min-height: 0;
  }
}
@media (max-width: 420px) {
  .telegram-action--dual-consent .telegram-consent {
    padding: 12px;
  }
  .telegram-action--dual-consent .telegram-consent label + label {
    margin-top: 8px;
    padding-top: 9px;
  }
}

/* Keep the mobile quick-action out of the way while a local consent block
   is showing a validation state. */
body.consent-attention .mobile-trial-bar {
  transform: translateY(112%);
  opacity: 0;
  pointer-events: none;
}
