/*
 * Fortuna 2026 art direction
 * A presentation-only layer shared by content, project and gallery pages.
 * Routes, document order, form behavior and legacy application logic remain untouched.
 */

:root {
  --ink-1000: #040d15;
  --ink-950: #071522;
  --ink-900: #0d2233;
  --ink-800: #17384f;
  --ink-700: #38576c;
  --ink-600: #647b8b;
  --line: #ccd7df;
  --line-strong: #9eb1bf;
  --surface: #ffffff;
  --surface-soft: #f0f3f5;
  --surface-blue: #e8f0f7;
  --brand: #1767c7;
  --brand-dark: #0b4c93;
  --accent: #d6a052;
  --accent-soft: #f2d7aa;
  --content: 1220px;
  --reading: 1020px;
  --hero-height: 282px;
  --docked-navigation: 96px;
  --shadow: 0 24px 70px rgba(5, 22, 35, 0.11);
}

html {
  scroll-padding-top: calc(var(--docked-navigation) + 24px);
}

body {
  background: var(--ink-1000);
  color: var(--ink-800);
  font-kerning: normal;
  font-synthesis: none;
  font-variant-numeric: proportional-nums;
}

p {
  color: var(--ink-700);
  font-size: clamp(1rem, 0.965rem + 0.15vw, 1.075rem);
  line-height: 1.78;
  letter-spacing: -0.012em;
}

strong,
b {
  font-weight: 710;
}

/* Masthead and navigation: precise, compact and intentionally industrial. */

#header-wrapper {
  min-height: var(--hero-height);
  background-position: center 50%;
  box-shadow: 0 12px 42px rgba(4, 13, 21, 0.16);
}

#header-wrapper::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) center / 96px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) center / 100% 72px,
    linear-gradient(90deg, rgba(3, 13, 22, 0.82) 0%, rgba(3, 15, 26, 0.36) 52%, rgba(3, 13, 22, 0.64) 100%),
    linear-gradient(180deg, rgba(3, 13, 22, 0.12), rgba(3, 13, 22, 0.92));
}

#header-wrapper::after {
  z-index: 3;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 71%, var(--accent) 71% 82%, rgba(255, 255, 255, 0.28) 82% 100%);
}

#header {
  z-index: 1;
  min-height: var(--hero-height);
  padding-block: 30px 22px;
}

.brand-lockup,
#header > div:first-child:has(.name-active) {
  position: relative;
  margin-bottom: auto;
}

.name-active {
  width: min(760px, 100%);
  column-gap: clamp(13px, 2vw, 22px);
  color: #ffffff;
  font-size: clamp(1.58rem, 3.25vw, 2.78rem);
  font-weight: 660;
  line-height: 1.05;
  text-align: left;
  text-align-last: left;
  hyphens: none;
  overflow-wrap: normal;
  letter-spacing: -0.052em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
}

.name-active::before {
  width: clamp(42px, 4.7vw, 60px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.page-index #header-wrapper {
  --hero-height: 510px;
}

.page-index .name-active {
  width: min(900px, 100%);
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  font-weight: 630;
}

#menu.menu-enhanced,
#menu:has(.menu-track) {
  gap: 10px;
}

#menu ul {
  gap: 0;
  padding: 5px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(4, 15, 25, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  scrollbar-width: none;
}

#menu ul::-webkit-scrollbar {
  display: none;
}

@supports (backdrop-filter: blur(14px)) {
  #menu ul {
    background: rgba(4, 15, 25, 0.78);
    backdrop-filter: blur(14px) saturate(112%);
  }
}

#menu a {
  min-height: 46px;
  padding: 12px clamp(10px, 1.1vw, 15px);
  border-radius: 1px;
  font-size: clamp(0.675rem, 0.61rem + 0.11vw, 0.735rem);
  font-weight: 710;
  letter-spacing: 0.055em;
}

#menu a::after {
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
}

#menu a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 -2px 0 var(--accent);
}

#menu .language-menu {
  padding: 5px;
  border-color: rgba(214, 160, 82, 0.48);
  border-radius: 2px;
  background: rgba(4, 15, 25, 0.96);
}

#menu .language-menu a[data-google-lang] {
  min-width: 41px;
  min-height: 36px;
  padding: 7px 6px;
  border-radius: 1px;
  font-size: 0.655rem;
  letter-spacing: 0.06em;
}

