:root {
  color-scheme: dark;
  --bg: #16181c;
  --surface: #23272c;
  --surface-alt: #2d323a;
  --surface-soft: #1f2228;
  --text: #f2f4f8;
  --muted: #a3a8b4;
  --accent: #d92534;
  --accent-soft: rgba(217, 37, 52, 0.16);
  --border: rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  padding-bottom: 100px;
}

::selection {
  color: #c00;
  background: rgba(217, 37, 52, 0.2);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 20, 24, 0.95);
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 250ms ease, transform 250ms ease;
}

.nav-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, rgba(18,20,24,0.78) 0%, rgba(18,20,24,0.96) 100%), url("../images/Background.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(240px, 1fr);
  gap: 48px;
  width: 100%;
  max-width: 1120px;
  align-items: center;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-visual img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section {
  padding: 84px 24px;
  min-height: auto;
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-light {
  background: rgba(36, 40, 47, 0.9);
}

.section-dark {
  background: rgba(28, 31, 36, 0.95);
}

.section-inner {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text);
}

.section p {
  margin: 0;
  line-height: 1.7;
  color: #1d2a43;
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .main-nav {
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-visual {
    margin: 0 auto;
  }

  .hero-visual img {
    max-width: 260px;
  }
}

.content-section {
  background: var(--surface);
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.content-blocks {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.welcome-section {
  padding: 84px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.news-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.news-inner {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.news-heading {
  margin-bottom: 36px;
  text-align: center;
}

.news-heading h2 {
  margin: 0 0 14px;
}

.news-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}

.news-notification-button { margin-top: 22px; border: 0; border-radius: 8px; padding: 12px 18px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.news-notification-status {
  display: table;
  margin: 16px auto 0 !important;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--text) !important;
  font-size: .92rem !important;
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.news-card:has(.news-card-image) {
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
}

.news-card-image {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.news-card-content {
  padding: 28px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card-meta span {
  color: var(--accent);
}

.news-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.45rem;
}

.news-card p {
  margin: 0;
  color: var(--text);
}

.news-card-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.news-card-link:hover {
  text-decoration: underline;
}

.news-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  color: #e3e8ec !important;
  font-weight: 700;
}

.welcome-section.active {
  display: flex;
}

.welcome-container {
  width: 100%;
  max-width: 950px;
  text-align: center;
}

.welcome-container h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-block h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alarm-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alarm-simulation-trigger {
  align-self: center;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.alarm-simulation-trigger:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.section .alarm-simulation-note {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

body.alarm-simulation-open {
  overflow: hidden;
}

.alarm-simulation-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.alarm-simulation-modal.active {
  display: flex;
}

.alarm-simulation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.alarm-simulation-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  background: #20252d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.alarm-simulation-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #ffcb6b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alarm-simulation-dialog h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.8rem;
}

.alarm-simulation-message-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.alarm-simulation-message-box p,
.alarm-simulation-instruction {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.alarm-simulation-message-box p {
  font-size: 1.08rem;
  font-weight: 700;
}

.alarm-simulation-instruction {
  margin-top: 20px;
  color: var(--muted);
}

.alarm-simulation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.alarm-simulation-response {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fire-game > p:not(.fire-game-status) {
  margin: 0 0 20px;
  color: var(--text);
}

.fire-game-progress {
  height: 8px;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.fire-game-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 250ms ease;
}

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

.fire-game-scene { min-height: 220px; margin: 18px 0; }
.journey-real-map { height: 260px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.journey-car-icon, .journey-station-icon { background: transparent; border: 0; font-size: 1.7rem; text-align: center; }
.journey-map { position: relative; min-height: 220px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: repeating-linear-gradient(35deg, #31566d 0 12px, #263e4c 12px 26px); }
.journey-map::before { content: ""; position: absolute; inset: 40% 0; height: 28px; background: #c6c3b8; transform: rotate(-18deg) scale(1.25); }
.map-start, .map-caserne { position: absolute; z-index: 1; padding: 6px 9px; border-radius: 5px; background: #20252d; color: #fff; font-size: .8rem; }
.map-start { left: 10%; top: 14%; }.map-caserne { right: 10%; bottom: 14%; }.map-car { position: absolute; z-index: 2; left: 12%; top: 46%; font-size: 2rem; animation: drive-to-station 3s ease-in-out infinite; }
.preparation-loader { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 220px; border: 1px solid var(--border); border-radius: 8px; font-size: 3.2rem; background: rgba(255,255,255,.05); }.preparation-loader span { animation: prep-bounce 1.1s ease-in-out infinite alternate; }.preparation-loader span:nth-child(2) { animation-delay: .2s; }.preparation-loader span:nth-child(3) { animation-delay: .4s; }
.simulation-arrival { display:flex; min-height:220px; align-items:center; justify-content:center; border-radius:8px; background:#24424a; color:#fff; text-align:center; font-size:2rem; }
@keyframes drive-to-station { 0% { transform: translate(0,0); } 100% { transform: translate(220px,50px); } } @keyframes prep-bounce { to { transform: translateY(-10px); } }

.fire-game-status {
  margin: 20px 0 0;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.fire-game-close,
.fire-game-next {
  display: block;
  width: 100%;
  margin-top: 20px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fire-game-close[hidden],
.fire-game-next[hidden] {
  display: none;
}


.alarm-simulation-available {
  background: #228d58;
}

.alarm-simulation-unavailable {
  background: #b13b3b;
}

.vehicles-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.map-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.map-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.map-section .map-intro {
  max-width: 860px;
  margin: 0 auto 32px;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  line-height: 1.75;
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.vehicles-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.vehicles-heading {
  margin-bottom: 40px;
  text-align: center;
}

.vehicles-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text);
}

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

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

.vehicle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.vehicle-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alarm-image-card {
  position: relative;
}

.alarm-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.45) 0%, rgba(8, 10, 14, 0.96) 100%);
  color: var(--text);
  opacity: 0;
  transition: opacity 220ms ease;
}

.alarm-image-card:hover .alarm-image-overlay {
  opacity: 1;
}

.alarm-image-card.is-open .alarm-image-overlay {
  opacity: 1;
}

.alarm-image-overlay h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.alarm-image-overlay p {
  margin: 0;
  color: rgba(242, 244, 248, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

.vehicle-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.vehicle-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.4;
}

.vehicle-year {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vehicle-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.vehicles-section .alarmes-intro {
  max-width: 920px;
  margin: 0 auto 72px;
  padding-bottom: 8px;
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  text-align: center;
}

.equipment-section {
  padding: 72px 24px 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.equipment-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.equipment-section .equipment-intro {
  max-width: 920px;
  margin: 0 auto 40px;
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  text-align: center;
}

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

.equipment-card {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.equipment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alarm-log-section {
  padding: 72px 24px 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.alarm-log-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.alarm-log-section .alarm-log-intro {
  max-width: 860px;
  margin: 0 auto 72px;
  padding-bottom: 8px;
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  text-align: center;
}

.alarm-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.alarm-year-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.alarm-year-arrow {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.alarm-year-arrow:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.alarm-year-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.alarm-year-display {
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.alarm-month-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.alarm-degree-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.alarm-month-filter select,
.alarm-degree-filter select {
  appearance: none;
  min-width: 180px;
  border: 1px solid var(--border);
  background: #23272c;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font: inherit;
}

.alarm-month-filter select option,
.alarm-degree-filter select option {
  background: #23272c;
  color: var(--text);
}

.alarm-log-list {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.alarm-log-card,
.alarm-log-empty {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.alarm-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alarm-log-empty h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.2rem;
}

.alarm-log-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}

.alarm-log-line > span {
  color: var(--text);
}

.alarm-log-card p,
.alarm-log-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.alarm-description {
  font-size: 1rem;
  color: var(--text);
}

.alarm-level {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
}

.alarm-level-blue {
  color: #86b7ff;
}

.alarm-level-yellow {
  color: #ffd25f;
}

.alarm-level-red {
  color: #ff7b7b;
}

.alarm-log-summary {
  display: flex;
  justify-content: center;
}

.alarm-summary-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  padding: 18px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.alarm-summary-count {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gallery-section {
  padding: 40px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.gallery-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.gallery-card {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.gallery-card-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

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

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.gallery-lightbox.active {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  height: min(88vh, 900px);
  margin: 6vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 20, 24, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 20, 24, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.gallery-lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-lightbox-prev {
  left: 24px;
}

.gallery-lightbox-next {
  right: 24px;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.gallery-empty p {
  margin: 0;
  color: var(--text);
}

.jsp-carousel-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.jsp-carousel-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.jsp-carousel-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 18px;
  align-items: center;
}

.jsp-carousel-arrow {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease;
}

.jsp-carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.jsp-carousel-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.jsp-carousel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jsp-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.jsp-carousel-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.jsp-carousel-dot.active {
  background: var(--accent);
}

.jsp-contact-section {
  padding: 72px 24px 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.amicale-gallery-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.amicale-contact {
  margin-top: 8px;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.amicale-contact h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.amicale-contact p {
  margin: 0;
  color: var(--text);
}

.amicale-contact a {
  color: var(--accent);
  font-weight: 700;
}

.amicale-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.amicale-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.amicale-gallery button { padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.amicale-gallery button:hover img { transform: scale(1.03); }
.amicale-gallery img { transition: transform 180ms ease; }

.amicale-feature-image img {
  min-height: 420px;
  object-fit: cover;
}

.jsp-contact-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.jsp-contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text);
}

.jsp-contact-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

.jsp-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.jsp-form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jsp-form-field span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.jsp-form-field input,
.jsp-form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #23272c;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.jsp-form-field input::placeholder,
.jsp-form-field textarea::placeholder {
  color: #8d94a1;
}

.jsp-form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.jsp-form-field-full {
  grid-column: 1 / -1;
}

.jsp-form-submit {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.jsp-contact-status {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
}

.jsp-contact-status.is-success { color: #67d391; }
.jsp-contact-status.is-error { color: #ff8d8d; }

.links-section {
  padding: 72px 24px 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.links-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.links-heading {
  margin-bottom: 36px;
  text-align: center;
}

.links-heading h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.links-section .links-intro {
  margin: 0 0 36px;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

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

.links-card {
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.links-card h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.3rem;
}

.links-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.links-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.links-button-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 45%, #fd1d1d 72%, #fcb045 100%);
}

.links-button-facebook {
  background: #1877f2;
}

.links-button-lodur {
  background: #f28c28;
}

.recruit-section {
  padding: 72px 24px 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.recruit-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.recruit-card {
  display: grid;
  gap: 28px;
  padding: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(135deg, rgba(217, 37, 52, 0.14) 0%, rgba(31, 34, 40, 0.08) 100%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
}

.recruit-copy {
  display: grid;
  gap: 14px;
}

.recruit-eyebrow {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recruit-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
}

.recruit-section .recruit-description {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
}

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

.recruit-detail {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.recruit-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recruit-detail strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.recruit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.recruit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.recruit-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

  .alarm-log-toolbar {
    justify-content: center;
  }

  .alarm-month-filter {
    width: 100%;
    justify-content: center;
  }

  .alarm-degree-filter {
    width: 100%;
    justify-content: center;
  }

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

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

  .news-card:has(.news-card-image) {
    grid-template-columns: 1fr;
  }

  .jsp-carousel-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .jsp-carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .jsp-contact-inner {
    grid-template-columns: 1fr;
  }

  .jsp-contact-form {
    grid-template-columns: 1fr;
  }

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

  .recruit-details {
    grid-template-columns: 1fr;
  }
}

.page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 16px 24px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-footer a { color: #ffffff; font-weight: 700; }
