:root {
  --blue: #003f8f;
  --blue-light: #0a60c8;
  --orange: #ef8b2e;
  --text: #15314d;
  --bg: #f3f4f6;
  --line: #e4edf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
}

button,
input,
textarea,
select {
  font-family: Helvetica, Arial, sans-serif;
}

.site-levels {
  display: block;
}

.level-top {
  border-bottom: 1px solid var(--line);
}

.level-top + .level-center {
  margin-top: 28px;
}

.container {
  width: min(1580px, 98vw);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 230px;
  height: auto;
  display: block;
  object-fit: contain;
  transform: none;
}

.auth-logo img {
  width: 300px;
  max-width: min(92vw, 300px);
  transform: none;
}

.auth-topbar .topbar-inner {
  justify-content: flex-start;
}

.menu {
  display: flex;
  align-items: center;
  gap: 52px;
}

.menu a {
  text-decoration: none;
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
}

.phone {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  overflow: visible;
}

.phone img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  margin-top: 2px;
  flex: 0 0 auto;
  overflow: visible;
}

.hero {
  padding: 20px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 470px minmax(610px, 1fr) 280px;
  align-items: center;
  gap: 18px;
}

.hero-man {
  height: 840px;
  background: var(--bg) url("/assets/man-no-bg.svg") center top / auto 104% no-repeat;
  align-self: center;
  transform: translateY(0);
}

.hero-copy {
  padding-top: 182px;
  padding-bottom: 0;
  max-width: 620px;
  align-self: center;
  justify-self: center;
  transform: translateX(24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 840px;
}

.hero-title {
  margin: 0;
  color: #0f365d;
  font-size: clamp(66px, 4.2vw, 84px);
  line-height: 1.01;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-lead {
  margin: 10px 0 30px;
  color: #0f365d;
  font-size: 37px;
  font-weight: 600;
  text-transform: uppercase;
}

.cta {
  border: 0;
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px;
  display: inline-block;
  width: auto;
  align-self: flex-start;
}

.hero-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #0f365d;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 600;
}

.hero-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.hero-list li::before {
  display: none;
}

.hero-list li img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.hero-map {
  align-self: start;
  justify-self: center;
  width: 500px;
  height: 330px;
  position: relative;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding: 0;
  /* Выше: было 248px — поднято к шапке/заголовку */
  transform: translate(-84px, 155px);
}

.hero-map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
}

.icon-strip {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 22px;
  /* Шире .hero-copy, чтобы карточки могли вырасти до max-width у img */
  width: min(1013px, calc(100vw - 48px));
  max-width: none;
}

.icon-strip .item {
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 0;
  background: transparent;
  display: block;
}

.icon-strip .item img {
  width: 100%;
  max-width: 195px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

.section-title {
  margin: 42px 0 24px;
  text-align: center;
  color: var(--blue);
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 900;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  gap: 18px;
  background: #fff;
  align-items: flex-start;
}

.level-center .section-title {
  margin-bottom: 36px;
}

.feature-icon {
  min-width: 112px;
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
  margin-top: 2px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: clamp(28px, 1.6vw, 36px);
  text-transform: none;
  line-height: 1.05;
}

.feature-card p {
  margin: 0;
  color: #3b5980;
  font-size: clamp(16px, 1vw, 22px);
  line-height: 1.14;
  font-weight: 600;
}

.steps {
  margin-top: 88px;
  padding-bottom: 8px;
}

.steps .section-title {
  margin: 0 0 26px;
  text-align: left;
  text-transform: none;
  font-size: clamp(52px, 3.4vw, 72px);
  line-height: 1.03;
  font-weight: 700;
}

.step-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.step-list::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  bottom: 22px;
  width: 2px;
  background: #ebb87c;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.step h4 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: clamp(40px, 2.4vw, 50px);
  text-transform: none;
  line-height: 1.03;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: #3b5980;
  font-size: clamp(23px, 1.45vw, 30px);
  line-height: 1.12;
  max-width: 1300px;
}

.steps .cta {
  padding: 14px 28px;
  font-size: clamp(34px, 2vw, 44px);
  border-radius: 10px;
}

.services {
  margin-top: 74px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 24px 30px;
  background: #fff;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;

}

