:root {
  --bg: #f6f1e8;
  --bg-soft: #fffaf0;
  --ink: #10222d;
  --muted: #64727a;
  --line: rgba(16, 34, 45, 0.12);
  --sea: #0d4f66;
  --sea-dark: #073442;
  --aqua: #43b3c2;
  --sand: #e7c77b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 52, 66, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(67, 179, 194, 0.22), transparent 34rem),
    linear-gradient(180deg, #eef8f9 0%, var(--bg) 28rem);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 12px 40px rgba(7, 52, 66, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sea);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--sea-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(13, 79, 102, 0.1);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--sea);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1rem;
}

.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
  scroll-margin-top: 7rem;
}

.home-panorama {
  position: relative;
  width: min(1160px, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-panorama img {
  width: 100%;
  height: clamp(180px, 26vw, 330px);
  object-fit: cover;
  object-position: center center;
}

.webcam-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(7, 52, 66, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.webcam-link:hover {
  background: rgba(13, 79, 102, 0.94);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  min-height: auto;
  align-items: center;
  padding-top: 4rem;
}

.page-hero {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2.5rem;
  text-align: center;
}

.page-hero .hero-text,
.page-hero .hero-actions {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.split p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--sea);
  box-shadow: 0 12px 28px rgba(13, 79, 102, 0.25);
  color: var(--white);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--sea-dark);
}

.latest-news-card {
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(13, 79, 102, 0.96), rgba(7, 52, 66, 0.96)),
    var(--sea-dark);
  box-shadow: var(--shadow);
  color: var(--white);
  padding: 1.25rem;
}

.latest-news-header h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.latest-news-card .eyebrow {
  color: var(--sand);
}

.latest-news-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-news-list li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem;
}

.latest-news-list time {
  color: var(--sand);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.latest-news-list a,
.latest-news-more {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.latest-news-list a:hover,
.latest-news-more:hover {
  text-decoration: underline;
}

.latest-news-more {
  display: inline-flex;
  margin-top: 1rem;
}

.intro-grid,
.news-grid,
.board-grid,
.parking-summary,
.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-list {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.info-card,
.news-card,
.board-grid article,
.camera-panel,
.document-body,
.accordion-list,
.image-link {
  border: 1px solid rgba(16, 34, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 16px 42px rgba(7, 52, 66, 0.08);
}

.info-card,
.news-card,
.board-grid article {
  padding: 1.35rem;
}

.card-icon {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(67, 179, 194, 0.16);
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.info-card p,
.info-card li,
.news-card p,
.document-body,
.accordion-list p {
  color: var(--muted);
}

.info-card a {
  color: var(--sea);
  font-weight: 800;
}

.info-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.highlight-card {
  background: linear-gradient(160deg, rgba(13, 79, 102, 0.96), rgba(7, 52, 66, 0.96));
  color: var(--white);
}

.highlight-card p,
.highlight-card li {
  color: rgba(255, 255, 255, 0.82);
}

.highlight-card .card-icon {
  background: rgba(231, 199, 123, 0.22);
  color: var(--sand);
}

.vipps-qr {
  width: min(180px, 100%);
  margin-top: 1rem;
  border: 8px solid var(--white);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 2rem;
  align-items: center;
}

.notice {
  border-left: 4px solid var(--sand);
  background: rgba(231, 199, 123, 0.18);
  border-radius: 14px;
  color: var(--ink) !important;
  margin: 1.4rem 0 0;
  padding: 1rem;
}

.camera-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.camera-panel article {
  min-height: 150px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(13, 79, 102, 0.08), rgba(13, 79, 102, 0.26)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0 10px, transparent 10px 20px);
  padding: 1.2rem;
  overflow: hidden;
}

.camera-panel span,
.board-grid span,
.news-card time {
  color: var(--sea);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.camera-panel strong,
.board-grid strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
}

.camera-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: min(1320px, calc(100% - 2rem));
  padding-top: 1rem;
}

.camera-card {
  border: 1px solid rgba(16, 34, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 16px 42px rgba(7, 52, 66, 0.08);
  padding: 1rem;
}

.camera-card span {
  color: var(--sea);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.camera-snapshot {
  width: 100%;
  height: auto;
  margin-top: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(7, 52, 66, 0.18);
}

[data-fullscreen-image] {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 1rem;
  background: rgba(3, 18, 24, 0.94);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section-heading {
  margin-bottom: 1.8rem;
  max-width: 760px;
}

.bobil {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.image-link {
  display: block;
  overflow: hidden;
}

.image-link img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.image-link:hover img {
  transform: scale(1.03);
}

.news-card a {
  color: var(--sea);
  font-weight: 800;
}

.news-list .news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.news-list .news-card p {
  margin-bottom: 0;
}

.news-list .news-card a {
  border-radius: 999px;
  background: rgba(13, 79, 102, 0.1);
  padding: 0.75rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.document {
  padding-top: 4rem;
}

.pdf-section {
  padding-top: 1rem;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  min-height: 620px;
  border: 1px solid rgba(16, 34, 45, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(7, 52, 66, 0.08);
}

.stats-gate {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.stats-card {
  border: 1px solid rgba(16, 34, 45, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.stats-card h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.stats-card form {
  display: grid;
  gap: 0.8rem;
  max-width: 420px;
  margin-top: 1.5rem;
}

.stats-card label {
  font-weight: 800;
}

.stats-card input {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 1rem;
}

.stats-error {
  color: #9b1c1c;
  font-weight: 800;
  margin: 0;
}

.stats-frame {
  display: block;
  width: 100%;
  height: 1800px;
  margin-top: 1.5rem;
  border: 1px solid rgba(16, 34, 45, 0.08);
  border-radius: 18px;
  background: var(--white);
}

.document-body,
.accordion-list {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.document-body h3,
.document-body h4 {
  color: var(--ink);
}

.document-body ul {
  padding-left: 1.2rem;
}

.accordion-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  padding: 1rem 1.1rem;
}

summary {
  color: var(--sea-dark);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 1rem 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 0 3rem;
}

.site-footer p {
  margin: 0.2rem 0 0;
}

.site-footer a {
  color: var(--sea);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 5rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    padding: 0.75rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero,
  .split,
  .bobil,
  .camera-page {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .news-grid,
  .news-list .news-card,
  .board-grid,
  .parking-summary,
  .language-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-list .news-card {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .brand small {
    display: none;
  }

  .section {
    width: min(100% - 1rem, 1160px);
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .intro-grid,
  .news-grid,
  .news-list .news-card,
  .board-grid,
  .parking-summary,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .news-list .news-card a {
    text-align: center;
    white-space: normal;
  }

  .stats-frame {
    height: 2200px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }
}
