/* ==========================================================================
   ChatGPT Auto Reasoning, one-page site
   Palette, type, and layout are shared by both language versions.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-deep: #F3F1EC;
  --white: #FFFFFF;
  --ink: #190500;
  --ink-soft: #3B251B;
  --pink: #FF2E9B;
  --pink-deep: #C60071;
  --yellow: #FFE23F;
  --orange: #FF5A1F;
  --violet: #A879FF;
  --lime: #C8FF4A;
  --muted: rgba(25, 5, 0, 0.62);
  --line: rgba(25, 5, 0, 0.16);

  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 26px;
  --container: 1240px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1200;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* Progress and header ------------------------------------------------------ */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pink);
  transition: width 0.12s linear;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(var(--container), calc(100% - 32px));
  padding: 9px 12px 9px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 5px 5px 0 rgba(25, 5, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: box-shadow 0.25s ease, background 0.25s ease, top 0.25s ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 3px 3px 0 rgba(25, 5, 0, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
}

.brand-knob {
  position: relative;
  display: block;
  width: 20px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.brand-knob::after {
  content: "";
  position: absolute;
  top: 1.5px;
  right: 1.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand-suffix {
  color: var(--pink-deep);
  font-size: 0.82em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.main-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(25, 5, 0, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 2px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 27px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a.is-active {
  background: var(--ink);
  color: var(--paper);
}

.lang-switch a:not(.is-active):hover {
  background: var(--yellow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-small {
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-small:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary,
.btn-pink {
  background: var(--pink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-ink {
  background: transparent;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 144px 0 24px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 5, 0, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 5, 0, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow-a {
  top: -80px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: rgba(255, 46, 155, 0.16);
}

.hero-glow-b {
  bottom: 20px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: rgba(168, 121, 255, 0.16);
}

.hero-layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 10px 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  animation: status-pulse 2.2s ease-out infinite;
}

.eyebrow-version {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-title {
  max-width: 1080px;
  margin: 24px auto 22px;
  font-family: var(--font-display);
  font-size: clamp(50px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-transform: uppercase;
}

html[lang="ru"] .hero-title {
  font-size: clamp(40px, 4.8vw, 72px);
  letter-spacing: -0.05em;
}

.title-line {
  display: block;
  animation: title-rise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.title-line:nth-child(2) {
  animation-delay: 0.08s;
}

.title-line:nth-child(3) {
  animation-delay: 0.16s;
}

.title-line-last {
  margin-top: 0.04em;
}

.title-highlight {
  position: relative;
  display: inline-block;
  margin-right: 0.03em;
  padding: 0 0.07em 0.03em;
  border: 0;
  border-radius: 0.16em;
  background: var(--pink);
  box-shadow: 0.045em 0.045em 0 var(--ink);
  transform: rotate(-2.5deg);
}

.hero-lead {
  max-width: 680px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-list .icon {
  color: var(--pink-deep);
}

/* Marquee ------------------------------------------------------------------ */

.marquee {
  position: relative;
  z-index: 3;
  width: calc(100% + 40px);
  margin: 62px 0 0 -20px;
  padding: 12px 0;
  border-block: 2px solid var(--ink);
  background: var(--pink);
  overflow: hidden;
  transform: rotate(-1.1deg);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  font-size: 13px;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Shared section parts ----------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(76px, 9vw, 128px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(26px, 5vw, 72px);
  margin-bottom: clamp(42px, 5vw, 66px);
}

.section-tag {
  display: inline-block;
  margin: 0;
  padding: 7px 13px 6px;
  border: 2px solid var(--ink);
  border-radius: 9px 9px 2px 2px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-head h2 {
  max-width: 760px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.1vw, 57px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-intro {
  max-width: 520px;
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--ink);
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.72;
}

/* Problem ----------------------------------------------------------------- */

.problem {
  background: var(--paper);
}

.reset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.reset-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.reset-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.reset-card-pink {
  background: var(--pink);
}

.reset-card-yellow {
  background: var(--yellow);
}

.reset-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reset-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.reset-icon .icon {
  width: 23px;
  height: 23px;
}

.reset-stamp {
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(7deg);
}

.reset-card h3 {
  margin: 27px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.reset-card p {
  margin: 0;
  color: rgba(25, 5, 0, 0.78);
  font-size: 14.5px;
  line-height: 1.62;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
  padding: 28px 0;
  border-block: 2px solid var(--ink);
}

.stat {
  padding: 0 26px;
  border-right: 1.5px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat strong span {
  margin-left: 2px;
  color: var(--pink-deep);
  font-size: 0.45em;
  letter-spacing: 0;
}

.stat p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Features ---------------------------------------------------------------- */

.features {
    overflow: hidden;
    border-block: 2px solid var(--ink);
    background: #0e0410ed;
    color: var(--paper);
}

.features-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 46, 155, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 155, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 10%, transparent 78%);
  pointer-events: none;
}

.section-head-dark h2 {
  color: var(--paper);
}

.section-head-dark .section-intro {
  border-left-color: var(--pink);
  color: rgba(255, 244, 214, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 306px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  color: var(--ink);
  box-shadow: 7px 7px 0 rgba(255, 244, 214, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(255, 244, 214, 0.32);
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  grid-column: span 2;
}

.feature-card-cream {
  background: var(--paper);
}

.feature-card-yellow {
  background: var(--yellow);
}

.feature-card-pink {
  background: var(--pink);
}

.feature-card-violet {
  background: var(--violet);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-4deg);
}

.feature-icon .icon {
  width: 25px;
  height: 25px;
}

.feature-card h3 {
  max-width: 540px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.85vw, 25px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 620px;
  margin: 0 0 16px;
  color: rgba(25, 5, 0, 0.8);
  font-size: 15px;
  line-height: 1.66;
}

/* Installation ------------------------------------------------------------ */

.how {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.step-number {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transform: rotate(-6deg);
}

.step:nth-child(2) .step-number {
  background: var(--yellow);
}

.step:nth-child(3) .step-number {
  background: var(--violet);
}

.step h3 {
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0 0 14px;
  color: rgba(25, 5, 0, 0.78);
  font-size: 14.5px;
  line-height: 1.66;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: auto !important;
}

.step-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.step-links a:hover,
.text-link:hover {
  color: var(--pink-deep);
}

.code-card {
  margin-top: 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #1B0C05;
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 244, 214, 0.14);
  color: rgba(255, 244, 214, 0.58);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn {
  padding: 5px 10px;
  border: 1px solid rgba(255, 244, 214, 0.32);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--ink);
}

.copy-btn.is-copied {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.code-card pre {
  margin: 0;
  padding: 15px 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.code-prompt {
  color: var(--pink);
}

.code-output {
  color: var(--lime);
}

.step-note {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(25, 5, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.code-card code {
  padding: 0;
  background: none;
}

/* Compatibility ----------------------------------------------------------- */

.compatibility {
  border-block: 2px solid var(--ink);
  background: var(--yellow);
}

.compatibility .section-tag {
  background: var(--paper);
}

.compat-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: 30px;
}

.compat-table {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
}

.compat-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  border-top: 1.5px solid var(--ink);
  transition: background 0.2s ease;
}

.compat-row:first-child {
  border-top: 0;
}

.compat-row:hover {
  background: rgba(255, 46, 155, 0.06);
}

.compat-key {
  color: rgba(25, 5, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compat-value {
  font-size: 15.5px;
  line-height: 1.55;
}

.compat-value code {
  background: var(--ink);
  color: var(--paper);
}

.compat-note {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--pink);
  transform: rotate(1.6deg);
}

.compat-note-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  transform: rotate(-6deg);
}

.compat-note h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.compat-note p {
  margin: 0;
  color: rgba(255, 244, 214, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

/* Privacy ----------------------------------------------------------------- */

.privacy {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 120px) 0;
  border-bottom: 2px solid var(--ink);
  background: var(--pink);
}

.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(25, 5, 0, 0.07) 0,
    rgba(25, 5, 0, 0.07) 1px,
    transparent 1px,
    transparent 16px
  );
  pointer-events: none;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.section-tag-cream {
  background: var(--paper);
}

.privacy h2 {
  max-width: 720px;
  margin: 20px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.1vw, 57px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.privacy-copy > p {
  max-width: 640px;
  margin: 0;
  color: rgba(25, 5, 0, 0.84);
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  line-height: 1.72;
}

.privacy-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.big-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  height: 168px;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--paper);
  transform: rotate(-7deg);
}

.big-toggle-label {
  margin-left: 38px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.big-toggle-knob {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.16);
}

.big-toggle-knob::after {
  content: "✱";
  color: var(--paper);
  font-size: 46px;
  line-height: 1;
}

.privacy-sticker {
  position: absolute;
  left: 0;
  bottom: -4px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.privacy-star {
  position: absolute;
  top: 0;
  right: 12px;
  color: var(--paper);
  font-size: 54px;
  line-height: 1;
  transform: rotate(12deg);
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
}

.faq-head {
  position: sticky;
  top: 124px;
}

.faq-head h2 {
  margin: 20px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.7vw, 51px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 2px solid var(--ink);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 23px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  transition: background 0.25s ease, transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 13px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 13px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-question:hover .faq-icon {
  background: var(--yellow);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--pink);
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  max-width: 720px;
  margin: 0;
  padding: 0 48px 24px 0;
  color: rgba(25, 5, 0, 0.78);
  font-size: 15px;
  line-height: 1.72;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  border-top: 1px solid rgba(255, 244, 214, 0.16);
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 244, 214, 0.16);
}

.brand-footer {
  margin-bottom: 4px;
}

.brand-footer .brand-name {
  color: var(--paper);
}

.footer-brand p {
  max-width: 340px;
  margin: 18px 0;
  color: rgba(255, 244, 214, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-badges span {
  padding: 4px 9px;
  border: 1px solid rgba(255, 244, 214, 0.28);
  border-radius: 999px;
  color: rgba(255, 244, 214, 0.66);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  color: rgba(255, 244, 214, 0.76);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  padding: 22px 0;
  color: rgba(255, 244, 214, 0.46);
  font-size: 11.5px;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  text-align: right;
}

.footer-word {
  margin: 8px 0 -8px;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(80px, 15.2vw, 226px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.07em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 244, 214, 0.14);
  pointer-events: none;
  user-select: none;
}

/* Motion and hover capability --------------------------------------------- */

@keyframes title-rise {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes console-float {
  0%,
  100% {
    transform: rotate(-2.2deg) translateY(0);
  }
  50% {
    transform: rotate(-1.4deg) translateY(-7px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes live-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes thinking {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes click-ping {
  from {
    opacity: 1;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero-title {
    font-size: clamp(44px, 6.3vw, 68px);
  }

  html[lang="ru"] .hero-title {
    font-size: clamp(38px, 6.2vw, 64px);
  }

  .hero-visual {
    margin: 70px auto 0;
    max-width: 600px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-intro {
    max-width: 680px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .compat-wrap {
    grid-template-columns: 1fr;
  }

  .compat-note {
    transform: none;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-art {
    margin-top: 18px;
    justify-items: center;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-head {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--ink);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .main-nav a:hover {
    background: var(--yellow);
  }

  .menu-toggle {
    display: flex;
  }

  .header-install {
    padding: 9px 13px;
    font-size: 12.5px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 7px 8px 7px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 12px;
  }

  .lang-switch a {
    min-width: 30px;
    height: 25px;
    font-size: 9.5px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: clamp(38px, 7vw, 53px);
    letter-spacing: -0.045em;
  }

  html[lang="ru"] .hero-title {
    font-size: clamp(35px, 6.2vw, 48px);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    padding: 14px 20px;
    font-size: 14.5px;
  }

  .hero-visual {
    padding: 20px 8px 0;
  }

  .spin-badge {
    top: -18px;
    right: -8px;
    width: 102px;
    height: 102px;
  }

  .spin-badge text {
    font-size: 6.2px;
  }

  .spin-center {
    font-size: 18px;
  }

  .console {
    padding: 11px;
    border-radius: 24px;
    box-shadow: 8px 8px 0 var(--pink), 15px 15px 0 rgba(25, 5, 0, 0.12);
  }

  .console-body {
    min-height: 330px;
    padding: 14px;
  }

  .msg-user {
    font-size: 12px;
  }

  .reason-row {
    font-size: 12px;
  }

  .sticker-auto {
    left: -8px;
    top: 31%;
  }

  .sticker-zero {
    right: -6px;
    bottom: 66px;
  }

  .demo-caption {
    margin-top: 24px;
  }

  .marquee {
    margin-top: 56px;
    padding: 10px 0;
  }

  .marquee-track span {
    font-size: 13px;
  }

  .reset-grid {
    grid-template-columns: 1fr;
  }

  .reset-card {
    min-height: 0;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .stat {
    padding: 0 18px;
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    grid-column: auto;
  }

  .feature-card {
    min-height: 0;
  }

  .compat-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 17px 18px;
  }

  .faq-answer p {
    padding-right: 13px;
  }

  .cta-card {
    transform: none;
    box-shadow: 8px 8px 0 var(--paper);
    border-radius: 26px;
  }

  .cta-star {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-note {
    text-align: left;
  }

  .footer-word {
    font-size: 19vw;
  }
}

@media (max-width: 520px) {
  .header-install {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .header-install .icon {
    width: 17px;
    height: 17px;
  }

  .eyebrow {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 11.5px;
    padding: 7px 8px 7px 11px;
  }

  .hero-title {
    font-size: clamp(31px, 8.5vw, 39px);
  }

  html[lang="ru"] .hero-title {
    font-size: clamp(29px, 7.5vw, 36px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-list {
    flex-direction: column;
    gap: 7px;
  }

  .spin-badge {
    display: none;
  }

  .hero-visual {
    margin-top: 38px;
  }

  .sticker-auto {
    top: 27%;
    left: -2px;
    padding: 8px 11px;
  }

  .sticker-zero {
    right: 0;
    bottom: 56px;
    padding: 6px 10px;
  }

  .sticker-zero span {
    display: none;
  }

  .console-body {
    min-height: 310px;
  }

  .demo-toast {
    bottom: 112px;
    font-size: 10px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stat {
    padding: 0 !important;
    border-right: 0;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    padding-top: 20px !important;
  }

  .section-head h2,
  .privacy h2,
  .faq-head h2 {
    font-size: clamp(27px, 7.8vw, 36px);
  }

  .cta-card h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .privacy-art {
    min-height: 250px;
  }

  .big-toggle {
    height: 132px;
  }

  .big-toggle-knob {
    width: 106px;
    height: 106px;
  }

  .big-toggle-label {
    margin-left: 26px;
    font-size: 29px;
  }

  .big-toggle-knob::after {
    font-size: 36px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
  }

  .brand-name {
    display: none;
  }
}
