/* TurDoc CRM — Base Light UI (возврат “как на скрине”)
   Светлый фон + мягкий градиент, светлые карточки, деловой стиль */

:root{
  --bg0: #f7fafc;
  --bg1: #eaf3ff;
  --bg2: #eefbf2;

  --text: #0f172a;
  --muted: rgba(15,23,42,.62);

  --border: rgba(226,232,240,.92);
  --shadow: 0 18px 45px rgba(2,8,23,.08);

  --card: rgba(255,255,255,.88);
  --card2: rgba(255,255,255,.72);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --primary: rgba(14,165,233,1);
  --primary-soft: rgba(14,165,233,.16);
}

*{ box-sizing:border-box; }
html, body{ width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(14,165,233,.10), rgba(34,197,94,.08)),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg2));
}

/* Container */
.container{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding-left:12px;
  padding-right:12px;
}
@media (min-width: 1640px){
  .container{ padding-left:0; padding-right:0; }
}

/* Header */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  margin-top: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.95), rgba(34,197,94,.70));
  box-shadow: 0 12px 30px rgba(14,165,233,.16);
}

/* Text */
.h1{
  margin:0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  color: rgba(15,23,42,.65);
  font-size: 12px;
  text-decoration:none;
}

/* Cards */
.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(2,8,23,.08);
  border-color: rgba(14,165,233,.35);
}

/* Forms */
.form{ display:flex; flex-direction:column; gap:10px; }
.input label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.input input, .input select, .input textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: rgba(255,255,255,.90);
  color: var(--text);
  outline: none;
}
.input input:focus, .input select:focus, .input textarea:focus{
  border-color: rgba(14,165,233,.45);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Footer */
.footer{
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}

/* Animations */
.fade-in{ animation: fadeIn .25s ease both; }
.slide-up{ animation: slideUp .25s ease both; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes slideUp{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform: translateY(0); } }

/* Utility */
.nowrap{ white-space:nowrap; }
.ellipsis{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }