:root {
  --bg: #f4f8fc;
  --bg-alt: #e7eff8;
  --surface: #ffffff;
  --text: #1f2a35;
  --muted: #4f6477;
  --primary: #1d4e89;
  --primary-soft: #2f6caf;
  --ring: #9dbde2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 52, 84, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #f7fbff 100%);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #d8e3ee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.08rem;
}

.brand span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.site-nav details {
  position: relative;
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}

.site-nav summary:hover {
  background: var(--bg-alt);
}

.site-nav details[open] summary {
  background: var(--bg-alt);
}

.site-nav details > a {
  display: none;
}

.site-nav details[open] > a {
  display: block;
  min-width: 250px;
  padding: 10px 14px;
  background: #fff;
  border-left: 1px solid #d7e2ee;
  border-right: 1px solid #d7e2ee;
}

.site-nav details[open] > a:first-of-type {
  border-top: 1px solid #d7e2ee;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.site-nav details[open] > a:last-of-type {
  border-bottom: 1px solid #d7e2ee;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 520px;
}

.hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(17, 40, 66, 0.78) 0%, rgba(17, 40, 66, 0.28) 70%);
  display: grid;
  align-items: center;
}

.hero-overlay h1 {
  margin: 0 0 10px;
  color: #f3f7fb;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.hero-overlay p {
  color: #e1ecf7;
  max-width: 60ch;
  margin: 0 0 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #d0e2f6;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-block;
  border-radius: 999px;
  background: var(--primary);
  color: #f6faff;
  padding: 11px 18px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  background: var(--primary-soft);
}

.button-secondary {
  background: #d8e8fa;
  color: #18324f;
}

.button-secondary:hover {
  background: #c4dcf7;
}

section {
  padding: 52px 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid #d7e2ee;
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(19, 46, 74, 0.06);
}

.card:hover {
  text-decoration: none;
  border-color: #b6cde4;
  box-shadow: 0 8px 18px rgba(20, 49, 77, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-grid article {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d9e4ef;
  box-shadow: 0 4px 12px rgba(20, 49, 77, 0.08);
}

.feature-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.feature-grid h3,
.feature-grid p,
.feature-grid a {
  margin-left: 16px;
  margin-right: 16px;
}

.feature-grid h3 {
  margin-top: 14px;
  margin-bottom: 8px;
}

.feature-grid p {
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-grid a {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 600;
}

.online-services {
  background: linear-gradient(180deg, #e7f0f9 0%, #eef5fc 100%);
  border-top: 1px solid #d0ddeb;
  border-bottom: 1px solid #d0ddeb;
}

.service-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e3ee;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.site-footer {
  background: #193651;
  color: #e4effa;
  margin-top: 20px;
}

.site-footer a {
  color: #d7e8fb;
}

.footer-inner {
  padding: 32px 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
    border: 1px solid #bfd2e6;
    background: #edf4fb;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    color: #1f3d5e;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    width: min(320px, 92vw);
    background: #fff;
    border: 1px solid #d3dfec;
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    max-height: 75vh;
    overflow: auto;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav details[open] > a {
    min-width: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .site-nav details[open] > a:first-of-type,
  .site-nav details[open] > a:last-of-type {
    border-radius: 0;
  }

  .hero,
  .hero img {
    min-height: 450px;
    height: 450px;
  }
}
