/*
  ╔══════════════════════════════════════════════════════╗
  ║  🎨 InfoOGE — Общая дизайн-система                 ║
  ║  Подключай этот файл на всех страницах сайта        ║
  ╚══════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════
   CSS-ПЕРЕМЕННЫЕ — акцент и палитра
   Меняй только --hue / --sat / --lit
═══════════════════════════════════════ */
:root {
  --hue: 348; --sat: 55%; --lit: 35%;

  --accent:        hsl(var(--hue), var(--sat), var(--lit));
  --accent-hover:  hsl(var(--hue), var(--sat), calc(var(--lit) - 5%));
  --accent-light:  hsl(var(--hue), calc(var(--sat) - 15%), 95%);
  --accent-border: hsl(var(--hue), calc(var(--sat) - 20%), 80%);
  --accent-text:   hsl(var(--hue), var(--sat), calc(var(--lit) - 3%));
  --accent-glow:   hsl(var(--hue), calc(var(--sat) + 5%), 68%);

  --bg:       #eef0f5;
  --bg-white: #ffffff;
  --border:   #e2e5ed;
  --border-d: #cdd1dc;
  --text:     #0d1017;
  --text-2:   #4e5568;
  --text-3:   #9aa0b4;
  --dark:     rgb(9, 9, 11);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
}

/* ═══════════════════════════════════════
   СБРОС
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ТИПОГРАФИКА
═══════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent-hover); }

/* ═══════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px hsl(var(--hue),var(--sat),var(--lit),0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsl(var(--hue),var(--sat),var(--lit),0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1.5px solid var(--border-d);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid transparent;
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

/* ═══════════════════════════════════════
   ФОРМЫ
═══════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-d);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--hue),var(--sat),var(--lit),0.12);
}

/* ═══════════════════════════════════════
   КАРТОЧКИ
═══════════════════════════════════════ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   АЛЕРТЫ
═══════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-error {
  background: hsl(0, 80%, 96%);
  border: 1px solid hsl(0, 70%, 85%);
  color: hsl(0, 60%, 40%);
}

.alert-success {
  background: hsl(140, 60%, 95%);
  border: 1px solid hsl(140, 50%, 75%);
  color: hsl(140, 50%, 30%);
}

/* ═══════════════════════════════════════
   EYEBROW (метка-надпись над заголовком)
═══════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   GLASSMORPHISM-ПАНЕЛИ (как хедер лендинга)
═══════════════════════════════════════ */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(24px) saturate(1.9) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 4px 28px rgba(0,0,0,0.08), inset 0 1.5px 0 rgba(255,255,255,0.75);
}

.glass-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 28px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════
   АНИМИРОВАННЫЕ ПЯТНА-ФОНА (blob)
   Использование: добавь .blob-wrap + .blob.b1/.b2/.b3 в контейнер
═══════════════════════════════════════ */
.blob-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes blob1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(60px,-60px) scale(1.1)} 66%{transform:translate(-40px,50px) scale(0.92)} }
@keyframes blob2 { 0%,100%{transform:translate(0,0) scale(1)} 40%{transform:translate(-70px,70px) scale(1.08)} 70%{transform:translate(50px,-40px) scale(0.95)} }
@keyframes blob3 { 0%,100%{transform:translate(-50%,0) scale(1)} 50%{transform:translate(-40%,-50px) scale(1.06)} }

.blob.b1 { width:500px; height:500px; top:-100px; right:-60px; background:hsl(var(--hue),var(--sat),46%,0.30); filter:blur(90px); animation:blob1 14s ease-in-out infinite; }
.blob.b2 { width:380px; height:380px; top:30%; left:-40px; background:hsl(var(--hue),calc(var(--sat)+8%),36%,0.22); filter:blur(70px); animation:blob2 11s ease-in-out infinite; }
.blob.b3 { width:280px; height:280px; top:10px; left:50%; background:hsl(calc(var(--hue)-15),calc(var(--sat)-5%),60%,0.16); filter:blur(65px); animation:blob3 16s ease-in-out infinite; }

/* ═══════════════════════════════════════
   УТИЛИТЫ
═══════════════════════════════════════ */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.w-full      { width: 100%; }