.service-card h3 {
  margin: 22px 0 14px;
  color: var(--blue);
  font-size: clamp(44px, 2.3vw, 56px);
  text-transform: none;
  line-height: 1.05;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: #3b5980;
  font-size: clamp(26px, 1.3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 92%;
}

.service-icon {
  width: 98px;
  height: 98px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.services .section-title {
  text-transform: none;
  font-size: clamp(70px, 3.8vw, 88px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 34px;
}

.partner {
  margin-top: 72px;
  margin-bottom: 34px;
}

.partner-inner {
  display: grid;
  grid-template-columns: minmax(0, 520px) 460px;
  justify-content: center;
  gap: 500px;
  padding: 24px 28px 4px;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(20, 53, 89, 0.06);
}

.partner-copy {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-left: 14px;
}

.partner-mail {
  width: min(420px, 100%);
  max-width: 100%;
  height: auto;
  margin-top: -152px;
  margin-left: 42px;
  margin-bottom: -140px;
  display: block;
  object-fit: contain;
}

.partner h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(40px, 3.7vw, 56px);
  line-height: 1.08;
  white-space: nowrap;
  text-transform: none;
}

.partner-copy p {
  margin: 0;
  color: #144a82;
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1.14;
  font-weight: 700;
  text-transform: none;
}

.partner-form {
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 0;
  margin-left: 0;
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  padding: 0 12px;
  height: 46px;
  border: 2px solid #0c4ea4;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  font-size: 14px;
  color: var(--text);
}

.muted {
  margin-top: 6px;
  font-size: 12px;
  color: #6d88aa;
}

.partner .cta {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.partner-form textarea {
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1a8f47;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: none;
  max-width: 320px;
  font-size: 14px;
}

.toast-error {
  background: #c93f3f;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-page {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 28px 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.auth-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(15, 54, 93, 0.08);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}

.auth-sub {
  margin: 0 0 18px;
  color: #3b5980;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #24496f;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  border: 2px solid #0c4ea4;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 12px 20px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.85s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-man {
    max-width: 420px;
    width: 100%;
    justify-self: center;
    height: 500px;
  }

  .hero-copy {
    text-align: center;
    padding-top: 0;
    padding-bottom: 16px;
    transform: none;
    min-height: 0;
  }

  .hero-title,
  .hero-lead,
  .cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(44px, 10vw, 74px);
  }

  .hero-lead {
    font-size: clamp(22px, 5vw, 32px);
  }

  .cta {
    font-size: clamp(24px, 5vw, 34px);
  }

  .hero-list {
    justify-items: center;
    font-size: clamp(22px, 4.2vw, 34px);
    gap: 8px;
  }

  .hero-list li img {
    width: clamp(28px, 4vw, 44px);
    height: clamp(28px, 4vw, 44px);
  }

  .hero-list li {
    padding-left: 0;
  }

  .hero-list li::before {
    display: none;
  }

  .icon-strip {
    margin-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .icon-strip .item img {
    max-width: min(195px, 40vw);
  }

  .hero-map {
    width: min(500px, 92vw);
    height: auto;
    min-height: 200px;
    transform: translate(0, 0);
    justify-self: center;
  }

  .partner-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    border-radius: 20px;
    gap: 20px;
    width: 100%;
    max-width: min(560px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
    justify-items: stretch;
  }

  .partner-copy {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  /* Иначе длинный заголовок раздувает сетку и «уезжает» вбок на телефоне */
  .partner h2 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: manual;
    max-width: 100%;
  }

  .partner-copy p {
    margin-inline: auto;
    max-width: 38ch;
    text-wrap: balance;
  }

  .partner-mail {
    margin-top: -72px;
    margin-bottom: -44px;
    margin-left: auto;
    margin-right: auto;
    width: min(320px, 88vw);
  }

  .partner-form input {
    font-size: 16px;
    height: auto;
  }

  .partner .cta {
    font-size: 14px;
  }

  .muted {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .menu {
    display: none;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 36px;
  }

  .logo img {
    width: 150px;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}

/* Телефоны: одна закреплённая кнопка заявки + чуть плотнее блоки (ПК не затрагиваем) */
.mobile-cta-dock {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  body.mobile-no-bottom-dock-padding {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .topbar-inner {
    gap: 10px;
    min-height: 0;
    padding-block: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 6px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo img {
    width: min(150px, 46vw);
  }

  .phone {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
    font-size: clamp(12px, 3.4vw, 16px);
  }

  .phone img {
    width: clamp(20px, 5vw, 26px);
    height: clamp(20px, 5vw, 26px);
  }

  .phone span {
    display: inline-block;
    max-width: min(260px, 52vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .container {
    width: min(1580px, 94vw);
  }

  .section-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.12;
  }

  .partner {
    overflow-x: clip;
    max-width: 100%;
    box-sizing: border-box;
  }

  .partner > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: clamp(10px, 4vw, 18px);
    box-sizing: border-box;
    max-width: 100%;
  }

  .partner-inner {
    padding: 18px clamp(14px, 4vw, 18px) 22px;
  }

  .partner-copy p {
    max-width: 100%;
    text-wrap: unset;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.2;
  }

  /* Отдельно от секций — длинное «Будьте нашими партнерами» */
  .partner h2 {
    font-size: clamp(22px, 6.8vw, 29px);
    line-height: 1.08;
    text-align: center;
    margin-inline: auto;
  }

  .partner-mail {
    margin-top: -32px;
    margin-bottom: -26px;
    width: min(236px, 74vw);
  }

  .partner-form {
    width: 100%;
    max-width: 100%;
  }

  .muted {
    text-align: center;
  }

  .feature-card h3,
  .service-card h3,
  .step h4 {
    font-size: clamp(17px, 4.4vw, 20px);
  }

  .feature-card p,
  .service-card p,
  .step p {
    font-size: 15px;
    line-height: 1.45;
  }

  #leadForm {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .hero-copy > .cta,
  .steps .cta {
    display: none !important;
  }

  .mobile-cta-dock {
    display: flex;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      to top,
      rgba(243, 244, 246, 0.98) 0%,
      rgba(243, 244, 246, 0.88) 55%,
      rgba(243, 244, 246, 0) 100%
    );
    pointer-events: none;
  }

  .mobile-cta-dock__btn {
    pointer-events: auto;
    width: min(520px, 100%);
    margin: 0;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 54, 93, 0.18);
  }

  /* Плашку скрываем через JS (блок формы в зоне видимости) */
  .mobile-cta-dock.mobile-cta-dock--hidden-at-form {
    display: none !important;
  }
}

/* Очень узкие смартфоны: шапка в две строки, нижняя панель компактнее */
@media (max-width: 400px) {
  .topbar-inner {
    padding-inline: max(12px, env(safe-area-inset-left));
    gap: 8px;
  }

  .logo {
    flex: 1 1 100%;
    justify-content: center;
  }

  .logo img {
    width: min(132px, 44vw);
  }

  .phone {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 13px;
  }

  .phone span {
    max-width: 100%;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.mobile-no-bottom-dock-padding {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-cta-dock {
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      to top,
      rgba(243, 244, 246, 0.98) 0%,
      rgba(243, 244, 246, 0.75) 60%,
      rgba(243, 244, 246, 0) 100%
    );
  }

  .mobile-cta-dock__btn {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 54, 93, 0.14);
  }

  #leadForm {
    scroll-margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* —— Кабинет: заявки —— */
.desk-page {
  min-height: 100vh;
  background: #f4f6fb;
}

.desk-topbar {
  background: #fff;
  border-bottom: 1px solid #e6e9f0;
}

.desk-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.desk-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1d26;
}

.desk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desk-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.desk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.desk-toolbar label {
  font-size: 0.85rem;
  color: #5c6370;
}

.desk-toolbar select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dae4;
  background: #fff;
  font-size: 0.95rem;
}

#openClosedAppsBtn {
  margin-top: 18px;
}

.desk-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6e9f0;
  overflow: hidden;
}

.app-table-wrap {
  overflow-x: auto;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.app-table th,
.app-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef0f5;
}

.app-table th {
  background: #f8f9fc;
  font-weight: 600;
  color: #3d4451;
  white-space: nowrap;
}

.app-table tbody tr:hover {
  background: #fafbff;
}

.app-row {
  cursor: pointer;
}

.app-table .num {
  white-space: nowrap;
  color: #5c6370;
  font-variant-numeric: tabular-nums;
}

.desk-empty {
  padding: 40px 20px;
  text-align: center;
  color: #5c6370;
}

.desk-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #eef0f5;
  background: #fafbff;
}

.desk-pager span {
  font-size: 0.88rem;
  color: #5c6370;
}

.desk-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d5dae4;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.desk-btn:hover:not(:disabled) {
  border-color: #b8c0d0;
}

.desk-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.desk-btn-ghost {
  background: transparent;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eef0f5;
  color: #3d4451;
}

.status-pill-warn {
  background: #fff4cc;
  color: #8a5b00;
}

.status-pill-danger {
  background: #ffe0e0;
  color: #991b1b;
}

.status-pill-ok {
  background: #dcfce7;
  color: #166534;
}

.desk-topbar-elevated {
  box-shadow: 0 1px 0 rgba(26, 29, 38, 0.06);
}

.desk-topbar-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.desk-sub {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.35;
}

.desk-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e6e9f0;
  background: #fff;
}