#menu a[data-google-lang].language__img_active,
#menu a[data-google-lang][aria-pressed="true"],
html:not(:has(#menu [data-google-lang][aria-pressed]))[lang^="ru"] #menu a[data-google-lang="ru"],
html:not(:has(#menu [data-google-lang][aria-pressed]))[lang^="en"] #menu a[data-google-lang="en"],
html:not(:has(#menu [data-google-lang][aria-pressed]))[lang^="uk"] #menu a[data-google-lang="uk"] {
  border-color: var(--accent-soft);
  background: var(--accent);
  color: var(--ink-1000);
  box-shadow: none;
}

/* Content canvas, headings and reading rhythm. */

#wrapper {
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(214, 160, 82, 0.09), transparent 220px),
    var(--surface-soft);
}

#wrapper::before {
  display: none;
}

#staff {
  padding-block: clamp(66px, 7vw, 96px) clamp(82px, 9vw, 132px);
}

.title {
  margin: clamp(58px, 7vw, 92px) 0 30px;
  padding-left: 0;
}

.title::before {
  display: none;
}

.title--section {
  position: relative;
  max-width: 1120px;
  min-height: 62px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.title--section::before {
  display: none;
  content: none;
}

.title--section::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 92px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.title h2,
#page h2 {
  max-width: 1020px;
  font-size: clamp(1.9rem, 2.9vw, 3rem);
  font-weight: 690;
  line-height: 1.1;
  letter-spacing: -0.052em;
}

.title h2.heading-long {
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
}

.title h2.heading-extra-long {
  font-size: clamp(1.62rem, 2.3vw, 2.35rem);
  line-height: 1.12;
}

#staff > p,
#staff > ul,
#staff > ol {
  max-width: var(--reading);
}

#staff > p.section-intro:not(.media-paragraph):not(.info):not(.david) {
  color: var(--ink-800);
  font-size: clamp(1.04rem, 0.98rem + 0.24vw, 1.17rem);
  line-height: 1.74;
}

#staff img {
  border-color: rgba(7, 21, 34, 0.16);
  border-radius: 2px;
  box-shadow: 0 22px 58px rgba(5, 22, 35, 0.14);
}

.info {
  color: var(--brand-dark);
  font-size: clamp(1.02rem, 0.98rem + 0.18vw, 1.12rem);
  font-weight: 700;
}

.info::before,
#staff > p.info:not(:first-of-type)::before {
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

/* Home page: editorial opening and a compact specification rail. */

.page-index #staff > .title--lead {
  max-width: 1040px;
  margin-bottom: 36px;
}

.page-index #staff > .title--lead + .media-paragraph {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  margin-bottom: clamp(68px, 9vw, 110px);
  padding: clamp(24px, 3vw, 38px);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 66px rgba(5, 22, 35, 0.08);
}

.page-index #staff > .title--lead + .media-paragraph .leftimg {
  float: none;
  width: 100% !important;
  min-height: 290px;
  margin: 0;
  object-fit: cover;
}

.page-index #staff > .title--lead + .media-paragraph font {
  display: block;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  line-height: 1.55;
}

.metrics-rail {
  display: grid;
  width: min(100%, 1020px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 42px;
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(5, 22, 35, 0.07);
}

.metrics-rail > p.metric {
  position: relative;
  display: flex;
  min-height: 112px;
  max-width: none;
  align-items: flex-end;
  margin: 0;
  padding: 48px 24px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-900);
}

.metrics-rail > p.metric:last-child {
  border-right: 0;
}

.metrics-rail > p.metric::before {
  position: absolute;
  top: 17px;
  left: 24px;
  width: 22px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.metrics-rail strong {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  font-variant-numeric: tabular-nums;
}

/* Long-form articles and technical product pages. */

.page-article #staff > .title--lead,
.page-equipment #staff > .title--lead {
  max-width: 1140px;
  padding-bottom: clamp(28px, 4vw, 42px);
}

.page-article #staff > .title--lead h2 {
  max-width: 1100px;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 1.06;
}

.page-article .david {
  width: min(100%, 640px);
  margin: 0 0 54px auto;
  padding: 22px 0 22px 28px;
  border-left: 3px solid var(--accent);
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
}

.page-article #staff > p[style*="text-align: center"]:has(img),
.page-equipment #staff > p[style*="text-align: center"]:has(img),
.page-info #staff > p[style*="text-align: center"]:has(img) {
  width: min(100%, 1040px);
  padding: clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.54);
}

