/* ==========================================================================
   lk.lobnya.com — личный кабинет в стиле сайта lobnya.com (тема stk).
   Подключается после Bootstrap 3 и переопределяет его. Шрифты — fonts.css.
   ========================================================================== */

:root {
  --ink: #0f1a4a;
  --navy: #0f1a4a;
  --navy-2: #1a2b8f;
  --blue: #2340c8;
  --blue-600: #1a31a3;
  --blue-50: #eaf0ff;
  --accent: #ff5f1f;
  --accent-600: #e84d0e;
  --accent-50: #fff0e8;
  --cyan: #22b8ec;
  --green: #10a36b;
  --amber: #f59e0b;
  --red: #e5383b;

  --bg: #f2f5fb;
  --surface: #ffffff;
  --line: #e2e8f3;
  --text: #141b33;
  --muted: #5f6b85;
  --gray: #98a2b8;
  --on-dark-muted: rgba(255, 255, 255, .72);

  --grad: linear-gradient(135deg, #2340c8 0%, #22b8ec 100%);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Exo 2', 'Inter', system-ui, sans-serif;

  --r-sm: 2px;
  --r: 3px;
  --r-lg: 4px;
  --shadow-sm: 0 6px 20px -10px rgba(15, 26, 74, .18);
  --shadow: 0 16px 36px -16px rgba(15, 26, 74, .28);
  --shadow-lg: 0 28px 56px -24px rgba(15, 26, 74, .38);
  --shadow-blue: 0 12px 26px -10px rgba(35, 64, 200, .55);

  --header-h: 74px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
html { min-height: 100%; }
body {
  margin: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
a { color: var(--blue); transition: color .2s; }
a:hover, a:focus { color: var(--blue-600); text-decoration: none; }
small, .small { color: var(--muted); }
::selection { background: var(--blue-50); }
:focus-visible { outline: 3px solid rgba(47, 107, 255, .55); outline-offset: 2px; }

body > .container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1240px;
  padding: calc(var(--header-h) + 28px) 20px 48px !important;
}

/* ---------- Шапка ---------- */
/* как на сайте: светлый фон и «плавающая» белая панель */
.navbar-default {
  min-height: 0;
  margin: 0;
  padding: 12px 0 10px;
  border: 0;
  border-radius: 0;
  background: rgba(242, 245, 251, .92);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: none;
}
.navbar-default > .container {
  max-width: 1240px;
  width: calc(100% - 40px);
  padding: 0 12px 0 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px -22px rgba(15, 26, 74, .45);
}
.navbar-default > .container::before, .navbar-default > .container::after { display: none; }
.navbar-default > .container { display: flex; flex-wrap: wrap; align-items: center; }
.navbar-header { display: flex; align-items: center; min-height: var(--header-h); float: none; flex: none; margin: 0 !important; }
.navbar-default .navbar-collapse { flex: 1; padding: 0; }
.navbar-default .navbar-collapse.collapse { display: flex !important; align-items: center; }
.navbar-default .navbar-collapse > .navbar-nav:first-child { margin-left: 18px; }
.navbar-default .navbar-collapse > .navbar-nav.pull-right { margin-left: auto; }
.navbar-default > .container > .navbar-nav.pull-right { margin-left: auto; }
.navbar-nav { display: flex; align-items: center; margin: 0; float: none !important; }
.navbar-nav > li { float: none; }
.navbar-default .navbar-brand.lk-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
  padding: 0;
  margin-left: 0 !important;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}
.lk-brand__logo { height: 40px; width: auto; display: block; }
.lk-brand__sep { width: 1px; height: 26px; background: var(--line); }
.lk-brand__name { color: var(--ink); white-space: nowrap; }
.navbar-default .navbar-brand.lk-brand:hover, .navbar-default .navbar-brand.lk-brand:focus { color: var(--ink); }

.navbar-default .navbar-nav > li > a {
  margin: 0 1px;
  padding: 8px 10px;
  border-radius: var(--r);
  color: var(--text);
  font: 600 14.5px/20px var(--font-head);
  transition: background-color .2s, color .2s;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background: var(--bg);
  color: var(--blue);
}
.navbar-default .navbar-nav > .active > a { background: var(--blue-50); color: var(--blue); }
.navbar-default .navbar-nav > li > a .caret { color: var(--gray); margin-left: 2px; }
.navbar-nav .lk-nav-site > a { color: var(--muted) !important; font-weight: 500 !important; }
.navbar-default .navbar-nav > .lk-nav-logout > a {
  display: flex;
  align-items: center;
  height: 44px;
  margin-left: 8px;
  padding: 0 18px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
}
.navbar-default .navbar-nav > .lk-nav-logout > a:hover { background: var(--blue-50); color: var(--accent); }
.divider-vertical { display: none; }

.dropdown-menu {
  margin-top: 6px !important;
  padding: 8px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-lg);
  font-size: 15px;
}
.dropdown-menu > li > a {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 500;
  white-space: normal;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
  background: var(--blue-50);
  color: var(--blue);
}
.dropdown-menu .divider { margin: 6px 0; background: var(--line); }

