/* VOLY AI (1С) landing — палитра из hugo.yaml params.colors, инжектится в baseof.html. */

:root {
  --panel: #F6F4ED;
  --panel-2: #F7F5EE;
  --line: #B9B5A6;
  --line-2: #A9A596;
  --muted: #44433C;
  --muted-2: #33322C;
  --dot: #C8C4B5;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --pixel: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --display: var(--pixel);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; background: var(--bg); overflow-x: clip; }

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

h1, h2, h3 {
  font-family: var(--display);
  font-variant-ligatures: none;
  text-rendering: geometricPrecision;
}

.wrap { max-width: clamp(1080px, 92vw, 1560px); margin: 0 auto; padding: 0 40px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}
.btn--ghost {
  font-size: 15px; font-weight: 500;
  color: var(--accent); background: transparent;
  border: 2px solid var(--accent); padding: 10px 26px;
  transition: background .15s, color .15s;
}
.btn--ghost:hover { background: var(--accent); color: var(--bg); }

.btn--primary, .btn--secondary {
  font-size: 16px; font-weight: 600;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 30px;
  transition: transform .12s, box-shadow .12s;
}
.btn--primary { background: var(--accent); color: var(--panel-2); }
.btn--secondary { background: var(--panel-2); color: var(--ink); }
.btn--primary:hover, .btn--secondary:hover {
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink);
}
.btn-small { font-size: 13px; padding: 9px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn-large { font-size: 17px; padding: 16px 36px; }
/* Legacy single-dash aliases used by content markup. */
.btn-primary { font-family: var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 16px; font-weight: 600; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 30px; background: var(--accent); color: var(--panel-2); transition: transform .12s, box-shadow .12s; }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { font-family: var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--accent); background: transparent; border: 2px solid var(--accent); padding: 10px 26px; transition: background .15s, color .15s; }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; max-width: clamp(1080px, 92vw, 1560px); margin: 0 auto; padding: 26px 40px 22px;
  border-bottom: 2px solid var(--ink);
}
.nav__logo-link { display: flex; align-items: center; gap: 10px; line-height: 0; text-decoration: none; color: var(--ink); }
.nav__logo { display: block; }
.nav__brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav__links {
  display: flex; flex: 1; justify-content: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-family: var(--mono); font-size: 15px;
}
.nav__link {
  cursor: pointer;
  transition: color .15s;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }
