@font-face {
  font-family: "TT Positive";
  src: url("assets/fonts/TTPositive-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Positive";
  src: url("assets/fonts/TTPositive-DemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.009em;
  color: #202123;
  --page-background: #ffffff;
  background: var(--page-background);
  font-synthesis: none;
  --red: #ed242c;
  --muted: #6a6c70;
}
* { box-sizing: border-box; }
html { min-height: 100%; overscroll-behavior-y: none; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--page-background); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #ed242c; outline-offset: 5px; }
.card-demo :focus-visible { outline-color: #b71d26; }
.page { max-width: 1248px; padding: 0 40px 24px; margin: 0 auto; }
.intro-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.intro-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; border: 1px solid #d8d9d6; border-radius: 7px; background: transparent; color: #515358; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.intro-button:hover { background: #fff; border-color: #b5b7b3; }
.intro-button:active { background: #eaeae7; }
.intro { padding: 32px 0 26px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "TT Positive", Arial, sans-serif; letter-spacing: normal; }
h1 { font-size: clamp(32px, 3.2vw, 45px); font-weight: 400; line-height: 1.16; }
h1 span { white-space: nowrap; }
.intro p { margin-top: 15px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { min-width: 0; padding: 28px 32px 24px; border-radius: 16px; display: flex; flex-direction: column; }
.card-demo { background: linear-gradient(135deg, #fff3f3 0%, #fffafa 60%, #ffffff 100%); color: #202123; border: 1px solid #edc9cb; box-shadow: 0 8px 24px #a9242c06; }
.card-test-environment { background: #fff; border: 1px solid #dededc; }
.card-top { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; color: #6a6c70; }
.card-demo .eyebrow { color: #a43b43; }
.badge { font-size: 11px; line-height: 1; padding: 7px 10px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge-live { color: #a43b43; background: #fff1f2; border: 1px solid #edc9cb; }
.status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--red); animation: status-pulse 2s ease-in-out infinite; }
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 #ed242c00; }
  50% { opacity: .45; box-shadow: 0 0 0 3px #ed242c18; }
}
.card h2 { font-size: 29px; line-height: 1.15; font-weight: 400; }
.description { margin-top: 13px; font-size: 15px; line-height: 1.45; color: #686a6e; }
.card-demo .description { color: #62646a; }
.benefits { margin: 23px 0 27px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; line-height: 1.3; }
.benefits li { display: flex; align-items: baseline; gap: 12px; }
.benefits li::before { content: ""; width: 10px; height: 6px; border-left: 1.5px solid #979a9f; border-bottom: 1.5px solid #979a9f; transform: translateY(-2px) rotate(-45deg); flex-shrink: 0; }
.card-demo .benefits li::before { border-color: #d6323c; }
/* Буллеты остаются основными; график — компактный акцент справа. */
.demo-details { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 18px; margin: 23px 0 27px; }
.demo-details .benefits { margin: 0; }
.attack-preview { padding: 10px; border: 1px solid #eddddd; border-radius: 8px; background: #ffffffb8; min-width: 0; }
.attack-label { display: block; color: #777980; font-size: 9px; white-space: nowrap; }
.attack-header { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; }
.attack-rate { color: #b72b34; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.attack-rate > span:last-child { color: #85868b; font-size: 9px; }
.attack-chart { display: block; width: 100%; height: 48px; margin-top: 3px; overflow: hidden; }
.attack-grid { fill: none; stroke: #f0e6e7; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.attack-axis { display: flex; justify-content: space-between; margin-top: 2px; color: #85868b; font-size: 8px; font-variant-numeric: tabular-nums; }
.card-test-environment .card-actions { margin-top: auto; margin-bottom: 52px; }
.card-actions { margin-top: 0; }
.button { font-family: "TT Positive", Arial, sans-serif; letter-spacing: normal; width: 100%; min-height: 50px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 7px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s ease; }
.button > span[aria-hidden="true"] { font-family: Arial, sans-serif; font-size: 23px; line-height: 1; font-weight: 400; }
.button-primary { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: #fff; transition: background .15s ease, box-shadow .2s ease; }
.button-primary::before { content: ""; position: absolute; z-index: -1; inset: -50% auto -50% -30%; width: 24%; background: linear-gradient(105deg, transparent 5%, #ffffff0d 25%, #ffffff40 50%, #ffffff0d 75%, transparent 95%); transform: translateX(0) skewX(-18deg); opacity: 0; pointer-events: none; animation: console-shine 5.5s ease-in-out 1s infinite; }
@keyframes console-shine {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  4% { opacity: 1; }
  28% { transform: translateX(600%) skewX(-18deg); opacity: 1; }
  32%, 100% { transform: translateX(600%) skewX(-18deg); opacity: 0; }
}
.button-primary:hover { background: #d71720; box-shadow: 0 5px 20px #ed242c30; }
.button-primary:active { background: #bf141c; }
.button-secondary { color: #c51d27; background: #fff; border-color: #ed242c; cursor: pointer; }
.button-secondary:hover { background: #fff1f2; border-color: #c51d27; }
.button-secondary:active { background: #ffe4e6; }
.credentials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 6px; min-height: 34px; }
.credential { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 4px; padding: 7px 4px; background: transparent; color: #202123; cursor: pointer; }
.credential:hover { background: #f7e7e8; }
.credential-label { font-size: 13px; color: #686a70; }
.credential-copy { font-size: 11px; color: #a43b43; text-decoration: underline; text-underline-offset: 3px; }
.credential code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.credential svg { width: 14px; height: 14px; fill: none; stroke: #777980; stroke-width: 1.2; }
.credentials-divider { width: 1px; height: 15px; background: #dfd3d4; }
.followup-actions { --followup-gap: 32px; margin-top: 30px; padding: 24px 0 8px; border-top: 1px solid #dededc; display: grid; grid-template-columns: 1fr 1fr; gap: var(--followup-gap); }
.followup-item { min-width: 0; display: flex; align-items: center; gap: 16px; }
.followup-item + .followup-item { position: relative; padding-left: 32px; }
.followup-item + .followup-item::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--followup-gap) / -2 - .5px); width: 1px; background: #e7e7e5; pointer-events: none; }
.followup-copy { min-width: 0; flex: 1; }
.followup-copy h2 { font-size: 20px; font-weight: 400; line-height: 1.2; }
.followup-copy p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.followup-item .button { width: auto; min-height: 42px; padding: 10px 12px; flex-shrink: 0; font-size: 13px; gap: 12px; }
.button-pilot { background: #202123; color: #fff; cursor: pointer; }
.button-pilot:hover { background: #393a3d; }
.button-pilot:active { background: #111214; }
.button-feedback { background: #fff; color: #202123; border-color: #d8d9d6; cursor: pointer; }
.button-feedback:hover { background: #f6f6f6; border-color: #aeb0b3; }
.button-feedback:active { background: #ededed; }
@media (max-width: 1100px) {
  .followup-actions { --followup-gap: 20px; padding-top: 18px; }
  .followup-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .followup-item + .followup-item { padding-left: 20px; }
  .followup-copy h2 { font-size: 18px; }
  .followup-item .button { margin-top: auto; }
}
body.modal-open { overflow: hidden; }
.form-dialog { width: min(714px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dedede; border-radius: 16px; background: #fff; color: #202123; box-shadow: 0 24px 80px #0003; overflow: hidden; }
.form-dialog[open] { display: flex; flex-direction: column; }
.form-dialog::backdrop { background: #20212370; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #ececec; flex-shrink: 0; }
.dialog-header h2 { font-size: 25px; font-weight: 400; line-height: 1.2; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 7px; background: #f5f5f5; color: #515358; font-size: 27px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #eaeaea; }
.dialog-content { min-height: 0; overflow: auto; overflow-anchor: none; overscroll-behavior: contain; padding: 8px 24px 20px; }
.dialog-content iframe { display: block; width: 100%; max-width: 100%; min-height: 560px; border: 0; }
.form-fallback { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-fallback a { text-underline-offset: 3px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid #ffffff24; border-radius: 8px; background: #202123; color: #fff; box-shadow: 0 5px 25px #0002; text-align: center; font-size: 14px; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; z-index: 5; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 1100px) {
  .wide-break { display: none; }
  .card { padding: 26px; }
  .card h2 { font-size: 26px; }
  .description { min-height: 66px; }
  .demo-details { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
  .attack-preview { padding: 8px; }
}
@media (max-width: 760px) {
  .form-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .dialog-header { padding: 14px 16px; gap: 12px; }
  .dialog-header h2 { font-size: 22px; }
  .dialog-content { padding: 0 0 16px; }
  .form-fallback { margin-inline: 16px; }
  .page { padding: 0 20px 32px; max-width: 580px; }
  .intro-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .intro-actions { order: -1; margin-bottom: 8px; }
  .intro { padding: 31px 0 25px; }
  h1 { font-size: clamp(29px, 6.9vw, 38px); line-height: 1.23; letter-spacing: normal; }
  .intro p { font-size: 16px; margin-top: 13px; }
  .desktop-break { display: none; }
  .credentials { gap: 4px 12px; }
  .credentials-divider { display: none; }
  .scenarios { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; border-radius: 13px; }
  .card-test-environment .card-actions { margin-top: 0; margin-bottom: 0; }
  .demo-details { grid-template-columns: minmax(0, 1fr) 130px; }
  .card-top { margin-bottom: 24px; }
  .card h2 { font-size: 27px; }
  .description { min-height: 0; }
  .benefits { margin: 23px 0 25px; gap: 12px; }
}
@media (max-width: 440px) {
  .demo-details { grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
  .demo-details .benefits { font-size: 13px; }
  .demo-details .benefits li { gap: 8px; }
  .attack-preview { padding: 7px; }
  .attack-label { font-size: 8px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 14px; }
  .card { padding: 21px 18px; }
  .card h2 { font-size: 25px; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .badge { font-size: 10px; padding-inline: 7px; }
  .credentials { gap: 6px; }
  .credential { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .button-primary::before { animation: none; opacity: 0; }
  .status-dot { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

.language-picker { position: relative; flex-shrink: 0; }
.language-toggle { width: 40px; padding: 9px; }
.language-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-toggle[aria-expanded="true"] { background: #fff3f3; border-color: #edb9bd; color: #c92332; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 156px; padding: 5px; border: 1px solid #e4dfe0; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px #35212614; }
.language-menu[hidden] { display: none; }
.language-menu button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #515358; font: inherit; font-size: 14px; cursor: pointer; }
.language-menu button:hover, .language-menu button:focus-visible { background: #f7f7f7; }
.language-menu button[aria-pressed="true"] { color: #c92332; background: #fff3f3; }
.language-check { visibility: hidden; }
.language-menu button[aria-pressed="true"] .language-check { visibility: visible; }
@media (max-width: 440px) {
  .intro-actions { gap: 6px; }
  .intro-button { font-size: 12px; padding-inline: 10px; }
  .language-toggle { width: 36px; padding-inline: 7px; }
}

@media (max-width: 440px) {
  .followup-actions { --followup-gap: 14px; }
  .followup-item + .followup-item { padding-left: 14px; }
  .followup-copy h2 { font-size: 17px; }
  .followup-copy p { font-size: 12px; }
  .followup-item .button { font-size: 12px; padding-inline: 9px; gap: 7px; }
  .followup-item .button > span[aria-hidden="true"] { font-size: 18px; }
}

/* Нижние кнопки заканчиваются на той же линии, что и кнопки карточек. */
@media (min-width: 761px) {
  .followup-actions { --card-button-inset: 33px; }
  .followup-item:first-child { padding-right: calc(var(--card-button-inset) + 10px - var(--followup-gap) / 2); }
  .followup-item:last-child { padding-right: var(--card-button-inset); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .followup-actions { --card-button-inset: 27px; }
  .followup-item .button { align-self: flex-end; }
}
