/* ================================================================
   ЭНТЕРНО Supplies — supplies.enterno.ru
   Control-room aesthetic: near-black surfaces, signal-orange accent,
   mono technical labels, viewfinder framing.
   ================================================================ */

:root {
  --bg:        #0b0c0f;
  --bg-band:   #101216;
  --surface:   #14161b;
  --surface-2: #191c22;
  --line:      #262a33;
  --line-soft: #1d2129;
  --text:      #e9e7e2;
  --text-dim:  #a0a4ad;
  --text-faint:#6b7078;
  --accent:    #ff4c14;
  --accent-hi: #ff6a3c;
  --ok:        #35d07f;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body:    "Onest", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---- global scanline texture ---- */
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.012) 3px 4px
  );
}

/* ---- reveal-on-scroll (hidden state only when JS is present) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover { background: var(--accent-hi); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--wide { width: 100%; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- REC dot ---- */
.rec-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 4px;
  animation: rec-blink 1.4s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%      { opacity: 0.25; box-shadow: none; }
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.header__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header__brand img { height: 26px; width: auto; }
.header__brand-tag {
  color: var(--accent);
  font-size: 0.62rem;
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  transform: translateY(-2px);
}
.header__nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.header__nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--text); }
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header__phone {
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
}
.header__phone:hover { color: var(--accent-hi); }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -280px; right: -180px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 76, 20, 0.13) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.hero__kicker {
  color: var(--accent);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
}
.hero__lead {
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats dt {
  color: var(--accent);
  margin-bottom: 4px;
}
.hero__stats dd {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 15ch;
}

/* ---- hero monitor mock ---- */
.hero__monitor { position: relative; }
.monitor {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
}
.monitor__bar,
.monitor__foot {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.66rem;
  padding: 2px 2px 12px;
}
.monitor__foot { padding: 12px 2px 2px; }
.monitor__bar span:first-child { color: var(--accent); }
.monitor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cam {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.35) 2px 3px),
    linear-gradient(160deg, #2a2f3a 0%, #171a21 55%, #10131a 100%);
}
.cam--b { background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.35) 2px 3px),
    linear-gradient(200deg, #232c31 0%, #141a1e 60%, #0f1417 100%); }
.cam--c { background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.35) 2px 3px),
    linear-gradient(140deg, #322d28 0%, #1c1916 55%, #121110 100%); }
.cam--d { background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.35) 2px 3px),
    linear-gradient(220deg, #2b2731 0%, #191621 60%, #100f16 100%); }
.cam__label {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.58rem;
  color: rgba(233, 231, 226, 0.75);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 6px;
}
.cam__box {
  position: absolute;
  border: 1px solid var(--accent);
  color: var(--accent-hi);
  font-size: 0.56rem;
  padding: 2px 5px;
  background: rgba(255, 76, 20, 0.08);
  animation: box-drift 5s ease-in-out infinite alternate;
}
.cam__box::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 6px; height: 6px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.cam__box--1 { bottom: 16%; left: 12%; }
.cam__box--2 { top: 34%; right: 12%; animation-delay: -1.6s; }
.cam__box--3 { bottom: 22%; right: 16%; animation-delay: -3s; color: var(--ok); border-color: var(--ok); background: rgba(53, 208, 127, 0.07); }
.cam__box--3::before { border-color: var(--ok); }
.cam__box--4 { top: 40%; left: 14%; animation-delay: -2.2s; }
@keyframes box-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(9px, -6px); }
}
.monitor__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
}
.monitor__corner--tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.monitor__corner--tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.monitor__corner--bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.monitor__corner--br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

/* ================= TICKER ================= */
.ticker {
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-band);
}
.ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  color: var(--text-faint);
  font-size: 0.68rem;
  animation: ticker-scroll 36s linear infinite;
}
.ticker__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.5rem;
  align-self: center;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ================= SECTIONS ================= */
.section { padding: 96px 0; }
.section--band {
  background: var(--bg-band);
  border-block: 1px solid var(--line-soft);
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__index {
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__sub { color: var(--text-dim); }

/* ---- catalog cards ---- */
.grid--cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.card {
  background: var(--bg);
  padding: 30px 26px 34px;
  position: relative;
  transition: background 0.25s;
}
.card:hover { background: var(--surface); }
.card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover::after { width: 100%; }
.card__num {
  color: var(--text-faint);
  display: block;
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---- analytics features ---- */
.grid--features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature__tag {
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.feature p { font-size: 0.9rem; color: var(--text-dim); }

/* ---- industries ---- */
.industries {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-soft);
}
.industries li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  transition: padding-left 0.25s, color 0.25s;
}
.industries li:hover { padding-left: 20px; color: var(--accent-hi); }
.industries li .mono { color: var(--text-faint); }

/* ---- process steps ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-top: 24px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: -32px;
  height: 1px;
  background: var(--line);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -3.5px; left: 0;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.step__num { color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.step p { font-size: 0.85rem; color: var(--text-dim); }

/* ---- why ---- */
.grid--why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
.why {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}
.why h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.why p { color: var(--text-dim); font-size: 0.92rem; }

/* ================= REQUEST ================= */
.section--request {
  background:
    radial-gradient(ellipse 900px 480px at 20% 0%, rgba(255, 76, 20, 0.09), transparent 70%),
    var(--bg-band);
  border-top: 1px solid var(--line-soft);
}
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.request__contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.request__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  transition: color 0.2s;
  width: fit-content;
}
.request__contact:hover { color: var(--accent-hi); }
.request__contact .mono { color: var(--text-faint); font-size: 0.62rem; }

.request__form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}
.field label span { color: var(--accent); }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  transition: border-color 0.2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field__error { font-size: 0.78rem; color: var(--accent-hi); }
.request__note {
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.request__form.is-sent .btn {
  background: var(--ok);
  pointer-events: none;
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.footer__brand img { height: 22px; width: auto; }
.footer__brand .mono { color: var(--accent); font-size: 0.58rem; }
.footer__legal {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 56ch;
}
.footer__legal a { color: var(--text-dim); }
.footer__legal a:hover { color: var(--accent-hi); }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.76rem;
}
.footer__contacts a { text-decoration: none; color: var(--text-dim); }
.footer__contacts a:hover { color: var(--accent-hi); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
  .step::before { right: -32px; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 64px 0 56px; }
  .hero__monitor { max-width: 560px; }
  .request { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid--cards { grid-template-columns: 1fr; }
  .grid--features { grid-template-columns: 1fr; gap: 32px; }
  .grid--why { grid-template-columns: 1fr; gap: 32px; }
  .industries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step::before { right: 0; }
  .header__phone { display: none; }
  .hero__stats { gap: 24px; }
  .request__form { padding: 24px 20px; }
  .hero__cta .btn { width: 100%; }
}
