:root {
  color-scheme: light;
  --navy: #003057;
  --blue: #006cbc;
  --text: #536679;
  --muted: #647487;
  --border: #e4ebf1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: #fbfcfe;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1 { margin: 0; }

.page {
  width: min(100% - 112px, 1248px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
}

.brand {
  display: grid;
  place-items: center;
  width: 104px;
  height: 76px;
  background: var(--navy);
  border-radius: 12px;
}

.brand img { display: block; width: 77px; height: auto; }
.header-label { color: var(--muted); font-size: 13px; letter-spacing: .02em; }

.maintenance {
  flex: 1;
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-block: 66px 76px;
}

.message { padding-block: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  padding: 8px 12px;
  border: 1px solid #f0dfb8;
  border-radius: 6px;
  background: #fff8e9;
  color: #825b15;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b17b18; }

h1 {
  font-size: clamp(38px, 4.15vw, 60px);
  font-weight: 650;
  line-height: 1.11;
  letter-spacing: -.048em;
}

h1 span { color: var(--blue); }
.intro { max-width: 440px; margin-top: 26px; color: var(--text); font-size: 17px; line-height: 1.75; }
.description { margin-top: 18px; color: var(--text); font-size: 14px; line-height: 1.8; }

.retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  margin-top: 31px;
  padding: 13px 23px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}

.retry-button:hover { background: #004c97; border-color: #004c97; }
.retry-button:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
.retry-note { max-width: 360px; margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.illustration {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 30px 0;
  border: 1px solid #16476c;
  border-radius: 24px;
  background: var(--navy);
}

.illustration-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 30px;
  color: #b8d1e4;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.6;
}

.small-cross { color: #8fc9f1; font-size: 20px; font-weight: 400; line-height: 1; }
.workshop { display: block; width: 100%; height: auto; margin-block: 2px 0; }
.gear { transform-box: fill-box; transform-origin: center; animation: gear-turn 24s linear infinite; }

.illustration-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 30px;
  color: #c3d8e8;
  font-size: 12px;
  line-height: 1.5;
}

.caption-line { width: 24px; height: 1px; background: #729eba; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 23px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.footer p:first-child { color: var(--text); }
.footer p:first-child span { margin-inline: 9px; color: #a5b3bf; }
.signature { color: var(--navy); }

@keyframes gear-turn { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  .maintenance { gap: 100px; }
}

@media (max-width: 1000px) {
  .page { width: calc(100% - 64px); }
  .maintenance { gap: 32px; padding-block: 52px; }
  h1 { font-size: clamp(36px, 4.4vw, 46px); }
  .intro { font-size: 16px; }
  .desktop-break { display: none; }
  .illustration-heading, .illustration-caption { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 48px, 540px); }
  .header { padding-top: 24px; }
  .brand { width: 88px; height: 64px; border-radius: 10px; }
  .brand img { width: 66px; }
  .header-label { font-size: 11px; }
  .maintenance { grid-template-columns: 1fr; gap: 34px; padding-block: 44px; }
  .message { padding: 0; }
  .status { margin-bottom: 24px; }
  h1 { font-size: clamp(36px, 7.7vw, 49px); }
  .intro { margin-top: 23px; }
  .description { margin-top: 15px; }
  .retry-button { margin-top: 26px; }
  .illustration { padding-block: 24px; border-radius: 18px; }
  .workshop { width: 85%; margin: -5px auto -2px; }
  .illustration-heading { font-size: 8px; }
  .footer { flex-direction: column; gap: 5px; padding-block: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gear { animation: none; }
  .retry-button { transition: none; }
}
