/* ============================================================================
   Zentrolink — кастомные стили поверх Tailwind CDN.
   Концепция: тёмный фон (#0A0A0F), фиолетовый акцент (brand #7C5CFF),
   шрифт заголовков Space Grotesk, тело — системный sans-serif.
   ============================================================================ */

:root {
  --brand: #7C5CFF;
  --brand-soft: rgba(124, 92, 255, 0.16);
  --brand-glow: rgba(124, 92, 255, 0.45);
  --ink-900: #0A0A0F;
  --ink-800: #101019;
  --ink-700: #161624;
  --ink-600: #1F1F31;
  --ink-500: #2C2C44;
  --hairline: rgba(255, 255, 255, 0.08);
}

/* ---------- Базовые правила ---------- */

html { scroll-behavior: smooth; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.font-display, h1, h2, h3, h4, .headline, .section-title, .card-title, .brand-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

a { transition: color .18s ease, opacity .18s ease; }
button, .btn-primary, .btn-secondary { transition: all .2s ease; }

/* ---------- Декоративный фон страницы ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.page-bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9), transparent 70%);
}
.page-bg-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.page-bg-glow--a {
  top: -260px;
  left: -180px;
  background: radial-gradient(circle, rgba(124,92,255,0.45), transparent 60%);
  animation: floatA 22s ease-in-out infinite alternate;
}
.page-bg-glow--b {
  top: 360px;
  right: -240px;
  background: radial-gradient(circle, rgba(0,217,163,0.18), transparent 60%);
  animation: floatB 28s ease-in-out infinite alternate;
}
@keyframes floatA { from { transform: translate3d(0,0,0); } to { transform: translate3d(60px,40px,0); } }
@keyframes floatB { from { transform: translate3d(0,0,0); } to { transform: translate3d(-80px,-50px,0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-bg-glow--a, .page-bg-glow--b { animation: none; }
}

/* ---------- Лейаут-утилиты ---------- */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.section-hero {
  padding-top: clamp(96px, 14vw, 180px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section-head { max-width: 720px; }
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.section-sub {
  margin-top: 14px;
  color: #B5B5C9;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(10, 10, 15, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.brand-name { letter-spacing: -0.015em; }

.nav-link {
  color: #B5B5C9;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #E6E6EE;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}
.mobile-link:last-of-type { border-bottom: 0; }

/* ---------- Кнопки ---------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 14px 40px -16px var(--brand-glow);
}
.btn-primary:hover {
  background: #6E4DFF;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 22px 50px -18px var(--brand-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid var(--hairline);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* ---------- Hero ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.03);
  color: #B5B5C9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

.headline {
  font-size: clamp(36px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.02em;
}
.headline-accent {
  display: block;
  background: linear-gradient(120deg, #fff 0%, #C9B9FF 45%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #B5B5C9;
  line-height: 1.55;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: #B5B5C9;
  font-size: 14px;
  font-weight: 500;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
  opacity: .85;
}

/* ---------- Карточки ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(124,92,255,0.10), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,92,255,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.card:hover::before { opacity: 1; }

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.card-body {
  margin-top: 10px;
  color: #B5B5C9;
  font-size: 15px;
  line-height: 1.6;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.icon-wrap svg { width: 22px; height: 22px; }

/* ---------- Проекты ---------- */

.project-card { padding: 30px; }
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.project-tag {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge-live  { color: #4ADE80; background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); }
.badge-mvp   { color: #FACC15; background: rgba(250,204,21,0.08); border-color: rgba(250,204,21,0.25); }
.badge-dev   { color: #60A5FA; background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.25); }
.badge-proto { color: #C9B9FF; background: rgba(124,92,255,0.10); border-color: rgba(124,92,255,0.30); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #E6E6EE;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.card-link svg { transition: transform .2s ease; }
.card-link:hover { color: var(--brand); }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Тарифы ---------- */

.price-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.price-tag {
  margin-top: 4px;
  color: #B5B5C9;
  font-size: 14px;
}
.price-amount {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.price-unit {
  color: #7C7C99;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.price-meta {
  margin-top: 6px;
  color: #7C7C99;
  font-size: 13px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #E6E6EE;
  font-size: 15px;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-50deg);
}

.price-card--featured {
  border-color: rgba(124,92,255,0.40);
  background: linear-gradient(180deg, rgba(124,92,255,0.10), rgba(124,92,255,0.02));
  box-shadow: 0 30px 80px -40px var(--brand-glow);
}
.price-card--featured:hover {
  border-color: rgba(124,92,255,0.55);
}
.price-ribbon {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 8px 24px -8px var(--brand-glow);
}

.pricing-note {
  margin-top: 32px;
  text-align: center;
  color: #7C7C99;
  font-size: 14px;
}
.pricing-note strong { color: #E6E6EE; }

/* ---------- About / статистика ---------- */

.stat {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}
.stat-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #C9B9FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 8px;
  color: #B5B5C9;
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Contact ---------- */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  min-width: 88px;
  color: #7C7C99;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-value {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}
.contact-value:hover { color: var(--brand); }

.contact-form {
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--hairline);
}
.form-row { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  color: #B5B5C9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.form-input::placeholder { color: #4B4B68; }
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.15);
}
textarea.form-input { resize: vertical; min-height: 120px; }

.form-hint {
  margin-top: 12px;
  color: #7C7C99;
  font-size: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: rgba(7,7,12,0.6);
}
.footer-link { color: #B5B5C9; }
.footer-link:hover { color: #fff; }

/* ---------- Scroll-reveal анимация ---------- */

.reveal {
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
/* Animation only kicks in once JS marks the document as enhanced — keeps content
   visible by default for crawlers, no-JS users, and prefers-reduced-motion. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Утилиты для template-страницы проектов ---------- */

.prose-page { max-width: 760px; }
.prose-page h2 { font-size: 26px; font-weight: 600; color: #fff; margin-top: 40px; }
.prose-page p { color: #B5B5C9; line-height: 1.65; margin-top: 12px; font-size: 16px; }
.prose-page ul { margin-top: 12px; padding-left: 22px; color: #E6E6EE; }
.prose-page ul li { margin-top: 6px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #B5B5C9; font-weight: 500; font-size: 14px;
}
.back-link:hover { color: #fff; }