.page-equipment #staff > p:has(> img[src*="r1equip"]) {
  max-width: 1120px;
  padding: clamp(30px, 4vw, 48px);
  border: 0;
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-info #staff > p.info:first-of-type {
  max-width: 920px;
  padding: 24px 28px;
  border: 0;
  border-left: 4px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(5, 22, 35, 0.065);
}

/* Project register: restrained, non-blue hover states. */

.page-object #staff > .title--object-group {
  min-height: 76px;
  margin-top: 16px;
  padding: 15px 16px 15px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.page-object #staff > .title--object-group::before {
  display: none;
}

.page-object .title--object-group h2 {
  display: flex;
  align-items: center;
  font-size: clamp(1.12rem, 1.8vw, 1.52rem);
  font-weight: 680;
}

.page-object .title--object-group h2::before {
  display: none;
  content: none;
}

.page-object #staff > .title.object-group--open {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  background: #ffffff;
}

.page-object #staff img[id^="expand"] {
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
  border-radius: 50%;
  box-shadow: none;
}

.page-object table[id^="content"],
.page-object table.objects {
  border-color: var(--line-strong) !important;
  border-radius: 0;
  box-shadow: 0 20px 54px rgba(5, 22, 35, 0.08) !important;
}

.page-object table[id^="content"] td:first-child,
.page-object table.objects td:first-child {
  position: relative;
  padding-left: 20px !important;
  font-weight: 650;
}

.page-object table[id^="content"] td:first-child::before,
.page-object table.objects td:first-child::before {
  display: none;
  content: none;
}

.page-object table[id^="content"] a,
.page-object table.objects a {
  color: var(--brand-dark) !important;
  text-decoration-thickness: 1px;
}

.page-object table[id^="content"] tr:hover,
.page-object table.objects tr:hover {
  background: #fbfcfd !important;
  box-shadow: inset 4px 0 0 var(--accent);
}

/* Contacts and downloads use their own compositions, not generic cards. */

.page-contact .contact-list {
  border: 0 !important;
  border-top: 4px solid var(--brand) !important;
  border-bottom: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: var(--shadow) !important;
}

.page-contact .contact-list--cards > div,
.page-contact .contact-list--table tr {
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr) !important;
  min-height: 92px;
  padding-block: 24px !important;
}

.page-contact .contact-list--cards > div::before,
.page-contact .contact-list--table tr::before {
  display: none;
  content: none;
}

.page-download .download-list {
  max-width: 900px;
}

.page-download #staff .download-card {
  position: relative;
  min-height: 270px;
  padding: clamp(34px, 5vw, 58px) clamp(34px, 5vw, 58px) clamp(34px, 5vw, 58px) clamp(118px, 14vw, 160px);
  border: 0;
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-download #staff .download-card::before {
  position: absolute;
  top: 52px;
  left: clamp(34px, 5vw, 58px);
  width: 52px;
  height: 88px;
  border: 3px solid var(--ink-900);
  border-radius: 8px;
  background:
    linear-gradient(var(--accent), var(--accent)) center 11px / 18px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center calc(100% - 12px) / 7px 7px no-repeat,
    var(--surface-blue);
  content: "";
  box-shadow: 8px 8px 0 rgba(214, 160, 82, 0.24);
}

.download-link,
.button,
button,
input[type="submit"],
input[type="button"] {
  min-height: 52px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: none;
}

.download-link::after {
  transition: transform 180ms ease;
}

/* Certificates: a document viewer with a caption that always stays outside the page. */

.page-sertif #staff:has(#slide-caption) .galleria {
  width: min(100%, 860px) !important;
  height: clamp(520px, 64svh, 760px) !important;
  margin-top: 34px !important;
  overflow: hidden;
  border: 0;
  border-top: 4px solid var(--brand);
  border-radius: 0;
  background: #101c26 !important;
  box-shadow: 0 28px 72px rgba(5, 22, 35, 0.2);
}

.page-sertif .galleria-theme-classic .galleria-stage {
  top: 18px;
  right: 18px;
  bottom: 74px;
  left: 18px;
  background:
    linear-gradient(90deg, rgba(13, 34, 51, 0.035) 1px, transparent 1px) / 32px 100%,
    linear-gradient(180deg, rgba(13, 34, 51, 0.035) 1px, transparent 1px) / 100% 32px,
    #e8ecef;
}

