/* notetelos.com — ERP для полиграфии (тёмная SaaS-палитра) */
:root {
  --bg: #0c0f14;
  --bg-elevated: #12171f;
  --surface: #171d28;
  --surface-2: #1e2633;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Sora", var(--font);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(167, 139, 250, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0d12 0%, #0c0f14 100%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  font: 600 1.15rem/1.1 var(--font-display);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo em { font-style: normal; color: var(--accent-2); font-weight: 700; }
.nav-pages { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.9rem; }
.nav-pages a { color: var(--muted); text-decoration: none; }
.nav-pages a:hover, .nav-pages a.is-active { color: var(--text); }
.header-tagline { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.header-cta { display: flex; gap: 0.65rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font: 600 0.95rem var(--font);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 10px 36px var(--accent-glow);
}
.btn--primary:hover { text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.hero { padding: 3.25rem 0 3.5rem; }
.hero__grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font: 600 0.78rem var(--font);
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 1rem;
}
.hero h1 {
  font: 700 clamp(1.9rem, 4.2vw, 2.9rem)/1.08 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero__lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero__visual {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.dash-preview { display: grid; gap: 0.6rem; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.dash-row strong { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 0.15rem; }
.dash-row span:last-child {
  font: 600 0.78rem var(--font-display);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.dash-row--new span:last-child { background: rgba(34, 211, 238, 0.15); color: var(--accent-2); }
.dash-row--work span:last-child { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
.dash-row--done span:last-child { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.section { padding: 3rem 0; }
.section__eyebrow {
  font: 700 0.75rem var(--font);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 0 0 0.5rem;
}
.section h2 {
  font: 700 clamp(1.45rem, 3vw, 2rem)/1.2 var(--font-display);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.section__sub { margin: 0 0 2rem; color: var(--muted); max-width: 60ch; }
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(99, 102, 241, 0.35); }
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent-2); text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0 0 1rem; color: var(--muted); }
.cta-band {
  margin: 1rem 0 0;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--muted); }
.lead-form {
  max-width: 32rem;
  margin: 1.75rem auto 0;
  text-align: left;
}
.lead-form__grid { display: grid; gap: 0.85rem; }
.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
}
.lead-form textarea { min-height: 5.5rem; resize: vertical; }
.lead-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.lead-form__status { margin: 0.75rem 0 0; font-size: 0.92rem; min-height: 1.4em; }
.lead-form__status.is-ok { color: #34d399; }
.lead-form__status.is-err { color: #f87171; }
.lead-form__submit { width: 100%; margin-top: 0.25rem; }
.prose-block { max-width: 70ch; color: var(--muted); }
.prose-block p { margin: 0 0 1rem; }
.prose-block h3 { color: var(--text); font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.nav-toggle { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); border: none; }
.nav-overlay[hidden] { display: none; }
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(12, 15, 20, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.mobile-bar__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: 600 0.68rem var(--font);
  text-decoration: none;
  cursor: pointer;
}
.mobile-bar__action--accent { color: var(--accent-2); }
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__title { margin: 0; font-weight: 600; font-size: 0.95rem; }
.nav-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .mobile-bar, .nav-overlay { display: none !important; }
}
@media (max-width: 899px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .header-tagline { display: none; }
  .nav-pages {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(3.75rem + env(safe-area-inset-bottom));
    width: min(20rem, 100vw - 1rem);
    z-index: 100;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    overflow-y: auto;
  }
  .nav-pages.is-open { display: flex; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle__icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  }
}