.navbar-default .navbar-toggle {
  order: 2;
  margin: 0 0 0 auto;
  border-color: var(--line);
  border-radius: var(--r);
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background: var(--bg); }
.navbar-default .navbar-toggle .icon-bar { background: var(--ink); }
.navbar-default .navbar-collapse { border-color: var(--line); box-shadow: none; }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .navbar-default { padding: 8px 0; }
  .navbar-default > .container { width: calc(100% - 24px); padding: 0 10px 0 14px; display: block; }
  .navbar-header { justify-content: space-between; width: 100%; }
  .navbar-default .navbar-brand.lk-brand { font-size: 16px; gap: 10px; }
  .lk-brand__logo { height: 32px; }
  .navbar-header .navbar-toggle { order: 2; }
  .navbar-default .navbar-brand.lk-brand { order: 1; }
  .navbar-default .navbar-collapse.collapse { display: none !important; }
  .navbar-default .navbar-collapse.collapse.in, .navbar-default .navbar-collapse.collapsing { display: block !important; }
  .navbar-nav { display: block; margin: 0 0 12px !important; }
  .navbar-default .navbar-nav > li > a { margin: 2px 0; padding: 12px 10px; font-size: 17px; }
  .navbar-default .navbar-nav > .lk-nav-logout > a { margin: 10px 0 0; justify-content: center; }
  .navbar-default .navbar-nav .open .dropdown-menu { position: static; float: none; background: var(--bg); border: 0; box-shadow: none; }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: var(--text); padding: 10px 14px; }
  body > .container { padding: calc(var(--header-h) + 34px) 16px 40px !important; }
}