.page-sertif #slide-caption {
  position: relative;
  z-index: 1;
  max-width: 860px;
  min-height: 70px;
  margin: 18px auto 0;
  padding: 18px 22px 18px 26px;
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(5, 22, 35, 0.07);
  line-height: 1.65;
  text-align: left;
}

/* Project galleries: a deliberately immersive dark presentation surface. */

.page-project #wrapper {
  background: linear-gradient(180deg, #132838, #09151f 58%, #07111a);
}

.page-project #staff {
  width: min(calc(100% - 48px), 1280px);
}

.page-project .title--section {
  max-width: none;
  padding-left: 0;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.page-project .title--section h2 {
  padding-left: 24px;
}

.page-project .title h2 {
  color: #ffffff;
  font-weight: 640;
}

.page-project #staff > p,
.page-project .info {
  color: rgba(231, 239, 244, 0.78);
}

.page-project .info b,
.page-project .info strong {
  color: #ffffff;
}

.page-project .galleria {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background: #030a10 !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.page-project .galleria-theme-classic .galleria-stage {
  top: 18px;
  right: 18px;
  bottom: 78px;
  left: 18px;
  background: radial-gradient(circle at 50% 44%, #263c4c 0%, #08131c 72%);
}

.page-project .galleria-theme-classic .galleria-thumbnails-container {
  right: 18px;
  bottom: 12px;
  left: 18px;
}

.page-project .galleria-theme-classic .galleria-thumbnails .galleria-image {
  border-radius: 0;
  opacity: 0.56;
}

.page-project .galleria-theme-classic .galleria-thumbnails .galleria-image.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--accent);
}

/* Footer: a final brand band with clearer hierarchy. */

#copyright {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  padding-block: 38px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#copyright::before {
  width: 54px;
  aspect-ratio: 1;
  margin-right: 24px;
  background: url("../brand/fortuna-mark.svg") center / contain no-repeat;
  content: "";
  filter: grayscale(0.15) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

#copyright::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 132px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 68%, var(--accent) 68% 100%);
  content: "";
}

#copyright p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1.9;
  letter-spacing: 0.105em;
}

/* Motion is progressive, subtle and removed for reduced-motion users. */

@media (prefers-reduced-motion: no-preference) {
  .motion-enhanced .reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms cubic-bezier(0.22, 0.72, 0.2, 1), transform 560ms cubic-bezier(0.22, 0.72, 0.2, 1);
  }

  .motion-enhanced .reveal-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .galleria-theme-classic .galleria-image-nav-left,
  .galleria-theme-classic .galleria-image-nav-right {
    transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease;
  }
}

@media (hover: hover) and (pointer: fine) {
  #menu a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .download-link:hover::after {
    transform: rotate(-45deg) translate(2px, 2px);
  }

  .page-object #staff > .title--object-group:hover {
    border-color: var(--line-strong);
    border-left-color: var(--accent);
    background: #ffffff;
    transform: translateX(2px);
  }

  .page-project .galleria-theme-classic .galleria-image-nav-left:hover {
    transform: translateX(-2px);
  }

  .page-project .galleria-theme-classic .galleria-image-nav-right:hover {
    transform: translateX(2px);
  }
}

