/* Yakuniy rasmiy tipografika va tekislash */
html, body, button, input, select {
  font-family: Arial, Helvetica, sans-serif !important;
}

body {
  font-size: 15px;
  line-height: 1.4;
}

body > header {
  min-height: 82px;
}

.brand b {
  font-size: 15px;
  letter-spacing: .08em;
}

.brand small,
.header-right small {
  font-size: 12px;
}

.header-right b,
.header-right button,
.structure-link,
nav a,
nav button {
  font-size: 14px;
}

main {
  width: min(1440px, calc(100% - 56px));
}

.eyebrow,
.group header small,
.department-list article > div > small,
.top p {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .12em;
}

h1,
.top h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.intro > div > p:last-child,
.top > div > span {
  font-size: 15px;
  line-height: 1.55;
}

.metric-cards {
  gap: 20px !important;
}

.metric {
  min-height: 185px !important;
  padding: 25px 26px !important;
}

.metric small {
  font-size: 13px !important;
}

.metric strong {
  font-size: 38px !important;
  line-height: 1;
}

.metric p {
  font-size: 11px !important;
}

.group {
  margin: 22px 0;
}

.group > header {
  min-height: 98px;
  padding: 22px 26px;
}

.group > header > span {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.group h2 {
  margin: 5px 0;
  font-size: 20px;
  line-height: 1.2;
}

.group header p {
  font-size: 13px;
}

.department-list article {
  grid-template-columns: minmax(330px, 1fr) repeat(3, minmax(170px, 200px)) !important;
  min-height: 116px;
  padding: 24px 26px;
  gap: 24px;
}

.department-list h3 {
  margin: 7px 0;
  font-size: 17px;
  line-height: 1.25;
}

.department-list p {
  font-size: 12px;
  line-height: 1.4;
}

.department-list label > span {
  min-height: 18px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.number {
  height: 54px;
}

.number input {
  font-size: 24px;
}

.number b {
  width: 50px;
  font-size: 13px;
}

.savebar b {
  font-size: 15px;
}

.savebar small {
  font-size: 12px;
}

.savebar button {
  font-size: 14px;
}

/* Tashkiliy tuzilma */
.deputy-head h2 {
  font-size: 19px;
}

.deputy-head p,
.dept .head b,
.dept .head span,
.dept small {
  font-size: 13px;
}

.dept h3 {
  font-size: 16px;
}

.buttons button,
.top > button {
  font-size: 14px;
}

dialog,
dialog button,
dialog input,
dialog select,
dialog label {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0;
}

dialog form {
  padding: 32px 34px;
}

dialog h2 {
  margin-bottom: 25px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

dialog label {
  margin: 16px 0;
  color: #182b40;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

dialog input,
dialog select {
  height: 48px;
  margin-top: 8px;
  padding: 0 13px;
  color: #17283a;
  font-size: 15px;
  font-weight: 400;
  background: #fff;
}

dialog input[type="file"] {
  height: 50px;
  padding: 7px;
  color: #60748a;
  font-size: 13px;
}

dialog input[type="file"]::file-selector-button {
  height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  background: #e8f0f8;
  color: #155b98;
  font: 600 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

dialog .photo-hint,
dialog label + small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.actions button {
  min-width: 120px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .department-list article {
    grid-template-columns: 1fr repeat(3, minmax(140px, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  main {
    width: calc(100% - 30px);
  }

  .department-list article {
    grid-template-columns: 1fr 1fr !important;
  }

  .department-list article > div {
    grid-column: 1 / -1;
  }
}
