@font-face {
  font-family: "BenchNine";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/benchnine-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "BenchNine";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/benchnine-latin-400-normal.woff2") format("woff2");
}
:root {
  --orange: #fa7e04;
  --orange-deep: #f98101;
  --ink: #626262;
  --ink-strong: #464646;
  --line: #d4d4d4;
  --paper: #ffffff;
  --bar: #e5e5e5;
  --card: #eaeaea;
  --header: #626262;
  --shadow: 1px 8px 8px -8px #000;
  --max: 1170px;
  --font: Arial, Helvetica, sans-serif;
  --display: "BenchNine", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f3f3f3 url("../images/bg-body.png") left top repeat-x;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--ink-strong);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar .container {
  background: var(--bar);
  box-shadow: var(--shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 10px 18px;
}

.logo img {
  display: block;
  width: min(420px, 70vw);
  height: auto;
}

.service {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 300;
  white-space: nowrap;
}

.service span {
  color: var(--orange);
}

.service a {
  color: #222;
}

.nav-wrap .container {
  background: linear-gradient(#f1f1f1, #dddddd);
  box-shadow: var(--shadow);
}

.nav-bar {
  display: flex;
  align-items: stretch;
}

.menu-toggle {
  display: none;
  margin: 8px;
  border: 0;
  background: var(--header);
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
}

header {
  position: relative;
  z-index: 20;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.menu > li {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
}

.menu a {
  display: block;
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  padding: 13px 12px;
}

.menu > li > a {
  text-transform: uppercase;
}

.menu a:hover,
.menu a[aria-current="page"],
.menu li.active > a {
  color: var(--orange);
}

.menu ul {
  display: none;
  position: absolute;
  z-index: 5;
  min-width: 280px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: linear-gradient(#f1f1f1, #dddddd);
  box-shadow: var(--shadow);
  border-radius: 0 0 5px 5px;
}

.menu ul li {
  position: relative;
}

.menu li:hover > ul,
.menu li:focus-within > ul {
  display: block;
}

.menu ul ul {
  top: 0;
  left: calc(100% - 8px);
  border-radius: 0 5px 5px 0;
}

.menu ul a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 9px 16px;
  text-align: left;
}

.menu li:has(> ul) > a::after {
  content: " ▾";
  font-size: 0.75em;
}

.menu ul li:has(> ul) > a::after {
  content: " ›";
}

.hero {
  margin-top: 18px;
}

.hero .container {
  box-shadow: var(--shadow);
}

.slider {
  position: relative;
  aspect-ratio: 1000 / 338;
  background: #d7d7d7;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  padding: 6px 14px;
  border-radius: 3px;
}

.more:hover {
  color: #fff;
  filter: brightness(0.95);
}

.dots {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 62px;
  display: flex;
  gap: 8px;
}

.dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.dots button[aria-current="true"] {
  background: var(--orange);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px auto 10px;
}

.card {
  background: var(--card);
  box-shadow: 1px 12px 15px -15px #000;
  text-align: center;
}

.card h2 {
  margin: 0;
  background: var(--header);
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
}

.card-body {
  padding: 16px 14px 8px;
}

.card-body img {
  width: 92px;
  height: auto;
  margin-bottom: 8px;
}

.card-body p {
  margin: 0 0 12px;
}

main {
  padding-bottom: 36px;
}

main > h1,
.page-grid {
  margin-top: 28px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.page-grid.solo {
  grid-template-columns: minmax(0, 1fr);
}

h1,
.sidebar h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.prose h3,
.sidebar h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink-strong);
}

.prose p,
.sidebar p {
  margin: 0 0 12px;
}

.prose ul,
.sidebar ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.prose table {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.prose > table > tbody > tr {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  column-gap: 40px;
  row-gap: 8px;
}

.prose > table > tbody > tr > td {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
}

.prose > table > tbody > tr > td[colspan] {
  flex: 1 1 100%;
}

.prose > table > tbody > tr > td:not([colspan]):not(:has(*)) {
  display: none;
}

.prose table table {
  width: auto !important;
  min-width: 240px;
}

.prose table table td {
  white-space: nowrap;
}

.prose td {
  vertical-align: top;
  height: auto !important;
  padding: 4px 0 12px;
}

.prose > table > tbody > tr > td img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.prose iframe {
  width: 100% !important;
  max-width: 100%;
  height: 250px;
  border: 0;
  background: #eee;
}

.map-guard {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  margin-bottom: 12px;
  padding: 16px;
  background: #eee;
  border: 1px solid #cbcbcb;
  text-align: center;
}

.map-guard button,
.btn,
button.btn {
  border: 0;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 3px;
}

.map-guard button:hover,
.btn:hover {
  filter: brightness(0.95);
}

.sidebar h2 {
  margin: 0 0 8px;
  background: var(--header);
  color: #fff;
  font-size: 18px;
  padding: 7px 10px;
}

.sidebar.sidebar-history > h2 {
  background: transparent;
  color: var(--ink-strong);
  font-size: 32px;
  line-height: 1.1;
  padding: 0 0 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0.01em;
}

.timeline article {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 8px;
}

.timeline article::after {
  content: "";
  display: block;
  clear: both;
}

.timeline .year {
  float: left;
  margin: 2px 28px 8px 0;
  color: var(--orange);
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
}

.timeline h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.sidebar img {
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.gallery img.gallery-hero {
  grid-column: 1 / -1;
  height: 340px;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.form label {
  font-weight: 700;
  color: var(--ink-strong);
}

.form .star {
  color: var(--orange);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
  color: #222;
  background: #fff;
}

.checks {
  display: grid;
  gap: 6px;
  font-weight: 400;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.checks input {
  width: auto;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.notice {
  background: #eef6ee;
  border: 1px solid #b7d7b7;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.notice.error {
  background: #fdeeee;
  border-color: #e3b4b4;
}

.form-note {
  font-size: 14px;
}

.partners {
  background: #eaeaea;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track,
.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-track {
  width: max-content;
  animation: marquee 28s linear infinite;
}

.partners:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  height: 54px;
  width: auto;
  display: block;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0 22px;
  color: var(--ink);
  font-size: 14px;
}

.legal nav {
  display: flex;
  gap: 0;
}

.legal nav a {
  color: var(--ink);
  padding: 0 12px;
  border-right: 1px solid #b3b3b3;
}

.legal nav a:last-child {
  border-right: 0;
}

.legal nav a:hover {
  color: var(--orange-deep);
}

.cookie[hidden] {
  display: none !important;
}

.cookie {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 40, 40, 0.94);
  color: #fff;
  padding: 14px 16px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cookie p {
  margin: 0;
}

.cookie a {
  color: #ffd19a;
}

body.has-notice {
  padding-bottom: 92px;
}

.cookie button {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.to-top {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu {
    display: none;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .menu.is-open {
    display: flex;
  }

  .menu ul,
  .menu li:hover > ul,
  .menu li:focus-within > ul {
    display: block;
    position: static;
    min-width: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 6px 12px;
  }

  .service {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .legal,
  .cookie {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .prose tr,
  .prose > table > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .prose td,
  .prose > table > tbody > tr > td,
  .prose > table > tbody > tr > td[colspan] {
    flex: 1 1 100%;
    width: auto !important;
    min-width: 0;
  }

  .prose table table td {
    white-space: normal;
  }

  .gallery,
  .gallery img.gallery-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery img,
  .gallery img.gallery-hero {
    height: 200px;
  }

  .slider {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide {
    transition: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

.page-main { min-width: 0; }
.alert, .joomla-alert, #system-message-container .alert {
  padding: 10px 12px;
  margin: 0 0 16px;
}
.alert-success { background: #eef6ee; border: 1px solid #b7d7b7; }
.alert-error, .alert-danger, .alert-warning { background: #fdeeee; border: 1px solid #e3b4b4; }
.form .control-group { display: grid; gap: 4px; margin: 0; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.form .control-label { font-weight: 700; color: var(--ink-strong); }
.form .controls { min-width: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select, .form .form-control {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
  color: #222;
  background: #fff;
}
.form .checkboxes label, .form .form-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .checkboxes input, .form .form-check input { width: auto; }
.form legend { font-weight: 700; color: var(--ink-strong); }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

