:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #fffaf1;
  --text: #202124;
  --muted: #646a73;
  --line: #ddd8cd;
  --accent: #146c6c;
  --accent-strong: #0d4f4e;
  --coral: #c95843;
  --gold: #d7a33f;
  --shadow: 0 18px 45px rgba(37, 38, 31, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(20, 108, 108, 0.12), transparent 35%),
    linear-gradient(245deg, rgba(201, 88, 67, 0.12), transparent 34%), var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(221, 216, 205, 0.72);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px);
}

.nav,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(20, 108, 108, 0.18);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-link,
.ghost-button,
.visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav-link:hover,
.ghost-button:hover,
.visit:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 108, 108, 0.36);
  color: var(--accent-strong);
  background: #fff;
}

main {
  padding: 58px 0 72px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.summary-panel {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.summary-panel strong {
  font-size: 3.4rem;
  line-height: 1;
}

.summary-label,
.summary-panel span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 34px 0 18px;
}

.search {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px 0 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 108, 108, 0.14);
}

.ghost-button {
  min-height: 48px;
  cursor: pointer;
  font: inherit;
}

.status {
  min-height: 28px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

.status[data-tone="error"] {
  color: #9b2c1f;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid rgba(221, 216, 205, 0.88);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(37, 38, 31, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 108, 108, 0.28);
  box-shadow: var(--shadow);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.logo {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.visit {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.visit:hover {
  color: #fff;
  background: var(--accent-strong);
}

.card h2 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.card p {
  flex: 1;
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.host {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

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

  .summary-panel {
    width: min(100%, 360px);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav,
  main {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 62px;
  }

  main {
    padding-top: 38px;
  }

  .nav-link {
    display: none;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .card {
    min-height: 230px;
  }
}