.desk-tab {
  padding: 10px 16px;
  border: none;
  border-radius: 10px 10px 0 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5c6370;
  cursor: pointer;
}

.desk-tab:hover {
  color: #1a1d26;
  background: #f4f6fb;
}

.desk-tab[aria-selected="true"] {
  color: #1a1d26;
  background: #f4f6fb;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.desk-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.desk-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1d26;
}

.desk-section-head .desk-toolbar {
  margin-bottom: 0;
}

.desk-hint {
  margin: -8px 0 18px;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.45;
}

.desk-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

.desk-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.desk-btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.desk-btn-danger:hover:not(:disabled) {
  border-color: #f87171;
  background: #fef2f2;
}

.desk-btn-sm {
  padding: 5px 10px;
  font-size: 0.82rem;
}

.desk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.desk-modal-backdrop[hidden] {
  display: none !important;
}

.desk-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  position: relative;
}

.desk-modal-lg {
  max-width: 980px;
}

.desk-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.desk-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.desk-modal h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.desk-modal-desc {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.45;
}

.desk-modal-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d4451;
  margin-bottom: 6px;
}

.desk-modal-form input,
.desk-modal-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #d5dae4;
  font-size: 0.95rem;
}

.desk-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.desk-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 0.92rem;
  color: #1f2937;
}

.desk-details-comment {
  grid-column: 1 / -1;
  line-height: 1.45;
}

.row-muted {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .desk-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .desk-section-head .desk-toolbar {
    width: 100%;
  }

  .desk-toolbar select {
    width: 100%;
  }
}

