:root {
  --ink: #1d252c;
  --muted: #66717c;
  --line: #d9e1e8;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --accent: #0d6b63;
  --accent-2: #b6462d;
  --dark: #152029;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }

.site {
  background: #ffffff;
}
.site-header {
  min-height: 68px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.site-logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
}
.site-header nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.hero {
  min-height: 520px;
  padding: 80px 6vw;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21,32,41,.96), rgba(21,32,41,.72)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero > div {
  max-width: 760px;
}
.eyebrow {
  margin: 0 0 16px;
  color: #9ed8d1;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .12em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
}
.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.6;
  color: #d8e0e6;
}
.hero a,
.primary-link,
.save-button,
.upload button,
.login-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.intro,
.services,
.contact {
  padding: 68px 6vw;
}
.intro {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(260px, 680px);
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.intro h2,
.contact h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}
.intro p,
.contact p,
.services p {
  color: var(--muted);
  line-height: 1.7;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.services article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.services h3 {
  margin: 0 0 12px;
}
.contact {
  color: #fff;
  background: var(--dark);
}
.contact p {
  max-width: 680px;
  color: #d8e0e6;
}
.contact a {
  color: #9ed8d1;
  font-weight: 700;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--dark);
}
.login-card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 8px;
  background: var(--panel);
}
.login-card h1 {
  margin: 0 0 8px;
}
.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
}
label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.sidebar {
  padding: 24px;
  color: #fff;
  background: var(--dark);
}
.brand {
  display: block;
  margin-bottom: 28px;
  font-weight: 800;
  text-decoration: none;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #d8e0e6;
  text-decoration: none;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,.08);
}
.admin-main {
  padding: 32px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 0 0 6px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel,
.editor fieldset,
.upload,
.media-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.panel {
  padding: 22px;
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.panel p {
  margin: 0;
  color: var(--muted);
}
.editor {
  display: grid;
  gap: 18px;
}
.editor fieldset {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 22px;
}
.editor legend {
  padding: 0 8px;
  font-weight: 800;
}
.service-edit {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.messages {
  margin-bottom: 18px;
}
.message {
  padding: 12px 14px;
  border-radius: 6px;
  background: #eaf6f4;
  color: var(--accent);
}
.message.error {
  background: #fdeceb;
  color: var(--accent-2);
}
.upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.media-grid figure {
  margin: 0;
  padding: 12px;
}
.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.media-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .site-header,
  .intro,
  .services,
  .grid,
  .media-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .site-header {
    display: grid;
    gap: 12px;
    padding: 18px 6vw;
  }
  .services,
  .grid,
  .media-grid {
    display: grid;
  }
  .sidebar {
    position: static;
  }
  .admin-main {
    padding: 20px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
