:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef4f7;
  color: #182331;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 20px;
  background:
    linear-gradient(145deg, rgba(238, 244, 247, 0.96), rgba(249, 251, 252, 0.94)),
    linear-gradient(180deg, #e6eff3 0%, #f8fafb 52%, #e9f1f5 100%);
}

.panel {
  width: min(100%, 820px);
  padding: 30px;
  border: 1px solid #d8e3e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(31, 60, 75, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 22px;
  color: #162230;
  font-size: 16px;
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 6px, #ef3b2d 0 6px, transparent 6px),
    radial-gradient(circle at 20px 6px, #ffd23f 0 6px, transparent 6px),
    radial-gradient(circle at 34px 6px, #087eb8 0 6px, transparent 6px);
}

.uploader {
  display: grid;
  gap: 22px;
}

.event-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid #c9e0eb;
  border-radius: 8px;
  background: #087eb8;
}

.event-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 512;
  object-fit: contain;
}

.intro {
  display: grid;
  gap: 10px;
}

h1 {
  max-width: 700px;
  margin: 0;
  color: #17202a;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 850;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: #586875;
  font-size: 17px;
  line-height: 1.55;
}

.status-message {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #cfe0e8;
  border-radius: 6px;
  background: #f5fafc;
  color: #345263;
  font-size: 15px;
  line-height: 1.45;
}

.status-message:empty {
  display: none;
}

.drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 172px;
  padding: 26px;
  border: 1px dashed #77a8bf;
  border-radius: 8px;
  background: #f8fbfc;
  color: #243343;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: #087eb8;
  background: #f2f8fb;
  box-shadow: 0 0 0 4px rgba(8, 126, 184, 0.09);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong {
  font-size: 17px;
  font-weight: 800;
}

.drop-zone span {
  color: #536777;
  font-size: 15px;
}

.drop-zone small {
  color: #758693;
  font-size: 13px;
}

.select-photos {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #087eb8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.select-photos:hover {
  background: #066f9f;
}

.drop-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #087eb8;
  color: #fff;
}

.drop-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fio-row {
  display: grid;
  gap: 8px;
  color: #243343;
  font-size: 15px;
  font-weight: 700;
}

.field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-title em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff3d7;
  color: #815a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.fio-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bccdd7;
  border-radius: 6px;
  padding: 0 14px;
  color: #182331;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.fio-row input::placeholder {
  color: #8a99a4;
}

.fio-row input:required:invalid {
  border-color: #d9a441;
  background: #fffdf8;
}

.fio-row input:focus {
  border-color: #087eb8;
  box-shadow: 0 0 0 4px rgba(8, 126, 184, 0.11);
}

.file-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.selected-count {
  margin: -8px 0 0;
  color: #536777;
  font-size: 14px;
  font-weight: 700;
}

.selected-count:empty {
  display: none;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d8e3e9;
  border-radius: 6px;
  background: #ffffff;
  color: #344854;
}

.file-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.file-size {
  flex: 0 0 auto;
  color: #697983;
  font-size: 13px;
}

.remove-file {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid #d3e0e7;
  border-radius: 6px;
  padding: 0 12px;
  background: #f7fafb;
  color: #7b2f2a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.remove-file:hover {
  border-color: #efb4ad;
  background: #fff5f3;
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #087eb8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.primary-button:hover:not(:disabled) {
  background: #066f9f;
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 620px) {
  .shell {
    padding: 14px;
    place-items: stretch;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .lead {
    font-size: 15px;
  }

  .event-photo img {
    min-height: 118px;
  }

  .drop-zone {
    min-height: 160px;
    padding: 22px 16px;
  }

  .file-list li {
    align-items: stretch;
  }

  .remove-file {
    min-width: 88px;
  }
}
