:root {
  color-scheme: light;
  --bg: #000000;
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.68);
  --on-dark: rgba(255, 255, 255, 0.95);
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --brand: #b40911;
  --border: rgba(0, 0, 0, 0.14);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  --radius: 0px;
  --container: 1120px;
  --parallax-overlay-start: rgba(0, 0, 0, 0.86);
  --parallax-overlay-end: rgba(0, 0, 0, 0.72);
  --hover-duration: 220ms;
  --hover-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-offset: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/resources/background.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(180, 9, 17, 0.6);
  outline-offset: 3px;
  border-radius: 0;
}

.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #ffffff;
  color: #000000;
  padding: 10px 12px;
  border-radius: 0;
  box-shadow: var(--shadow);
  z-index: 999;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--brand);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header + #main {
  padding-top: var(--header-offset);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: rgba(0, 0, 0, 0.9);
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.nav-toggle:hover {
  background-position: 0 0;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.header.nav-open .nav-toggle-icon {
  background: transparent;
}

.header.nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header.nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 919px) {
  :root {
    --header-offset: 88px;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .brand-logo {
    height: 52px;
    max-height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.14);
  }

  .header.nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 12px;
  }
}

.nav a {
  font-size: 15px;
  font-weight: 650;
  color: rgba(0, 0, 0, 0.82);
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid transparent;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.nav a:hover {
  background-position: 0 0;
  border-color: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-offset));
  overflow: hidden;
  background: var(--bg);
  color: var(--on-dark);
}

@supports (height: 100svh) {
  .hero {
    min-height: calc(100svh - var(--header-offset));
  }
}

.hero > .container {
  min-height: inherit;
  display: flex;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.68)),
    url("/resources/hero.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.02);
  transform: scale(1.02);
}

.hero::after {
  content: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  padding: 54px 0 44px;
  display: flex;
  align-items: center;
}

.hero-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: none;
  max-width: 760px;
  padding: 26px 20px;
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--on-dark-muted);
  max-width: 70ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 0;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 50%, rgba(255, 255, 255, 0.12) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease),
    filter var(--hover-duration) var(--hover-ease);
}

.button:hover {
  text-decoration: none;
  background-position: 0 0;
}

.button.primary {
  background-image: linear-gradient(90deg, #8f070e 0 50%, var(--brand) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  border-color: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.96);
}

.button.primary:hover {
  background-position: 0 0;
}

.button.light {
  border-color: rgba(0, 0, 0, 0.18);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: rgba(0, 0, 0, 0.92);
}

.button.light:hover {
  background-position: 0 0;
}

.section {
  padding: 64px 0;
  border-top: 0;
  margin: 18px 0;
}


.section.theme-white {
  background: #ffffff;
  color: var(--text);
}

.section.theme-red {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(0, 0, 0, 0.22);
  --parallax-overlay-start: rgba(180, 9, 17, 0.82);
  --parallax-overlay-end: rgba(180, 9, 17, 0.62);
}

.section.theme-black {
  background: #000000;
  color: var(--on-dark);
  border-top-color: rgba(255, 255, 255, 0.12);
  --parallax-overlay-start: rgba(0, 0, 0, 0.86);
  --parallax-overlay-end: rgba(0, 0, 0, 0.72);
}

.section.theme-red .kicker,
.section.theme-black .kicker {
  color: rgba(255, 255, 255, 0.7);
}

.section.theme-red .lead,
.section.theme-black .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section.theme-red h2::after {
  background: rgba(255, 255, 255, 0.92);
}

.parallax {
  position: relative;
  overflow: hidden;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, var(--parallax-overlay-start), var(--parallax-overlay-end)),
    var(--parallax-image, url("/resources/background.jpg"));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  transform: scale(1.02);
}

.parallax > .container {
  position: relative;
}

.section-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  margin-top: 22px;
}

.section-text {
  grid-column: span 12;
}

.section-photo {
  grid-column: span 12;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  height: 100%;
  min-height: 260px;
}

.section-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section.theme-red .section-photo {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.section.theme-black .section-photo {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 750;
  margin: 0 0 10px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.2px;
}

h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: var(--brand);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 22px;
}

.grid.tight {
  gap: 12px;
}

.card {
  grid-column: span 12;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 16px;
}

.section.theme-red .card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.18);
}