.nav__link--cta { display: none; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__right .btn--primary { padding: 12px 24px; }
.nav__toggle { display: none; width: 42px; height: 42px; padding: 9px; flex-direction: column; justify-content: center; gap: 5px; color: var(--ink); background: var(--panel-2); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.nav__toggle span { display: block; width: 100%; height: 2px; background: currentColor; transition: transform .15s, opacity .15s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-inner-page .hero-inner { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; padding-bottom: 40px; }
.kicker {
  display: inline-flex; width: fit-content;
  margin: 0 0 18px; padding: 7px 12px;
  border: 1.5px solid var(--ink); color: var(--ink); background: var(--panel-2);
  box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: .04em;
}
.hero h1 {
  font-weight: 700; font-size: clamp(52px, 7vw, 88px);
  line-height: 1.06; margin: 0 0 22px; letter-spacing: -.015em;
}
.hero-inner-page h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 18px; line-height: 1.55; margin: 0 0 22px; max-width: 560px; color: var(--muted-2); }
.hero-badges { display: flex; flex-direction: column; gap: 8px; margin: 0 0 30px; max-width: 520px; }
.hero-badge {
  position: relative; margin: 0; padding: 10px 14px 10px 30px;
  font-size: 13.5px; line-height: 1.4; color: var(--muted);
  border-left: 3px solid var(--line-2); background: var(--panel);
}
.hero-badge::before { content: "◆"; position: absolute; left: 10px; top: 11px; color: var(--accent); font-size: 10px; }
.hero-badge-paid { border-left-color: var(--accent); color: var(--muted-2); font-weight: 500; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-proof { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0; }

/* Constellation art */
.hero-art { position: relative; }
.constellation { position: relative; width: 100%; max-width: 480px; aspect-ratio: 600 / 500; margin: 0 auto; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.constellation-lines path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.constellation-inner { position: relative; width: 100%; height: 100%; z-index: 1; }
.tile { position: absolute; opacity: 0; transform: scale(.4); }
.tile-inner {
  width: 100%; height: 100%;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.tile:hover .tile-inner { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tile.ink .tile-inner { background: var(--ink); color: var(--panel-2); }
.tile.accent .tile-inner { background: var(--accent); color: var(--panel-2); }
.tile.hill .tile-inner { background: var(--hill); color: var(--panel-2); }
.tile.panel .tile-inner { background: var(--panel-2); color: var(--ink); }
.tile-icon { width: 46%; height: 46%; }
.tile-icon svg { width: 100%; height: 100%; display: block; }
.tile-db .tile-inner { background: var(--panel-2); color: var(--ink); }
.tile-db-img { width: 72%; height: 72%; object-fit: contain; display: block; }
.tile.size-main { width: 27%; aspect-ratio: 142 / 118; }
.tile.size-big { width: 30%; aspect-ratio: 156 / 132; }
.tile.size-pill { width: 13%; aspect-ratio: 1; }
.tile.size-pill .tile-inner { border-radius: 50%; }
.tile-lock { top: 0%; left: calc(50% - 6.5%); }
.tile-question { top: 16%; left: 9%; }
.tile-select { top: 16%; left: 63%; }
.tile-nokey { top: 46%; left: 0%; }
.tile-db { top: 43%; left: 34%; }
.tile-table { top: 46%; left: 76%; }
@media (prefers-reduced-motion: reduce) {
  .tile { opacity: 1; transform: none; }
  .constellation-lines path { stroke-dashoffset: 0 !important; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 64px 0; border-top: 1.5px solid var(--line-2); }
.section:first-of-type { border-top: none; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wrap h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
.wrap h2 span { color: var(--accent); }
.section-desc { font-size: 17px; line-height: 1.6; margin: 0 0 32px; color: var(--muted-2); max-width: 680px; }
.wrap-narrow { max-width: 820px; }
.copy-block { font-size: 16px; line-height: 1.65; color: var(--muted-2); max-width: 760px; margin: 0 0 18px; }

/* ── Demo panel (terminal-style) ─────────────────────────────────────── */
.demo-mockup {
  overflow: hidden; color: var(--panel-2); background: var(--ink);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent);
  width: clamp(300px, 58vw, 780px); max-width: 100%; margin: 0 auto;
}
.demo-mockup-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; color: var(--ink); background: var(--panel-2); border-bottom: 2px solid var(--accent); }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.demo-mockup-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.demo-mockup-body { padding: 22px 24px 26px; }
.demo-video-body { padding: 0; }
.demo-video { display: block; width: 100%; height: auto; max-height: 100%; background: var(--ink); }
.demo-video:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.demo-msg { margin-bottom: 18px; }
.demo-msg p { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.demo-msg-user p { color: var(--panel-2); }
.demo-msg-user::before { content: "› "; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.demo-table-wrap { overflow-x: auto; border: 1px solid color-mix(in srgb, var(--panel-2) 25%, transparent); margin-bottom: 14px; }
.demo-table { width: 100%; min-width: 480px; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.demo-table th, .demo-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--panel-2) 18%, transparent); white-space: nowrap; }
.demo-table th { color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-select { padding: 12px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--panel-2) 6%, transparent); }
.demo-select-label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.demo-select code { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--dot); overflow-wrap: anywhere; white-space: pre-wrap; }
.demo-input-row {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 12px 16px; border: 1.5px dashed color-mix(in srgb, var(--panel-2) 30%, transparent);
}
.demo-input { flex: 1; font-family: var(--mono); font-size: 13px; color: color-mix(in srgb, var(--panel-2) 55%, transparent); }
.demo-send { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); background: var(--accent); padding: 7px 14px; }
.demo-footnote { text-align: center; max-width: 680px; margin: 18px auto 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── Card grids ───────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  border: 1.5px solid var(--line-2); background: var(--panel);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0; }
.card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--muted); }
.card-outline { background: var(--panel-2); border-color: var(--ink); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-vertical { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.steps-vertical .step { position: relative; padding: 0 0 34px 0; }
.steps-vertical .step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 0;
  border-left: 2px dashed var(--line-2);
}
.step-no {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 15px; font-weight: 600;
  border: 2px solid var(--ink); background: var(--panel-2); box-shadow: 3px 3px 0 var(--accent);
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 6px 0 8px; }
.step p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--muted); max-width: 560px; }
.install-notes { margin: 26px 0 26px; display: flex; flex-direction: column; gap: 6px; }
.install-notes p { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ── Config list ──────────────────────────────────────────────────────── */
.config-list { border-top: 2px solid var(--ink); margin: 0 0 22px; }
.config-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.config-row dt { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.config-row dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.config-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 720px; margin: 0; }

/* ── Promise (can / cannot) ──────────────────────────────────────────── */
.promise-col { padding: 26px 24px; border: 1.5px solid var(--line-2); background: var(--panel); }
.promise-can { border-left: 4px solid var(--accent); }
.promise-cannot { border-left: 4px solid var(--line-2); }
.promise-col h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 14px; }
.promise-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise-col li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--muted-2); }
.promise-can li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.promise-cannot li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); }
.footnote { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 20px 0 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1.5px solid var(--line-2); background: var(--panel); padding: 4px 20px; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600;
  font-size: 16.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── Requirements list ────────────────────────────────────────────────── */
.req-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.req-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.req-list li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 11px; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.cta-final { text-align: center; padding: 72px 0; }
.cta-final h2 { max-width: 640px; margin: 0 auto 26px; font-size: clamp(24px, 3vw, 32px); }
.requirements-section h2 { margin-bottom: 18px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 2px solid var(--ink); margin-top: 40px; }
.footer__walk {
  --walker-width: 96px;
  position: relative;
  height: 120px;
  overflow: hidden;
  border-bottom: 1.5px dashed var(--line-2);
  background: linear-gradient(to bottom, transparent 0 80%, color-mix(in srgb, var(--hill) 8%, transparent) 80% 100%);
}
.footer__walk::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 15px;
  border-bottom: 3px solid var(--hill); opacity: .72; z-index: 0;
}
.footer__bushes {
  position: absolute; z-index: 1; left: 0; bottom: 21px;
  width: 200%; height: 34px; display: flex; align-items: flex-end; justify-content: space-around;
  animation: bush-parallax 14s linear infinite;
}
.footer__bush {
  --bush-scale: 1;
  display: block; width: 8px; height: 8px; flex: none;
  background: var(--hill); opacity: .78;
  transform: scale(var(--bush-scale)); transform-origin: center bottom;
  box-shadow: -16px 8px 0 var(--hill), -8px 0 0 var(--hill), 0 -8px 0 var(--hill), 8px 0 0 var(--hill), 16px 8px 0 var(--hill), -8px 8px 0 var(--hill), 0 8px 0 var(--hill), 8px 8px 0 var(--hill);
}
.footer__bush--sm { --bush-scale: .72; opacity: .56; }
.footer__bush--lg { --bush-scale: 1.22; }
.footer__walker {
  position: absolute; z-index: 2; left: 0; bottom: 13px;
  width: var(--walker-width);
  animation: goose-patrol 16s linear infinite;
}
.footer__walker svg { display: block; animation: goose-turn 16s steps(1, end) infinite; }
.footer__walk:hover .footer__walker,
.footer__walk:hover .footer__walker svg,
.footer__walk:hover .footer__bushes { animation-play-state: paused; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; padding-top: 44px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title { font-family: var(--mono); font-weight: 600; font-size: 13px; margin-bottom: 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.footer__link { font-family: var(--mono); font-size: 13.5px; color: var(--muted); cursor: pointer; transition: color .15s; text-decoration: none; display: block; }
.footer__link:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 24px 0 26px; }

@keyframes goose-patrol {
  0%, 5%   { left: 0; }
  45%, 55% { left: calc(100% - var(--walker-width)); }
  95%, 100% { left: 0; }
}
@keyframes goose-turn {
  0%, 49.99% { transform: scaleX(-1); }
  50%, 99.99% { transform: scaleX(1); }
  100% { transform: scaleX(-1); }
}
@keyframes bush-parallax {
  0%, 5% { transform: translateX(0); }
  45%, 55% { transform: translateX(-50%); }
  95%, 100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__walker, .footer__walker svg, .footer__bushes { animation: none !important; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav { padding: 22px 24px 20px; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 20px 24px 18px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .constellation { max-width: 360px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav__links { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; padding: 12px 0 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px solid var(--ink); box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
  .nav.is-open .nav__links { display: flex; }
  .nav__link { padding: 11px 24px; }
  .nav__link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .nav__link--cta { display: block; color: var(--accent); font-weight: 600; }
  .nav__toggle { display: flex; }
  .nav__right .btn--primary { display: none; }
}
@media (max-width: 480px) {
  .nav { padding: 14px 16px 12px; gap: 12px; }
  .nav__logo svg { width: 28px; height: 28px; }
  .nav__brand { font-size: 16px; }
  .nav__toggle { width: 38px; height: 38px; }
  .hero { padding: 30px 0 34px; }
  .hero-inner { gap: 24px; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.12; }
  .hero-desc { font-size: 15.5px; line-height: 1.5; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 44px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .config-row { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr; padding: 36px 0 0; }
  .constellation { max-width: 280px; }
  .demo-mockup-body { padding: 18px 16px 20px; }
  .demo-table { min-width: 420px; }
}