/* ===== KOD — лендинг. Цвета как в презентации ===== */
:root {
  --ink: #17171C;
  --ink-2: #1E1E25;
  --ink-3: #2A2A33;
  --paper: #F5F3EE;
  --card: #FCFBF8;
  --line: #E2DFD6;
  --muted: #55565E;
  --muted-dark: #A9A8B0;
  --yellow: #F5D33D;
  --amber: #F2A93B;
  --yellow-ink: #7A5E00;
  --radius: 20px;
  --head: 'Rubik', Arial, sans-serif;
  --text: 'IBM Plex Sans', Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }

section { position: relative; padding: 120px 0; overflow: hidden; }
.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }

.eyebrow {
  font: 600 14px/1 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--yellow-ink); }

h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: #D9D7D0; max-width: 560px; margin-top: 24px; }
.sub { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 720px; }
.dark .sub { color: var(--muted-dark); }
.note { font-size: 16px; color: var(--muted); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, var(--yellow) 10%, var(--amber) 60%, var(--yellow) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

/* ===== Кнопки ===== */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 600 16px/1 var(--text);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  overflow: hidden; isolation: isolate;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(245, 211, 61, .5), 0 10px 30px -8px rgba(245, 211, 61, .55);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(245, 211, 61, .18), 0 16px 40px -8px rgba(245, 211, 61, .7); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, .28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); color: var(--yellow); }
.light .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(23, 23, 28, .25); }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ===== Шапка ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(23, 23, 28, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 800 24px/1 var(--head); letter-spacing: .02em; }
.brand img { border-radius: 50%; box-shadow: 0 0 18px rgba(245, 211, 61, .45); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: #CFCDC6; text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-left: 8px; }
.nav__burger span { display: block; height: 2px; background: var(--paper); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Свечения и фон ===== */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow--a { width: 620px; height: 620px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(245, 211, 61, .38), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow--b { width: 520px; height: 520px; left: -200px; bottom: -140px; background: radial-gradient(circle, rgba(242, 169, 59, .22), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.glow--c { width: 700px; height: 700px; left: 50%; top: -280px; transform: translateX(-50%); background: radial-gradient(circle, rgba(245, 211, 61, .16), transparent 65%); }
.glow--d { width: 560px; height: 560px; left: -120px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(245, 211, 61, .25), transparent 65%); }
.glow--e { width: 760px; height: 760px; right: -240px; bottom: -260px; background: radial-gradient(circle, rgba(245, 211, 61, .22), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { translate: -60px 50px; scale: 1.12; } }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}

/* ===== Первый экран ===== */
.hero { padding: 150px 0 0; min-height: 100vh; display: flex; flex-direction: column; }
.hero__bg { position: absolute; inset: 0; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; flex: 1; padding-bottom: 72px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted-dark); font-size: 15px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.halo {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(245, 211, 61, .95), rgba(242, 169, 59, .55) 45%, transparent 70%);
  filter: blur(8px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.06); opacity: .85; } }
.orbit { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed rgba(245, 243, 238, .16); animation: spin 40s linear infinite; }
.orbit span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 16px 4px rgba(245, 211, 61, .7); }
.orbit span:nth-child(1) { top: -6px; left: calc(50% - 6px); }
.orbit span:nth-child(2) { bottom: 18%; left: 4%; width: 8px; height: 8px; }
.orbit span:nth-child(3) { top: 30%; right: -4px; width: 6px; height: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__cat { position: relative; width: 340px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.chat-demo { position: absolute; inset: auto 0 6% auto; width: min(320px, 90%); display: flex; flex-direction: column; gap: 10px; }
.bubble {
  padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.4;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bubble.is-shown { opacity: 1; transform: none; }
.bubble--user { align-self: flex-end; background: var(--paper); color: var(--ink); border-bottom-right-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.bubble--kod {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(30, 30, 37, .78); color: var(--paper);
  border: 1px solid rgba(245, 211, 61, .35); border-bottom-left-radius: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(245, 211, 61, .18), 0 12px 30px rgba(0, 0, 0, .35);
  margin-left: -40px;
}
.bubble--kod img { width: 28px; height: auto; flex: none; }
.typing { display: none; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }
.bubble--kod.is-typing .typing { display: inline-flex; }
.bubble--kod.is-typing .bubble__text { display: none; }

/* бегущая строка */
.marquee { position: relative; z-index: 1; border-top: 1px solid rgba(245, 243, 238, .08); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; color: var(--muted-dark); font-size: 15px; white-space: nowrap; }
.marquee__track b { color: var(--yellow); font-size: 8px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Окно со скриншотом ===== */
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(23, 23, 28, .35), 0 0 0 1px rgba(23, 23, 28, .03);
}
.window::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(245, 211, 61, .45), transparent); filter: blur(30px); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #F2EFE6; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #D9D5C9; }
.window__bar i:first-child { background: var(--yellow); }
.window__bar span { margin-left: 10px; }
.intro .window { max-width: 1100px; margin: 0 auto; }
.tilt { transform: perspective(1400px) rotateX(var(--rx, 14deg)) scale(var(--sc, .94)); transform-origin: 50% 0; transition: transform .1s linear; }
.intro { padding-bottom: 140px; }
.intro::before { content: ""; position: absolute; left: 50%; bottom: -200px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(245, 211, 61, .35), transparent); filter: blur(40px); }

/* ===== Карточки возможностей ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 28px 24px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(245, 243, 238, .08);
  transition: transform .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(245, 211, 61, .16), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(245, 211, 61, .4); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 22px 0 10px; position: relative; }
.card p { color: var(--muted-dark); font-size: 16px; position: relative; }
.card__icon { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(245, 211, 61, .12); box-shadow: inset 0 0 0 1px rgba(245, 211, 61, .25); }
.card__icon svg, .safe svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--accent { background: linear-gradient(160deg, var(--yellow), var(--amber)); border-color: transparent; color: var(--ink); box-shadow: 0 20px 60px -20px rgba(245, 211, 61, .6); }
.card--accent p { color: #3A3204; }
.card--accent .card__icon { background: rgba(23, 23, 28, .12); box-shadow: none; }
.card--accent .card__icon svg { stroke: var(--ink); }
.card--accent::before { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .4), transparent 45%); }

/* ===== Вкладки ===== */
.tabs { position: relative; display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 6px; border-radius: 999px; background: #EAE6DB; overflow-x: auto; }
.tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--text); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tab.is-active { color: var(--ink); }
.tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--yellow); box-shadow: 0 6px 20px -6px rgba(245, 211, 61, .9); transition: transform .45s var(--ease), width .45s var(--ease); }
.pane { display: grid; grid-template-columns: .8fr 1.6fr; gap: 48px; align-items: center; }
.pane[hidden] { display: none; }
.pane.is-active { animation: paneIn .6s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(20px); } }
.pane__text h3 { font-size: 28px; margin-bottom: 14px; }
.pane__text p { color: var(--muted); }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ===== Шаги первички ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--yellow), var(--amber), transparent); background-size: 200% 100%; animation: flowLine 4s linear infinite; opacity: .7; }
@keyframes flowLine { to { background-position: -200% 0; } }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); border: 2px solid var(--yellow); color: var(--yellow); font: 700 22px/1 var(--head); box-shadow: 0 0 0 8px var(--ink), 0 0 30px rgba(245, 211, 61, .45); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted-dark); font-size: 16px; }