/* ---------- Заголовок страницы ---------- */
.page-header {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.page-header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.page-header h3:empty { display: none; }
.page-header .label { font-family: var(--font); font-size: 13px; }
span.timeago { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Карточки ---------- */
#content { min-width: 0; }
.well {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.well-sm { padding: 16px 20px; font-size: 17px; }
.well-sm strong { font-family: var(--font-head); color: var(--ink); }
.well-sm .glyphicon { color: var(--blue); margin-left: 6px; }

.bs-callout {
  position: relative;
  margin: 36px 0 14px;
  padding: 0 0 0 30px;
  border: 0 !important;
  background: none !important;
}
.bs-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.bs-callout h4, .bs-callout-info h4 {
  margin: 0;
  color: var(--ink) !important;
  font-size: 20px;
}

/* ---------- Таблицы ---------- */
.table {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table > thead > tr > th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line) !important;
  background: #f7f9fd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  vertical-align: bottom;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td,
.table > tr > td, .table > tr > th {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.table > tbody > tr:first-child > td, .table > tbody > tr:first-child > th,
.table > tr:first-child > td, .table > tr:first-child > th { border-top: 0; }
.table-striped > tbody > tr:nth-of-type(odd), .table-striped > tr:nth-of-type(odd) { background: transparent; }
.table-striped > tbody > tr:nth-of-type(even), .table-striped > tr:nth-of-type(even) { background: #fafbfe; }
.table > tbody > tr:hover { background: var(--blue-50); }
.table-condensed > tbody > tr > td, .table-condensed > thead > tr > th { padding: 8px 12px; }
.table-bordered, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border-color: var(--line); }
/* «подпись: значение» (таблицы без шапки) — подпись приглушённая */
.table:not(:has(thead)) td:first-child { color: var(--muted); }
.table td strong { color: var(--ink); }
#content > .table, #content .table { display: table; }
@media (max-width: 767px) {
  #content { overflow-x: auto; }
  .table > thead > tr > th, .table > tbody > tr > td { padding: 10px 12px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r) !important;
  font: 600 15px/1 var(--font-head);
  letter-spacing: .01em;
  text-shadow: none;
  box-shadow: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  vertical-align: middle !important;
}
.btn:active, .btn.active { transform: translateY(1px); box-shadow: none; }
/* основное действие — оранжевое, как «Подключить» на сайте */
.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(255, 95, 31, .6);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-600) !important;
  border-color: var(--accent-600) !important;
  transform: translateY(-2px);
}
.btn-success, .btn-info {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: var(--shadow-blue);
}
.btn-success:hover, .btn-info:hover { background: var(--blue-600) !important; border-color: var(--blue-600) !important; transform: translateY(-2px); }
.btn-default {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-default:hover, .btn-default:focus {
  background: #fff;
  border-color: rgba(47, 107, 255, .35);
  color: var(--blue);
}
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-warning { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-warning:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; margin: 0 0 0 8px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Метки ---------- */
.label {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}
.label-default { background: var(--blue-50); color: var(--blue); }
.label-primary { background: var(--navy); color: #fff; font-size: 13px; padding: 6px 12px; }
.label-info { background: #e3f6fd; color: #0b7aa8; }
.label-success { background: #e2f6ee; color: var(--green); }
.label-warning { background: var(--accent-50); color: var(--accent-600); }
.label-danger { background: #fde8e8; color: var(--red); }

/* ---------- Формы ---------- */
.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
  height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid var(--line);
  border-radius: var(--r) !important;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px !important;
  line-height: 44px !important;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea, textarea.form-control { height: auto !important; min-height: 120px; padding: 10px 14px !important; line-height: 1.5 !important; }
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(35, 64, 200, .12);
}
label { color: var(--ink); font-weight: 600; font-size: 14px; }
.help-block { color: var(--muted); font-size: 13px; }

dl.zend_form { margin: 0; }
dl.zend_form dt { margin: 0 0 6px; font-weight: 600; }
dl.zend_form dd { margin: 0 0 18px; }
dl.zend_form dd:last-child { margin-bottom: 0; }
dl.zend_form dt:empty, dl.zend_form dt#send-label { display: none; }
dl.zend_form .btn { width: 100%; height: 50px; font-size: 16px; }
dl.zend_form label.required::after { content: ''; }

ul.errors {
  display: block;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #f7caca;
  border-radius: var(--r);
  background: #fdf1f1;
  text-shadow: none;
}
ul.errors li { color: var(--red); font-size: 14px; }

/* ---------- Вход ---------- */
.lk-login {
  max-width: 440px;
  margin: 12px auto 0;
  float: none !important;
  padding: 32px !important;
  box-shadow: var(--shadow) !important;
}
.lk-login__title { margin: 0 0 6px; font-size: 26px; }
.lk-login__lead { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.lk-login__help { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lk-login__help a { font-weight: 600; }
.row:has(> .lk-login) { margin: 0; }

/* ---------- Уведомления ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  font-size: 15px;
}
.alert-info { background: var(--blue-50); border-color: #cfdcff; color: var(--navy-2); }
.alert-success { background: #e2f6ee; border-color: #bfe9d7; color: #0b7a51; }
.alert-warning { background: var(--accent-50); border-color: #ffd5bf; color: #a8410f; }
.alert-danger, .alert-error { background: #fdf1f1; border-color: #f7caca; color: #b3282b; }

/* ---------- Подвал ---------- */
#footer {
  position: static !important;
  flex: none;
  height: auto !important;
  padding: 36px 0 28px;
  background: var(--navy) !important;
  color: var(--on-dark-muted);
  font-size: 14px;
}
#footer > .container { max-width: 1240px; width: 100%; padding: 0 20px; }
#footer .container .container { padding: 0; width: auto; }
.lk-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.lk-footer__brand { display: flex; align-items: center; gap: 16px; }
.lk-footer__brand img { height: 34px; width: auto; }
.lk-footer__phones { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.lk-footer__phones a { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.lk-footer__phones a:hover { color: var(--cyan); }
.lk-footer__bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
}
#footer a { color: #fff; }
#footer a:hover { color: var(--cyan); }
#footer p { margin: 0; }

/* ---------- jQuery UI datepicker ---------- */
.ui-widget { font-family: var(--font) !important; font-size: 14px !important; }
.ui-datepicker { padding: 8px; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-lg); }
.ui-datepicker .ui-widget-header { background: var(--navy) !important; border: 0 !important; color: #fff; border-radius: var(--r) !important; }
.ui-datepicker .ui-state-default { background: #fff !important; border: 1px solid var(--line) !important; color: var(--text) !important; border-radius: var(--r-sm); text-align: center; }
.ui-datepicker .ui-state-hover, .ui-datepicker .ui-state-active { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.ui-datepicker .ui-state-highlight { border-color: var(--accent) !important; }
.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year { height: 30px !important; line-height: 28px !important; font-size: 14px !important; padding: 0 6px !important; color: var(--text); }
