/* ==========================================================================
   VINogram — лендинг. Mobile first.
   ========================================================================== */

:root {
  --bg: #080A09;
  --bg-2: #121613;
  --card: #191E1A;
  --text: #FFFFFF;
  --text-2: #B4BBB6;
  --text-3: #7C847F;
  --lime: #A6F000;
  --lime-hi: #C2FF2E;
  --green: #39FF6A;                 /* электрический зелёный — редкий акцент */
  --line: rgba(255, 255, 255, .08);
  --lime-line: rgba(166, 240, 0, .22);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --maxw: 1180px;
  --radius: 18px;
  --btn-radius: 14px;

  --sticky-h: 80px;                 /* высота закреплённой панели без safe-area */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* место под закреплённую кнопку, чтобы она не перекрывала контент */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--bg); }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--lime); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.eyebrow__line { width: 28px; height: 2px; background: var(--lime); border-radius: 2px; flex: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(25px, 7.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.logo__mark { width: 30px; height: 23px; color: var(--lime); filter: drop-shadow(0 0 10px rgba(166, 240, 0, .45)); }
.logo__word { font-family: var(--font-body); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.logo__word b { font-weight: 800; }
.logo--muted { color: var(--text-2); }
.logo--muted .logo__mark { filter: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  background: var(--lime); color: var(--bg);
  border-radius: var(--btn-radius);
  font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(166, 240, 0, .55);
  isolation: isolate;
}
.btn:hover { background: var(--lime-hi); box-shadow: 0 14px 40px -10px rgba(166, 240, 0, .7); }
.btn:active, .btn.is-pressed { transform: scale(.965); background: #95D900; }
.btn__arrow { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--xl { min-height: 64px; padding: 0 30px; font-size: 16px; width: 100%; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; border-radius: 12px; }

/* мягкое свечение */
.btn--glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 0 34px 4px rgba(166, 240, 0, .45);
  opacity: .35;
  animation: glow 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow { 50% { opacity: 1; } }

/* ---------- topbar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
}
.topbar__cta { display: none; }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--sticky-h));
  min-height: calc(100svh - var(--sticky-h) - env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 36px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; z-index: -1; left: 0; right: 0; top: 0;
  height: 64%;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%;
  filter: saturate(.9) contrast(1.05);
}
.hero__media::before { /* виньетка сверху под логотип */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,10,9,.75) 0%, rgba(8,10,9,0) 26%);
}
.hero__media::after { /* плавный переход в фон */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(8,10,9,.55) 34%, rgba(8,10,9,0) 62%);
}
.hero__scan {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 30%, var(--lime) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(166, 240, 0, .55);
  opacity: .0;
  animation: scan 5.5s var(--ease) 1.2s infinite;
}
@keyframes scan {
  0%   { transform: translateY(8vh); opacity: 0; }
  12%  { opacity: .75; }
  60%  { opacity: .75; }
  75%, 100% { transform: translateY(52vh); opacity: 0; }
}

.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(27px, 8.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__title .accent { display: block; text-shadow: 0 0 40px rgba(166, 240, 0, .35); }
.hero__lead {
  margin-top: 18px; max-width: 34em;
  color: var(--text-2); font-size: 16px; line-height: 1.55;
}
.hero .btn { margin-top: 28px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; position: relative; }

/* ---------- 2. blind ---------- */
.blind { padding-top: 64px; }
.blind__figure {
  position: relative; margin: 0 auto;
  max-width: var(--maxw);
}
.blind__figure img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.blind__text {
  margin-top: 26px;
  font-size: clamp(19px, 5.2vw, 30px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  max-width: 26em;
  text-wrap: pretty;
}

/* ---------- 3. features ---------- */
.features { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
.card {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.card::before { /* лаймовая риска сверху */
  content: ""; position: absolute; left: 20px; top: -1px; width: 36px; height: 2px;
  background: var(--lime); border-radius: 0 0 2px 2px;
}
.card__icon {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(166, 240, 0, .08);
  border: 1px solid var(--lime-line);
}
.card__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--lime); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.card__num {
  position: absolute; right: 18px; top: 16px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .04em;
}
.card__title { font-size: 18px; font-weight: 800; line-height: 1.25; padding-right: 28px; letter-spacing: -.005em; }
.card__text { color: var(--text-2); font-size: 15px; line-height: 1.5; }

@media (hover: hover) {
  .card:hover { border-color: var(--lime-line); transform: translateY(-3px); background: #1C221D; }
}

/* ---------- 4. app ---------- */
.app__lead {
  font-size: clamp(19px, 5.2vw, 30px);
  line-height: 1.35; font-weight: 600; letter-spacing: -.01em;
  max-width: 22em; text-wrap: pretty;
}
.app__figure { margin: 30px calc(var(--gutter) * -1) 0; position: relative; }
.app__figure img { width: 100%; aspect-ratio: 1229 / 1280; }

/* ---------- 5. steps ---------- */
.steps__list { margin-top: 38px; display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative;
  display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
  letter-spacing: -.02em;
}
.step:first-child .step__num { color: var(--lime); -webkit-text-stroke: 0; text-shadow: 0 0 28px rgba(166, 240, 0, .4); }
.step__text { font-size: clamp(18px, 4.9vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- 6. final ---------- */
.final {
  position: relative; overflow: hidden;
  padding: 88px 0 92px;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(166, 240, 0, .12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--lime-line);
  text-align: left;
}
.final__inner { position: relative; }
.final__title {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 8vw, 72px);
  line-height: 1.05; letter-spacing: -.015em;
  text-wrap: balance;
}
.final__lead { margin-top: 18px; color: var(--text-2); font-size: 17px; max-width: 30em; }
.final .btn { margin-top: 30px; }

/* ---------- footer ---------- */
.footer { padding: 28px 0 32px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .logo__word { font-size: 17px; }
.footer .logo__mark { width: 22px; height: 17px; }

/* ---------- sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 9, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.sticky-cta .btn { min-height: 56px; font-size: 16px; border-radius: 12px; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(var(--sticky-h) + 14px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--lime-line); border-radius: 14px;
  font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Планшеты
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 1fr; row-gap: 10px; padding: 26px 22px 24px; }
  .card__icon { grid-row: auto; margin-bottom: 8px; }
  .btn--xl { width: auto; min-width: 340px; }
  .app__figure { margin-left: 0; margin-right: 0; }
  .app__figure img { border-radius: var(--radius); }
}
@media (min-width: 760px) {
  .blind__figure img { border-radius: var(--radius); }
  .blind__figure { padding: 0 var(--gutter); }
  .hero__media { height: 72%; }
}

/* ==========================================================================
   Десктоп
   ========================================================================== */
@media (min-width: 960px) {
  :root { --gutter: 40px; --sticky-h: 0px; }

  .sticky-cta { display: none; }
  .toast { bottom: 32px; }

  /* закреплённая шапка с CTA вместо нижней панели */
  .topbar { position: fixed; transition: background-color .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
  .topbar.is-scrolled {
    background: rgba(8, 10, 9, .82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }
  .topbar__inner { height: 76px; }
  .topbar__cta { display: inline-flex; }

  .hero { min-height: 100vh; min-height: 100svh; max-height: 980px; justify-content: center; padding: 120px 0 80px; }
  .hero__media { left: 34%; top: 0; bottom: 0; height: auto; }
  .hero__media img { object-position: 30% 50%; }
  .hero__media::before {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(8,10,9,.7) 22%, rgba(8,10,9,0) 52%),
      linear-gradient(180deg, rgba(8,10,9,.6) 0%, rgba(8,10,9,0) 22%);
  }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(8,10,9,0) 30%); }
  .hero__content { max-width: calc(var(--maxw) + var(--gutter) * 2); }
  .hero__title { max-width: 9.6em; font-size: clamp(48px, 5.6vw, 80px); }
  .hero__lead { font-size: 18px; max-width: 30em; }
  @keyframes scan {
    0%   { transform: translateY(14vh); opacity: 0; }
    12%  { opacity: .7; }
    60%  { opacity: .7; }
    75%, 100% { transform: translateY(82vh); opacity: 0; }
  }

  .section { padding: 120px 0; }
  .blind { padding-top: 110px; }
  .blind__text { margin-top: 40px; }

  .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
  .card { padding: 30px 24px 28px; min-height: 270px; align-content: start; }
  .card__title { font-size: 19px; }

  .app__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .app__figure { margin: 0; }
  .app__lead { font-size: 34px; }

  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
  .step { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 0; border-top: 1px solid var(--lime-line); align-items: start; }
  .step:last-child { border-bottom: 0; }
  .step__num { font-size: 88px; }
  .step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--lime); }

  .final { padding: 140px 0 150px; text-align: center; }
  .final__title { max-width: 13em; margin: 0 auto; }
  .final__lead { margin: 22px auto 0; font-size: 19px; }
  .final .btn { margin-top: 40px; }
  .btn--xl { min-height: 70px; font-size: 17px; padding: 0 38px; }
}

/* ==========================================================================
   Уменьшение движения
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scan { display: none; }
  .btn--glow::after { opacity: .5; }
}
