:root {
  --bg: #eef3f8;
  --card: #ffffff;
  --text: #1d2939;
  --muted: #667085;
  --line: #d8e0e8;
  --accent: #1769aa;
  --accent-dark: #0f4f80;
  --success-bg: #e9f7ef;
  --success: #176b3a;
  --error-bg: #fff0f0;
  --error: #9b2c2c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #e7eef5 0, var(--bg) 260px);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.site-header {
  background: #17324d;
  color: white;
  border-bottom: 4px solid #2b79ad;
}

.header-inner, .container {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.header-inner {
  min-height: 170px;
  padding: 38px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .75;
  margin-bottom: 8px;
}

h1, h2 { margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: 24px; }

.header-inner p { margin: 0; opacity: .8; }

.home-link {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
}
.home-link:hover { background: rgba(255,255,255,.1); }

.container { padding: 34px 0 50px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 18px rgba(26, 48, 70, .06);
}

.intro { margin-bottom: 35px; }
.intro p { color: var(--muted); }

.guest-form label {
  display: block;
  font-weight: 700;
  margin-top: 18px;
}

.guest-form input,
.guest-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #bcc8d4;
  border-radius: 7px;
  font: inherit;
  color: var(--text);
  background: white;
}

.guest-form textarea { resize: vertical; }
.guest-form input:focus,
.guest-form textarea:focus {
  outline: 2px solid rgba(23,105,170,.2);
  border-color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.muted { color: var(--muted); font-weight: normal; font-size: .9em; }

.captcha-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.captcha-row label { flex: 1; margin-top: 0; }

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }

.notice {
  border-radius: 8px;
  padding: 12px 15px;
  margin: 18px 0;
}
.success { background: var(--success-bg); color: var(--success); }
.error { background: var(--error-bg); color: var(--error); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 14px;
}
.section-title span { color: var(--muted); font-size: 14px; }

.entry { margin-bottom: 14px; }
.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.entry-head strong { font-size: 18px; }
.entry-head a {
  margin-left: 10px;
  color: var(--accent);
  font-size: 13px;
}
.entry-head time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.message { padding-top: 15px; }

.empty { color: var(--muted); }
.site-footer {
  text-align: center;
  padding: 25px 16px 40px;
  color: var(--muted);
  font-size: 13px;
}

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 650px) {
  .header-inner {
    align-items: start;
    flex-direction: column;
  }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .captcha-row {
    align-items: stretch;
    flex-direction: column;
  }
  .entry-head {
    flex-direction: column;
    gap: 5px;
  }
  .entry-head time { white-space: normal; }
  .card { padding: 19px; }
}