/* ===== Автоматизация ===== */
.automation__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.automation__stat { position: relative; padding: 44px 40px 0; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(23, 23, 28, .25); overflow: hidden; }
.automation__stat::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 211, 61, .55), transparent 65%); }
.big { position: relative; font: 800 clamp(96px, 12vw, 160px)/0.95 var(--head); letter-spacing: -0.04em; background: linear-gradient(180deg, var(--ink) 40%, #4A4A55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-caption { position: relative; font-size: 22px; font-weight: 500; margin-top: 14px; max-width: 380px; }
.automation__stat .note { position: relative; margin-top: 14px; }
.automation__cat { position: relative; width: 78%; margin: 18px auto 0; }
.automation__text .sub { margin-bottom: 30px; }
.types { display: grid; gap: 12px; }
.type { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); transition: transform .3s var(--ease), box-shadow .3s; }
.type:hover { transform: translateX(6px); box-shadow: 0 14px 30px -16px rgba(23, 23, 28, .3); }
.type p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 14px; }
.pipeline span { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.pipeline span.on { background: var(--yellow); color: var(--ink); box-shadow: 0 0 24px rgba(245, 211, 61, .8); animation: pulse 2.4s ease-in-out infinite; }
.pipeline i { width: 22px; height: 2px; background: #A9A8B0; position: relative; }
.pipeline i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #A9A8B0; border-right: 0; }

/* ===== Безопасность ===== */
.safety { background: linear-gradient(135deg, var(--yellow) 0%, #F7DC5E 50%, var(--amber) 130%); color: var(--ink); }
.safety::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 0%, rgba(255, 255, 255, .45), transparent 60%); }
.safety__title { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; max-width: 980px; margin-bottom: 64px; }
.safety__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safe { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .35); border: 1px solid rgba(23, 23, 28, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s; }
.safe:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .55); }
.safe svg { stroke: var(--ink); width: 32px; height: 32px; margin-bottom: 16px; }
.safe h3 { margin-bottom: 6px; }
.safe p { color: #3A3204; font-size: 16px; }

/* ===== Как начать ===== */
.start__inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; }
.start__cat { width: 100%; max-width: 360px; justify-self: center; filter: drop-shadow(0 0 40px rgba(245, 211, 61, .35)); }
.start__list { display: grid; gap: 14px; counter-reset: st; }
.start__list li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(245, 243, 238, .08); }
.start__list li::before { content: "0" counter(st); grid-row: span 2; font: 800 40px/1 var(--head); color: var(--yellow); text-shadow: 0 0 24px rgba(245, 211, 61, .6); align-self: center; }
.start__list b { font: 600 21px/1.2 var(--head); }
.start__list span { color: var(--muted-dark); font-size: 16px; margin-top: 4px; }