@media (max-width: 1040px) {
  :root {
    --hero-height: 268px;
  }

  .page-index #header-wrapper {
    --hero-height: 420px;
  }

  .page-index #staff > .title--lead + .media-paragraph {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --hero-height: 298px;
    --docked-navigation: 0px;
  }

  .container,
  #copyright,
  .page-project #staff {
    width: min(calc(100% - 28px), var(--content));
  }

  #header-wrapper,
  #header-wrapper:has(#menu a[aria-current="page"][href$="index.php"]),
  #header-wrapper:has(#menu a[aria-current="page"][href$="indexeng.php"]),
  .page-index #header-wrapper {
    --hero-height: 350px;
    position: relative;
    top: auto;
  }

  #header-wrapper::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) center / 64px 100%,
      linear-gradient(90deg, rgba(3, 13, 22, 0.76), rgba(3, 13, 22, 0.38)),
      linear-gradient(180deg, rgba(3, 13, 22, 0.08), rgba(3, 13, 22, 0.92));
  }

  #header {
    padding-block: 22px 14px;
  }

  .name-active,
  .page-index .name-active {
    width: 100%;
    font-size: clamp(1.5rem, 7vw, 2.05rem);
  }

  #menu.menu-enhanced,
  #menu:has(.menu-track) {
    gap: 6px;
  }

  #menu .language-menu {
    min-height: 36px;
    padding: 3px;
  }

  #menu .language-menu a[data-google-lang] {
    min-width: 38px;
    min-height: 30px;
    padding: 5px;
  }

  #menu a {
    min-height: 42px;
    padding: 10px 11px;
  }

  #wrapper {
    background: linear-gradient(180deg, rgba(214, 160, 82, 0.08), transparent 170px), var(--surface-soft);
  }

  #staff {
    padding-block: 54px 84px;
  }

  .title {
    margin-top: 48px;
  }

  .title--section {
    min-height: 0;
    padding: 0 0 18px;
  }

  .title--section::after {
    width: 62px;
  }

  .title h2,
  #page h2,
  .page-article #staff > .title--lead h2,
  .page-equipment #staff > .title--lead h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.18rem);
    line-height: 1.12;
  }

  .title h2.heading-long,
  .title h2.heading-extra-long,
  .page-equipment #staff > .title:first-child h2.heading-extra-long {
    font-size: clamp(1.35rem, 6.3vw, 1.7rem);
    line-height: 1.16;
  }

  p {
    line-height: 1.72;
  }

  .page-index #staff > .title--lead + .media-paragraph {
    display: block;
    margin-bottom: 68px;
    padding: 18px;
  }

  .page-index #staff > .title--lead + .media-paragraph .leftimg {
    min-height: 0;
    margin-bottom: 24px;
  }

  .metrics-rail {
    grid-template-columns: 1fr;
  }

  .metrics-rail > p.metric {
    min-height: 84px;
    padding: 38px 19px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-rail > p.metric:last-child {
    border-bottom: 0;
  }

  .metrics-rail > p.metric::before {
    top: 14px;
    left: 19px;
  }

  .page-article .david {
    margin-bottom: 42px;
    padding-left: 18px;
  }

  .page-object #staff > .title--object-group {
    min-height: 66px;
    padding: 12px 11px 12px 14px;
  }

  .page-object table[id^="content"] td:first-child,
  .page-object table.objects td:first-child {
    padding-left: 14px !important;
  }

  .page-object table[id^="content"] td:first-child::before,
  .page-object table.objects td:first-child::before {
    display: none;
  }

  .page-contact .contact-list--cards > div,
  .page-contact .contact-list--table tr {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-contact .contact-list--cards > div > div:first-of-type,
  .page-contact .contact-list--cards > div > div:last-of-type,
  .page-contact .contact-list--table td:first-of-type,
  .page-contact .contact-list--table td:last-of-type {
    grid-column: 1;
  }

  .page-download #staff .download-card {
    min-height: 0;
    padding: 92px 20px 24px;
  }

  .page-download #staff .download-card::before {
    top: 24px;
    left: 22px;
    width: 34px;
    height: 56px;
    border-width: 2px;
    border-radius: 5px;
    box-shadow: 5px 5px 0 rgba(214, 160, 82, 0.24);
  }

  .page-sertif #staff:has(#slide-caption) .galleria {
    height: clamp(410px, 64svh, 560px) !important;
  }

  .page-sertif #slide-caption {
    min-height: 60px;
    padding: 15px 16px;
  }

  .page-project #wrapper {
    background: linear-gradient(180deg, #132838, #09151f 58%, #07111a);
  }

  .page-project .title--section {
    padding-left: 0;
  }

  .page-project .title--section h2 {
    padding-left: 22px;
  }

  .page-project .galleria-theme-classic .galleria-stage {
    top: 12px;
    right: 12px;
    bottom: 68px;
    left: 12px;
  }

  #copyright {
    min-height: 138px;
    padding-block: 30px 34px;
  }

  #copyright::before {
    width: 42px;
    margin-right: 16px;
  }
}

@media (forced-colors: active) {
  .metrics-rail,
  .page-download .download-card,
  .page-contact .contact-list,
  .page-object #staff > .title--object-group {
    border: 1px solid CanvasText;
  }
}

@media print {
  .title--section {
    padding-left: 0;
    border-bottom: 1px solid #777777;
  }

  .title--section::before,
  .title--section::after,
  #copyright::before,
  #copyright::after,
  .page-download .download-card::before {
    display: none;
  }

  .metrics-rail {
    box-shadow: none;
  }

  .motion-enhanced .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
