/* Кабинет курьера КС «Южный экспресс» — цвета взяты с основного сайта компании */
:root {
  --blue-light: #46AADC;
  --blue: #1874C1;
  --blue-dark: #0D4BB1;
  --link: #006BC6;
  --accent: #F65529;
  --accent-dark: #d9431b;
  --text: #414141;
  --muted: #7A7A7A;
  --line: #DEDEDE;
  --bg: #F2F2F2;
  --card: #FFFFFF;
  --footer-top: #EEEEEE;
  --footer-bottom: #D9E1E4;
  --ok: #2e9b4f;
  --warn: #e0a100;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { color: var(--accent); font-size: 26px; font-weight: 500; }
h3 { font-size: 17px; font-weight: 500; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */
.header {
  background: linear-gradient(#ffffff, #EDEDED);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--text); }
.logo img { height: 72px; width: auto; display: block; }
.logo-tag {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}
.logo-tag b { display: block; color: var(--blue); font-size: 15px; font-weight: 500; }
.header-phone { text-align: right; font-size: 13px; color: var(--muted); }
.header-phone a { display: block; font-size: 20px; font-weight: 500; color: var(--text); }
.header-phone a:hover { color: var(--accent); }

/* ---------- Меню ---------- */
.nav { background: linear-gradient(var(--blue), var(--blue-dark)); }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  font-weight: 500;
}
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav .nav-login { margin-left: auto; }
.nav .nav-login a { background: var(--accent); }
.nav .nav-login a:hover { background: var(--accent-dark); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 26px;
  font: 500 15px/1.2 "Roboto", Arial, sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eaf4fb; color: var(--blue); }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Баннер ---------- */
.banner {
  background: linear-gradient(var(--blue-light), var(--blue));
  color: #fff;
  overflow: hidden;
}
.banner .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.banner h1 { font-size: 36px; font-weight: 500; margin-bottom: 14px; }
.banner p { font-size: 17px; margin: 0 0 24px; opacity: .95; max-width: 520px; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.banner-img { width: 100%; height: auto; display: block; }

/* ---------- Секции ---------- */
.section { padding: 48px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(var(--blue-light), var(--blue));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Преимущества */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
}
.feature { display: flex; gap: 14px; }
.feature-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Демо кабинета ---------- */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(13, 75, 177, .12);
  overflow: hidden;
}
.demo-bar {
  background: linear-gradient(var(--blue), var(--blue-dark));
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-bar b { font-weight: 500; }
.demo-label {
  font-size: 12px;
  background: var(--accent);
  border-radius: 10px;
  padding: 2px 10px;
}
.demo-courier { font-size: 13px; opacity: .9; }
.demo-body { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 420px; }
.demo-list { border-right: 1px solid var(--line); }
.demo-tabs { display: flex; border-bottom: 1px solid var(--line); }
.demo-tab {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 6px;
  font: 500 14px "Roboto", Arial, sans-serif;
  color: var(--muted);
  cursor: pointer;
}
.demo-tab.active { color: var(--blue); border-bottom-color: var(--accent); }
.demo-tab .count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
}
.demo-orders { list-style: none; margin: 0; padding: 0; max-height: 372px; overflow-y: auto; }
.demo-order {
  padding: 12px 16px;
  border-bottom: 1px solid #EDEDED;
  cursor: pointer;
}
.demo-order:hover { background: #F8FBFE; }
.demo-order.selected { background: #EAF4FB; box-shadow: inset 3px 0 0 var(--accent); }
.demo-order-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.demo-order-top b { color: var(--text); font-weight: 500; }
.demo-order-addr { font-size: 14px; margin-top: 2px; }
.demo-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-new { background: #FFF1EC; color: var(--accent-dark); }
.tag-way { background: #EAF4FB; color: var(--blue); }
.tag-done { background: #E8F6EC; color: var(--ok); }
.tag-urgent { background: var(--accent); color: #fff; }

.demo-detail { padding: 20px; }
.demo-detail h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.route { list-style: none; margin: 16px 0; padding: 0; }
.route li { position: relative; padding: 0 0 16px 26px; }
.route li::before {
  content: "";
  position: absolute; left: 4px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-light);
}
.route li:last-child::before { background: var(--accent); }
.route li:not(:last-child)::after {
  content: "";
  position: absolute; left: 8px; top: 18px; bottom: 0;
  border-left: 2px dashed var(--line);
}
.route small { display: block; color: var(--muted); font-size: 12px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.detail-grid span { display: block; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Правила / контакты ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0 0 10px 28px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 6px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EDEDED; }
.contact-row:last-child { border-bottom: 0; }
.contact-row span { color: var(--muted); }
.contact-row a, .contact-row b { font-weight: 500; text-align: right; }

/* ---------- Подвал ---------- */
.footer {
  background: linear-gradient(var(--footer-top), var(--footer-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ---------- Страница входа ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-main {
  flex: 1;
  background: linear-gradient(var(--blue-light), var(--blue));
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.login-main .wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.login-info { color: #fff; }
.login-info h1 { font-size: 32px; font-weight: 500; }
.login-info p { font-size: 16px; opacity: .95; max-width: 460px; }
.login-info ul { padding-left: 18px; margin: 16px 0 0; opacity: .95; }
.login-info li { margin-bottom: 6px; }

.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 28px 28px 24px;
}
.login-card h2 { margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%;
  border: 1px solid #C9D3DA;
  border-radius: var(--radius);
  padding: 11px 12px;
  font: 15px "Roboto", Arial, sans-serif;
  color: var(--text);
  background: #FCFCFC;
}
.field input:focus { outline: 0; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(70, 170, 220, .25); background: #fff; }
.field.invalid input { border-color: var(--accent); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted);
}
.pass-toggle:hover { color: var(--blue); }
.pass-toggle svg { width: 20px; height: 20px; display: block; }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 18px; gap: 10px; }
.login-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-card .btn { width: 100%; }
.alert {
  display: none;
  background: #FFF1EC;
  border: 1px solid #F9B7A4;
  color: #B33A17;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert.show { display: block; }
.login-help { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .banner .wrap, .login-main .wrap, .two-col { grid-template-columns: 1fr; }
  .banner-img { max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-orders { max-height: 260px; }
  .login-card { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .logo img { height: 52px; }
  .logo-tag, .header-phone span { display: none; }
  .header-phone a { font-size: 16px; }
  .nav a { padding: 10px 12px; font-size: 14px; }
  .banner h1 { font-size: 27px; }
  .login-info h1 { font-size: 26px; }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .login-card { padding: 22px 18px; }
}
