/* Linnake WAF (site2) — общие стили. Чистый CSS, ноль внешних зависимостей. */

:root {
  --brand: #e8731a;
  --lilac: #8b5cf6;
  --lilac-glow: rgba(139, 92, 246, 0.25);
  --link: #4c9aff;

  --bg-base: #060911;
  --bg-surface: rgba(15, 22, 36, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --radius-lg: 16px;
  --container: 1180px;
  --shadow-dark: 0 18px 48px rgba(0, 0, 0, 0.5);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Оверлей поверх bg.jpg: контраст текста, щит остаётся заметным мотивом */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.72) 0%, rgba(6, 9, 17, 0.86) 100%);
}

a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: #fff; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 115, 26, 0.4) 30%, rgba(139, 92, 246, 0.4) 70%, transparent 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
  letter-spacing: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover,
.nav-links a.active { color: #fff; text-decoration: none; }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--lilac));
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--lilac) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(232, 115, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-color: var(--border-subtle);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(139, 92, 246, 0.4); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero {
  position: relative;
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 10px var(--lilac);
}

.hero h1,
.page-hero h1 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #ffa25b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 850px;
  margin: 0 auto 20px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}
.hero .hero-lead { margin: 0 auto 36px; }

.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Секции и карточки ---------- */
.section { padding: 60px 0 80px; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin: 0 0 16px; color: #fff; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 48px; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-grid .card { display: flex; flex-direction: column; }
.pricing-grid .btn { margin-top: auto; }

.card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
}
.card.featured {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
}
.card h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; color: #fff; }
.card p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; }

.price { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 24px; }

/* ---------- Таблица требований (architecture) ---------- */
.specs-table-wrap { overflow-x: auto; }
.specs-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.specs-table th,
.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}
.specs-table th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-surface);
}
.specs-table td { color: var(--text-muted); font-size: 0.95rem; }
.specs-table td:first-child { color: var(--text-main); font-weight: 600; white-space: nowrap; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info-list { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232, 115, 26, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-details strong { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-details span,
.contact-details a { font-size: 1.05rem; font-weight: 600; color: #fff; }

/* ---------- Формы ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: #fff; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(12, 17, 29, 0.65);
  color: #fff;
  transition: all 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px var(--lilac-glow);
}
.form-note { font-size: 0.825rem; color: var(--text-muted); margin: 16px 0 0; }
.form-submit { margin-top: 20px; width: 100%; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(26, 127, 55, 0.12);
  border: 1px solid rgba(26, 127, 55, 0.4);
  color: #7ee2a8;
  font-size: 0.9rem;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #04060b;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  body { background-attachment: scroll; }
  .mobile-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px 24px;
    background: rgba(6, 9, 17, 0.98);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { bottom: 0; }

  .bento-grid,
  .features-grid,
  .arch-grid,
  .pricing-grid,
  .contact-grid,
  .form-grid { grid-template-columns: 1fr; }
}
