:root {
  --bg: #f3f4f6;           /* Светлый нейтральный фон */
  --bg-soft: #ffffff;      /* Белый цвет для карточек и блоков */
  --card: #ffffff;
  --accent: #10b981;       /* Изумрудный зеленый (комфорт, уют, благоустройство) */
  --accent-2: #3b82f6;     /* Доверительный синий (надежность, стабильность) */
  --text: #1f2937;         /* Темно-серый графит для идеальной читаемости текста */
  --muted: #4b5563;        /* Второстепенный текст */
  --danger: #ef4444;       /* Аварийный красный */
  --warning: #f59e0b;      /* Предупреждающий оранжевый */
  --ok: #10b981;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.04); /* Очень мягкая светлая тень */
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -50%, rgba(59, 130, 246, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(16, 185, 129, 0.06), transparent 60%),
    linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.8); 
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), #3b82f6);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.brand h1 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: .2px; color: #111827; }

nav.primary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-btn {
  padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text); font-weight: 600; font-size: 14px;
  transition: all 0.15s ease;
}
.nav-btn:hover { background: rgba(0, 0, 0, 0.06); text-decoration: none; color: #000; }
.cta {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #ffffff; border: none; font-weight: 700;
}
.cta:hover { opacity: 0.95; color: #ffffff; }

/* Hero */
.hero { padding: 28px 0 8px; }
.hero-wrap { display: grid; gap: 20px; grid-template-columns: 1fr; }
.hero-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; color: #111827; }
.hero p { margin: 0 0 18px; color: var(--muted); }

.quick-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.qa {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #065f46; font-weight: 700;
}
.qa:hover { text-decoration: none; border-color: var(--accent); background: rgba(16, 185, 129, 0.12); }

/* Sections grid */
.grid {
  display: grid; gap: 20px; grid-template-columns: 1fr;
  margin: 20px 0 40px;
}
.card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.card h3 { margin: 0; padding: 18px 18px 0; font-size: 18px; color: #111827; }
.card .content { padding: 14px 18px 18px; color: var(--muted); }

.list, .links { margin: 0; padding: 0; list-style: none; }
.list li, .links li {
  padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
}
.list li:first-child, .links li:first-child { border-top: none; padding-top: 4px; }

.pill {
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  color: #047857; background: #d1fae5; flex-shrink: 0;
}
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.danger { background: #fee2e2; color: #991b1b; }
.meta { color: #6b7280; font-size: 12px; margin-top: 2px; }

/* Forms */
.form { display: grid; gap: 14px; color: var(--text); font-size: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: #374151;}
.input, .select, .textarea {
  width: 100%; padding: 12px; font: inherit; color: var(--text);
  border: 1px solid #d1d5db; border-radius: 10px;
  background: #ffffff;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 16px; border-radius: 10px; border: none;
  color: #ffffff; background: linear-gradient(135deg, var(--accent), #059669);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; text-decoration: none; color: #ffffff; }
.btn.ghost { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.btn.ghost:hover { background: #e5e7eb; }

/* Footer */
footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 24px 16px; gap: 16px; color: #6b7280; font-size: 14px;
}
.foot .brand h2 { font-size: 16px; margin: 0; color: #111827; }

/* Responsive */
@media (min-width: 640px) {
  .hero-wrap { grid-template-columns: 1.3fr .7fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }