:root {
  color-scheme: light;
  --bg: #eef3f1;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #66736d;
  --line: #d9e3dd;
  --green: #128c55;
  --green-dark: #0d6f43;
  --blue: #2868a8;
  --soft: #f6f9f7;
  --shadow: 0 16px 36px rgba(23, 33, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18, 140, 85, 0.14), rgba(40, 104, 168, 0.12)),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  min-height: 260px;
  align-items: stretch;
  padding: 26px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 88% 18%, rgba(18, 140, 85, 0.24), transparent 30%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-main {
  display: grid;
  gap: 28px;
  align-content: space-between;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.brand-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.hero-card img {
  width: 150px;
  height: 150px;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.primary-link,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  background: var(--green);
  color: #fff;
}

.primary-link:hover {
  background: var(--green-dark);
}

.secondary-button {
  background: #eef4f0;
  color: var(--green-dark);
}

.router {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.router-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.router-header h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.router-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.router-header input {
  width: min(280px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
}

.hours {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

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

.sector-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.sector-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.sector-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.message-preview {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: end;
}

.card-actions a,
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.card-actions a {
  grid-column: 1 / -1;
  background: var(--green);
  color: #fff;
}

.card-actions a:hover {
  background: var(--green-dark);
}

.card-actions button {
  background: #eef4f0;
  color: var(--green-dark);
}

.empty {
  margin: 0;
  color: var(--muted);
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-strip div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong {
  margin-bottom: 5px;
}

.info-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.qr-dialog {
  width: min(380px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.qr-dialog::backdrop {
  background: rgba(23, 33, 29, 0.34);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dialog-header h2 {
  margin-bottom: 0;
}

.dialog-header button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #eef4f0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.qr-dialog img {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto 12px;
}

.qr-dialog p {
  color: var(--muted);
  line-height: 1.45;
}

.qr-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .router-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sector-list {
    grid-template-columns: 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}