/* ===== Вопросы ===== */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__cat { width: 82%; margin-top: 36px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.qa[open] { border-color: rgba(122, 94, 0, .35); box-shadow: 0 16px 40px -20px rgba(23, 23, 28, .3); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font: 600 18px/1.35 var(--head); position: relative; border-radius: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 24px 22px; color: var(--muted); }

/* ===== Форма ===== */
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.contact__cat { width: 240px; margin-top: 40px; filter: drop-shadow(0 0 50px rgba(245, 211, 61, .35)); }
.form {
  position: relative; padding: 36px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(245, 243, 238, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  display: grid; gap: 18px;
}
.form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(245, 211, 61, .7), transparent 35%, transparent 65%, rgba(242, 169, 59, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; color: #CFCDC6; padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(23, 23, 28, .6); color: var(--paper);
  border: 1px solid rgba(245, 243, 238, .14);
  font: 400 16px/1.4 var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5D33D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #6E6D75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 211, 61, .18), 0 0 24px rgba(245, 211, 61, .2); }
.field__err { display: none; font-style: normal; font-size: 13px; color: #FFB27A; }
.field.is-invalid input { border-color: #FF9A5A; }
.field.is-invalid .field__err, .form.consent-invalid .field__err--consent { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 14px; border: 1px solid rgba(245, 243, 238, .18); color: #CFCDC6; transition: all .25s var(--ease); }
.pills label:hover span { border-color: rgba(245, 211, 61, .6); }
.pills input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 0 18px rgba(245, 211, 61, .45); }
.pills input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-dark); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yellow); flex: none; }
.consent a { color: var(--yellow); }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(23, 23, 28, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.form.is-sending .spinner { display: inline-block; }
.form.is-sending .btn__label { opacity: .6; }
.form__status { font-size: 14px; color: #FFB27A; min-height: 1em; }
.form__status:empty { display: none; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: rgba(23, 23, 28, .94); display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 32px; animation: paneIn .6s var(--ease); }
.form__done[hidden] { display: none; }
.form__done img { width: 120px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(245, 211, 61, .5)); }
.form__done h3 { font-size: 30px; color: var(--yellow); }
.form__done p { color: var(--muted-dark); margin-bottom: 10px; }

/* ===== Подвал ===== */
.footer { background: #111115; color: var(--muted-dark); padding: 40px 0; border-top: 1px solid rgba(245, 243, 238, .06); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__inner a { color: var(--paper); }
.footer__small { margin-left: auto; font-size: 13px; }

/* ===== Появление при прокрутке ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .safety__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .pane, .automation__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .faq__cat { display: none; }
}
@media (max-width: 860px) {
  section { padding: 88px 0; }
  .nav__links {
    position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 14px;
    background: rgba(30, 30, 37, .96); border: 1px solid rgba(245, 243, 238, .1); border-radius: 18px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { padding: 12px 10px; font-size: 17px; }
  .nav__burger { display: block; }
  .nav__cta { margin-left: auto; }
  .hero { padding-top: 112px; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; }
  .halo { width: 300px; height: 300px; }
  .orbit { width: 360px; height: 360px; }
  .hero__cat { width: 240px; }
  .chat-demo { position: relative; inset: auto; margin-top: -30px; width: 100%; max-width: 360px; }
  .bubble--kod { margin-left: 0; }
  .start__inner { grid-template-columns: 1fr; }
  .start__cat { max-width: 200px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__small { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards, .safety__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }
  .form { padding: 22px; }
  .automation__stat { padding: 32px 24px 0; }
  .tabs { width: 100%; justify-content: flex-start; }
  .tab { padding: 11px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .tilt { transform: none; }
  .bubble { opacity: 1; transform: none; }
}

/* ===== Форма: поля на всю ширину ===== */
.form__row--wide { grid-template-columns: 1fr; }
.field select { text-overflow: ellipsis; }

/* ===== Кликабельные скриншоты ===== */
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { transition: transform .5s var(--ease), filter .5s; }
.zoomable:hover img { transform: scale(1.015); filter: brightness(.92); }
.zoomable__hint {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--text);
  box-shadow: 0 0 0 4px rgba(245, 211, 61, .35), 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.zoomable__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.zoomable:hover .zoomable__hint, .zoomable:focus-visible .zoomable__hint { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.zoomable:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* ===== Просмотр скриншота ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(17, 17, 21, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: lbIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--paper); }
.lightbox__caption { flex: 1; font-size: 15px; color: var(--muted-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__btn {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(245, 243, 238, .1); color: var(--paper); font: 600 16px/1 var(--text);
  transition: background .25s, color .25s;
}
.lightbox__btn:hover, .lightbox__btn[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.lightbox__stage { overflow: auto; display: grid; place-items: center; padding: 0 16px; overscroll-behavior: contain; }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 0 0 1px rgba(245, 243, 238, .1), 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(245, 211, 61, .15);
  cursor: zoom-in; animation: lbImg .4s var(--ease);
}
@keyframes lbImg { from { transform: scale(.94); opacity: 0; } }
.lightbox.is-full .lightbox__stage { place-items: start; }
.lightbox.is-full .lightbox__stage img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__tip { text-align: center; font-size: 13px; color: #8A8992; padding: 12px 16px 16px; }
body.lb-open { overflow: hidden; }
@media (max-width: 560px) {
  .zoomable__hint { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 13px; }
}

/* ===== Страница политики ===== */
.nav__back { margin-left: auto; color: var(--paper); }
.legal-hero { padding: 150px 0 72px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.legal-date { margin-top: 18px; font-size: 14px; color: var(--muted-dark); }
.legal { padding: 72px 0 110px; }
.legal__inner { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: 100px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.legal__toc > p { font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); margin-bottom: 14px; }
.legal__toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.legal__toc a { color: var(--ink); text-decoration: none; }
.legal__toc a:hover { color: var(--yellow-ink); text-decoration: underline; }
.legal__text { max-width: 760px; }
.legal__text h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 100px; }
.legal__text p, .legal__text li { color: #33343A; }
.legal__text p + p { margin-top: 12px; }
.legal__text ul { list-style: none; margin: 12px 0; display: grid; gap: 8px; }
.legal__text ul li { position: relative; padding-left: 24px; }
.legal__text ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 211, 61, .25); }
.legal__text a { color: var(--yellow-ink); }
.legal__note { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: #FBF3CF; border: 1px solid #EED983; }
.legal__note img { width: 56px; flex: none; }
.legal__back { margin-top: 48px; color: var(--ink) !important; text-decoration: none; }
@media (max-width: 860px) {
  .legal__inner { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
}