.section.theme-red .card p {
  color: rgba(0, 0, 0, 0.7);
}

.section.theme-red .card h3 {
  color: rgba(0, 0, 0, 0.9);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.carousel {
  position: relative;
  margin-top: 22px;
  --carousel-gap: 10px;
}

.carousel-viewport {
  height: 50vh;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  height: 100%;
  transform: translateX(0);
  transition: transform 420ms var(--hover-ease);
}

.carousel-slide {
  flex: 0 0 calc((100% - (2 * var(--carousel-gap))) / 3);
  height: 100%;
  overflow: hidden;
}

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

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 50%, rgba(255, 255, 255, 0.96) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.carousel-button:hover {
  background-position: 0 0;
  border-color: rgba(0, 0, 0, 0.22);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 0;
  background: var(--brand);
  flex: 0 0 auto;
}

.split-aside {
  border-top: 3px solid var(--brand);
  padding-top: 14px;
}

.cta-band {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 16px;
}

.cta-band h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.94);
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 72ch;
  font-size: 14.5px;
}

.cta-band .cta-row {
  margin-top: 14px;
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 22px;
}

.contact-grid.single .contact-card {
  grid-column: span 12;
}

.contact-card {
  grid-column: span 12;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 16px;
  box-shadow: none;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
  border-bottom: 0;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: rgba(0, 0, 0, 0.62);
}

.value {
  font-size: 15px;
  font-weight: 650;
  color: rgba(0, 0, 0, 0.9);
  word-break: break-word;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  color: var(--brand);
  font-size: 22px;
  border: 1px solid rgba(180, 9, 17, 0.22);
  background-image: linear-gradient(90deg, var(--brand) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.social-icon-link:hover {
  text-decoration: none;
  background-position: 0 0;
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 9, 17, 0.9);
}

.footer-socials {
  display: grid;
  gap: 6px;
  justify-items: start;
  border: 1px solid rgba(180, 9, 17, 0.22);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
}

.footer-socials-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: rgba(0, 0, 0, 0.62);
}

.footer-socials-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer {
  padding: 34px 0;
  border-top: 2px solid var(--brand);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-links a:not(.footer-cert) {
  color: rgba(0, 0, 0, 0.76);
  font-weight: 650;
  padding: 8px 10px;
  border: 1px solid transparent;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.footer-links a:not(.footer-cert):hover {
  background-position: 0 0;
  border-color: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.footer-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(180, 9, 17, 0.6);
  color: rgba(180, 9, 17, 0.92);
  font-weight: 750;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--brand) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition:
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.footer-cert:hover {
  background-position: 0 0;
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 9, 17, 0.9);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(180, 9, 17, 0.6);
  color: rgba(180, 9, 17, 0.92);
  background-image: linear-gradient(90deg, var(--brand) 0 50%, rgba(255, 255, 255, 0.96) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--hover-duration) var(--hover-ease),
    transform var(--hover-duration) var(--hover-ease),
    background-position var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background-position: 0 0;
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 9, 17, 0.9);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(180, 9, 17, 0.6);
  outline-offset: 2px;
}

.spacer {
  height: 12px;
}

@media (min-width: 720px) {
  .hero-inner {
    padding: 74px 0 62px;
  }

  .hero-card {
    padding: 28px 26px;
  }

  .card {
    padding: 20px 18px;
  }

  .contact-card {
    padding: 20px 18px;
  }

  .section-photo {
    min-height: 320px;
  }
}

@media (min-width: 920px) {
  .section-grid {
    gap: 22px;
    align-items: stretch;
  }

  .section-text {
    grid-column: span 7;
  }

  .section-photo {
    grid-column: span 5;
    min-height: 440px;
  }

  .split-aside {
    border-top: 0;
    border-left: 3px solid var(--brand);
    padding-top: 0;
    padding-left: 14px;
  }

  .section-grid.reverse .section-text {
    order: 2;
  }

  .section-grid.reverse .section-photo {
    order: 1;
  }

  .card.split-6 {
    grid-column: span 6;
  }

  .contact-card {
    grid-column: span 6;
  }

  .contact-grid.single .contact-card {
    grid-column: span 12;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :root {
    --hover-duration: 0ms;
  }
}

@media (hover: none) {
  body {
    background-attachment: scroll;
  }

  .hero::before,
  .parallax::before {
    background-attachment: scroll;
  }
}
