* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #dbe6f2;
  color: #2f3d4f;
}

.hidden {
  display: none;
}

.page {
  width: 760px;
  margin: 38px auto;
  background: #f5f7fb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 57, 90, 0.12);
  overflow: hidden;
  border: 1px solid #d7dee8;
}

.topbar {
  min-height: 72px;
  background: linear-gradient(180deg, #2e78cc 0%, #1e63b9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 16px;
}

.logo-title {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  max-width: 330px;
}

.topbar-nav {
  display: flex;
  gap: 24px;
}

.topbar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.topbar-nav a:hover {
  opacity: 0.85;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.content {
  padding: 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px 24px;
  background: #fbfcfe;
  border-bottom: 1px solid #dfe5ee;
}

.hero-image {
  width: 290px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration {
  width: 260px;
  height: 150px;
  position: relative;
}

.circle-bg {
  position: absolute;
  width: 220px;
  height: 140px;
  background: #e4edf8;
  border-radius: 50%;
  left: 10px;
  top: 6px;
}

.monitor {
  position: absolute;
  width: 88px;
  height: 58px;
  background: #2f5f9f;
  border-radius: 8px;
  left: 40px;
  top: 68px;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08);
}

.monitor::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 8px;
  background: #406fae;
  bottom: -10px;
  left: 21px;
  border-radius: 4px;
}

.paper {
  position: absolute;
  width: 72px;
  height: 96px;
  background: #ffffff;
  border-radius: 8px;
  left: 102px;
  top: 34px;
  border: 6px solid #8cb1df;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.paper::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 8px;
  background: #4877b6;
  top: -12px;
  left: 16px;
  border-radius: 4px;
}

.paper::after {
  content: "✓ ✓ ✓";
  position: absolute;
  left: 15px;
  top: 24px;
  color: #4d7cba;
  font-size: 16px;
  line-height: 1.8;
}

.tool {
  position: absolute;
  background: #6d8fbd;
  border-radius: 4px;
}

.tool-1 {
  width: 54px;
  height: 8px;
  transform: rotate(42deg);
  left: 18px;
  top: 72px;
}

.tool-2 {
  width: 44px;
  height: 8px;
  transform: rotate(-35deg);
  left: 156px;
  top: 72px;
}

.box {
  position: absolute;
  width: 56px;
  height: 62px;
  background: #5cb26e;
  border-radius: 4px;
  left: 166px;
  top: 86px;
  box-shadow: inset 0 12px 0 rgba(255, 255, 255, 0.15);
}

.box::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 55px;
  background: #f2c24f;
  right: 10px;
  top: -14px;
  border-radius: 5px;
}

.box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 26px;
  background: #6ebfdd;
  right: -16px;
  top: 8px;
  border-radius: 6px;
  transform: rotate(10deg);
}

.leaf {
  position: absolute;
  background: #72c16a;
  border-radius: 50% 50% 50% 0;
}

.leaf-1 {
  width: 16px;
  height: 30px;
  left: 205px;
  top: 118px;
  transform: rotate(24deg);
}

.leaf-2 {
  width: 14px;
  height: 24px;
  left: 224px;
  top: 120px;
  transform: rotate(-18deg);
}

.hero-text {
  flex: 1;
  padding-right: 20px;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: 25px;
  color: #233b62;
}

.hero-text p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #53657d;
  max-width: 360px;
}

.green-btn {
  background: linear-gradient(180deg, #35b160 0%, #28984f 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41, 137, 75, 0.22);
}

.green-btn:hover {
  filter: brightness(1.03);
}

.section-block {
  padding: 22px 40px 20px;
  border-top: 1px solid #e3e8ef;
}

.section-block h2 {
  margin: 0 0 18px;
  font-size: 18px;
  color: #2c3f5f;
}

.request-form {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(55, 82, 110, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.form-row-top {
  align-items: start;
}

.form-row label {
  font-size: 13px;
  color: #546579;
  font-weight: 600;
}

.request-form select,
.request-form textarea,
.request-form input[type="text"] {
  width: 100%;
  border: 1px solid #d7dde6;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #37485d;
}

.request-form select,
.request-form input[type="text"] {
  height: 40px;
  padding: 0 12px;
}

.textarea-wrap textarea {
  min-height: 74px;
  padding: 10px 12px;
  resize: vertical;
  font-family: inherit;
}

.request-form select:focus,
.request-form textarea:focus,
.request-form input[type="text"]:focus,
.auth-body input:focus {
  outline: none;
  border-color: #73a2de;
  box-shadow: 0 0 0 3px rgba(80, 133, 206, 0.08);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #edf1f6;
  margin-top: 10px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.file-btn span {
  display: inline-block;
  background: linear-gradient(180deg, #2f7fd2 0%, #2468ba 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(30, 99, 185, 0.2);
}

.submit-btn {
  background: linear-gradient(180deg, #39b766 0%, #2c9b52 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.form-message {
  margin-top: 14px;
  font-size: 14px;
  color: #2c7a45;
  font-weight: 600;
}

.table-wrap {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(55, 82, 110, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #eef3f8;
}

th,
td {
  padding: 14px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: top;
}

th {
  color: #52657f;
  font-weight: 700;
}

td {
  color: #3b4d62;
}

.status {
  display: inline-block;
  min-width: 82px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.status-work {
  background: #e4ba35;
  color: #5b4700;
}

.status-done {
  background: #39ae61;
}

.status-new {
  background: #2e78cc;
}

.status-cancel {
  background: #e05151;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 40px 34px;
}

.info-card {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(55, 82, 110, 0.05);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f6;
}

.info-icon {
  width: 28px;
  height: 28px;
  background: #2f7fd2;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.info-header h3 {
  margin: 0;
  font-size: 16px;
  color: #324968;
}

.info-card p {
  margin: 6px 0;
  color: #4f6178;
  font-size: 14px;
  line-height: 1.5;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 64, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-overlay.hidden {
  display: none !important;
}

.auth-modal {
  width: 380px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
}

.auth-tab {
  flex: 1;
  border: none;
  padding: 14px;
  background: #dfe8f5;
  color: #2d4668;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: #2f7fd2;
  color: #fff;
}

.auth-body {
  padding: 22px;
}

.auth-body h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #324968;
  text-align: center;
}

.auth-body input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: 4px;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 12px;
  background: linear-gradient(180deg, #2f7fd2 0%, #2468ba 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-text {
  min-height: 20px;
  margin: 12px 0 0;
  text-align: center;
  color: #c62828;
  font-size: 14px;
}

.logout-btn {
  border: none;
  background: #ffffff;
  color: #2468ba;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#mainPage.locked {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .page {
    width: calc(100% - 20px);
    margin: 10px auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }
}