@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink-950: #071522;
  --ink-900: #0b1e30;
  --ink-800: #16324a;
  --ink-700: #29465f;
  --ink-600: #536a7c;
  --line: #d8e0e7;
  --surface: #ffffff;
  --surface-soft: #f2f5f7;
  --brand: #1764c0;
  --brand-dark: #0b4a92;
  --accent: #d39a48;
  --content: 1180px;
  --font-display: "Manrope", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  top: 0 !important;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  margin-top: 0 !important;
}

body {
  top: 0 !important;
}

.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  visibility: hidden !important;
}

::selection {
  background: rgba(23, 100, 192, 0.2);
  color: var(--ink-950);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-950);
  font-weight: 720;
  line-height: 1.16;
  text-wrap: balance;
  font-family: var(--font-display);
}

p {
  margin: 0 0 1.25em;
  color: var(--ink-700);
  font-size: clamp(1rem, 0.975rem + 0.12vw, 1.055rem);
  line-height: 1.74;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
  letter-spacing: -0.006em;
}

strong,
b {
  color: var(--ink-900);
}

a {
  color: var(--brand-dark);
  text-decoration-color: rgba(11, 74, 146, 0.34);
  text-underline-offset: 0.2em;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 3px solid rgba(23, 100, 192, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 21, 34, 0.24);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  position: relative;
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

#header-wrapper {
  position: relative;
  isolation: isolate;
  min-height: 350px;
  overflow: hidden;
  background-color: var(--ink-900);
  background-image: image-set(
    url("../media/content/banner.webp") type("image/webp"),
    url("../../images/banner.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-position: center 48%;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#header-wrapper::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 27, 0.24) 0%, rgba(4, 16, 27, 0.08) 40%, rgba(4, 16, 27, 0.88) 100%);
  content: "";
}

#header-wrapper::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 68%, var(--accent) 68% 78%, transparent 78%);
  content: "";
}

#header {
  display: flex;
  min-height: 350px;
  align-items: flex-end;
  padding-block: 28px;
}

#menu {
  width: 100%;
}

#menu ul {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 8px;
  overflow-x: auto;
  list-style: none;
  background: rgba(7, 21, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  box-shadow: 0 16px 44px rgba(4, 16, 27, 0.22);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

@supports (backdrop-filter: blur(12px)) {
  #menu ul {
    background: rgba(7, 21, 34, 0.72);
    backdrop-filter: blur(12px) saturate(115%);
  }
}

#menu li {
  flex: 1 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

#menu a {
  display: block;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 680;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

#menu a:hover,
#menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

#wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(234, 241, 248, 0.7), transparent 250px), var(--surface-soft);
}

#wrapper::before {
  position: absolute;
  top: 0;
  left: max(24px, calc((100% - var(--content)) / 2));
  width: 88px;
  height: 1px;
  background: var(--accent);
  content: "";
}

#staff {
  padding-block: clamp(54px, 7vw, 86px) clamp(72px, 9vw, 110px);
}

.title {
  margin: 0 0 42px;
  text-transform: none;
}

.title h2 {
  position: relative;
  max-width: 980px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-950);
  font-size: clamp(1.65rem, 2.65vw, 2.6rem);
  line-height: 1.14;
  text-align: left;
  letter-spacing: -0.035em;
}

.title h2::before {
  position: absolute;
  top: 0.08em;
  bottom: 0.12em;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  content: "";
}

.galleria {
  width: min(100%, 980px) !important;
  height: clamp(340px, 54vw, 640px) !important;
  margin: clamp(30px, 5vw, 50px) auto 0 !important;
  overflow: hidden;
  border: 1px solid rgba(7, 21, 34, 0.18);
  border-radius: 6px;
  background: #050b11 !important;
  box-shadow: 0 24px 58px rgba(7, 21, 34, 0.2);
  vertical-align: middle;
  clear: both;
}

.galleria-container {
  font-family: inherit !important;
}

.galleria-thumbnails .galleria-image {
  border-radius: 2px;
}

.galleria-theme-classic .galleria-stage {
  top: 14px;
  right: 14px;
  bottom: 68px;
  left: 14px;
  background: radial-gradient(circle at 50% 45%, #111b24, #05090d 72%);
}

.galleria-theme-classic .galleria-thumbnails-container {
  right: 14px;
  bottom: 8px;
  left: 14px;
  height: 48px;
}

.galleria-theme-classic .galleria-thumbnails .galleria-image {
  height: 40px;
  margin-right: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  opacity: 0.72;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.galleria-theme-classic .galleria-thumbnails .galleria-image:hover {
  border-color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  transform: translateY(-1px);
}

.galleria-theme-classic .galleria-counter {
  bottom: 14px;
  left: 14px;
  padding: 5px 7px;
  border-radius: 3px;
  background: rgba(4, 12, 19, 0.76);
  font: 650 11px/1 "Manrope", sans-serif;
  letter-spacing: 0.04em;
}

.galleria-theme-classic .galleria-image-nav-left,
.galleria-theme-classic .galleria-image-nav-right {
  top: 31px;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background-color: rgba(4, 12, 19, 0.66);
  background-image: none !important;
  opacity: 0.82;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.galleria-theme-classic .galleria-image-nav-left {
  left: 14px;
}

.galleria-theme-classic .galleria-image-nav-right {
  right: 14px;
}

.galleria-theme-classic .galleria-image-nav-left::before,
.galleria-theme-classic .galleria-image-nav-right::before {
  position: absolute;
  top: 20px;
  width: 13px;
  height: 13px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
}

.galleria-theme-classic .galleria-image-nav-left::before {
  left: 16px;
  transform: rotate(45deg);
}

.galleria-theme-classic .galleria-image-nav-right::before {
  right: 16px;
  transform: rotate(225deg);
}

.galleria-theme-classic.notouch .galleria-image-nav-left:hover,
.galleria-theme-classic.notouch .galleria-image-nav-right:hover {
  background-color: rgba(4, 12, 19, 0.9);
  opacity: 1;
}

.galleria-theme-classic [role="button"]:focus-visible {
  outline: 3px solid #f2c37c;
  outline-offset: 3px;
  opacity: 1;
}

#staff > p {
  max-width: 900px;
  text-wrap: pretty;
}

.info {
  position: relative;
  max-width: 900px;
  margin: 38px 0 16px;
  padding-left: 18px;
  color: var(--brand-dark);
  font-size: 1.05rem;
  text-align: left;
  letter-spacing: 0.01em;
}

.info::before {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 3px;
  background: var(--accent);
  content: "";
}

#copyright {
  width: min(calc(100% - 48px), var(--content));
  padding-block: 32px 38px;
}

#copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.8;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#copyright a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  #header-wrapper {
    animation: header-reveal 650ms ease-out both;
  }

  #staff {
    animation: content-reveal 520ms 120ms ease-out both;
  }

  @keyframes header-reveal {
    from { opacity: 0.75; }
    to { opacity: 1; }
  }

  @keyframes content-reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .container,
  #copyright {
    width: min(calc(100% - 32px), var(--content));
  }

  #header-wrapper,
  #header {
    min-height: 300px;
  }

  #header-wrapper {
    background-position: 56% center;
  }

  #header {
    padding-block: 18px;
  }

  #menu {
    width: calc(100vw - 16px);
    margin-left: calc((100vw - 100% - 16px) / -2);
  }

  #menu ul {
    gap: 2px;
    padding: 7px;
    scrollbar-width: none;
  }

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

  #menu li {
    flex: 0 0 auto;
  }

  #menu a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  #staff {
    padding-block: 48px 74px;
  }

  .title h2 {
    padding-left: 16px;
    font-size: clamp(1.5rem, 7.8vw, 2.15rem);
  }

  .galleria {
    width: 100% !important;
    height: clamp(300px, 78vw, 430px) !important;
    margin-top: 28px !important;
    border-radius: 4px;
  }

  .galleria-theme-classic .galleria-image-nav-left,
  .galleria-theme-classic .galleria-image-nav-right {
    width: 38px;
    height: 52px;
  }

  .galleria-theme-classic .galleria-image-nav-left::before,
  .galleria-theme-classic .galleria-image-nav-right::before {
    top: 17px;
  }

  .galleria-theme-classic .galleria-image-nav-left::before {
    left: 14px;
  }

  .galleria-theme-classic .galleria-image-nav-right::before {
    right: 14px;
  }

  p {
    font-size: 1rem;
    line-height: 1.72;
  }

  #copyright p {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
}

/* Branded project composition: title and first gallery frame work as one editorial lead. */

:root {
  --reading: 790px;
  --hero-height: 260px;
  --docked-navigation: 94px;
  --photo-grade: contrast(1.035) saturate(0.96) brightness(1.01);
}

#header-wrapper {
  z-index: 300;
  min-height: var(--hero-height);
  position: sticky;
  top: calc((var(--hero-height) - var(--docked-navigation)) * -1);
}

#header {
  min-height: var(--hero-height);
}

#header:not(:has(.name-active))::before {
  position: absolute;
  top: 28px;
  left: 0;
  width: 48px;
  aspect-ratio: 1;
  background: url("../brand/fortuna-mark.svg") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 8px 20px rgba(4, 16, 27, 0.25));
}

#staff,
#staff .title {
  scroll-margin-top: calc(var(--docked-navigation) + 18px);
}

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

.galleria {
  border-top: 3px solid var(--brand);
}

.galleria-theme-classic .galleria-stage img {
  filter: var(--photo-grade);
}

@media (min-width: 960px) {
  .title:has(.galleria) {
    display: grid;
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
    gap: clamp(38px, 5vw, 66px);
    align-items: center;
    margin-bottom: 54px;
  }

  .title:has(.galleria) h2 {
    align-self: center;
    font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  }

  .title:has(.galleria) .galleria {
    width: 100% !important;
    height: clamp(440px, 56svh, 650px) !important;
    margin: 0 !important;
  }
}

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

  #header-wrapper {
    position: relative;
    top: auto;
  }

  #header:not(:has(.name-active))::before {
    top: 20px;
    width: 40px;
  }
}

/* Unified project masthead, language controls and branded gallery surface. */

#header {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

.brand-lockup {
  width: 100%;
  margin-bottom: auto;
}

.name-active {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(12px, 1.8vw, 18px);
  align-items: start;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  font-weight: 680;
  line-height: 1.08;
  text-align: left;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 24px rgba(4, 16, 27, 0.36);
}

.name-active::before {
  width: clamp(40px, 4vw, 52px);
  aspect-ratio: 1;
  background: url("../brand/fortuna-mark.svg") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 8px 20px rgba(4, 16, 27, 0.25));
}

#header:not(:has(.name-active))::before {
  display: none;
}

#menu.menu-enhanced,
#menu:has(.menu-track) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#menu .menu-track {
  position: relative;
  min-width: 0;
}

#menu .primary-menu {
  justify-content: space-between;
}

#menu .menu-track::before,
#menu .menu-track::after {
  position: absolute;
  z-index: 4;
  top: 1px;
  bottom: 1px;
  width: 32px;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

#menu .menu-track::before {
  left: 1px;
  background: linear-gradient(90deg, rgba(7, 21, 34, 0.98), transparent);
}

#menu .menu-track::after {
  right: 1px;
  background: linear-gradient(270deg, rgba(7, 21, 34, 0.98), transparent);
}

#menu .menu-track.is-scrollable:not(.is-scroll-start)::before,
#menu .menu-track.is-scrollable:not(.is-scroll-end)::after {
  opacity: 1;
}

#menu .language-menu {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  align-self: center;
  justify-content: flex-end;
  gap: 3px;
  overflow: visible;
  padding: 4px;
  background: rgba(7, 21, 34, 0.94);
}

#menu .language-menu li {
  flex: 0 0 auto;
}

#menu a[data-google-lang] {
  min-width: 40px;
  min-height: 36px;
  padding: 7px 6px;
  color: #f2c37c;
  font-size: 0.68rem;
  line-height: 20px;
  cursor: pointer;
}

#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: rgba(255, 255, 255, 0.72);
  background: var(--accent);
  color: var(--ink-950);
  box-shadow: inset 0 -2px 0 rgba(7, 21, 34, 0.3), 0 5px 16px rgba(4, 16, 27, 0.2);
}

.galleria {
  border-color: #9eb1c0;
  border-top-color: var(--brand);
  background: #102331 !important;
  box-shadow: 0 24px 58px rgba(7, 21, 34, 0.17);
}

.galleria-theme-classic .galleria-stage {
  background: linear-gradient(145deg, #203545, #0d1c28 74%);
}

.galleria-theme-classic .galleria-thumbnails .galleria-image {
  border-color: rgba(255, 255, 255, 0.2);
  background: #071522;
}

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

@media (hover: hover) and (pointer: fine) {
  #menu .language-menu a:hover,
  #menu .language-menu a:focus-visible {
    transform: translateY(-1px);
  }
}

@media (max-width: 760px) {
  :root {
    --hero-height: 292px;
  }

  #menu.menu-enhanced,
  #menu:has(.menu-track) {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  #menu .language-menu {
    grid-row: 1;
    justify-self: end;
    min-height: 38px;
    padding: 3px;
  }

  #menu .language-menu a[data-google-lang] {
    min-width: 36px;
    min-height: 32px;
    padding: 5px 6px;
    line-height: 20px;
  }

  #menu .menu-track {
    grid-row: 2;
  }

  #menu .primary-menu {
    justify-content: flex-start;
  }

  .name-active {
    width: min(500px, 100%);
    font-size: clamp(1.25rem, 5.9vw, 1.7rem);
  }

  .name-active::before {
    width: clamp(34px, 10vw, 42px);
  }

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

@media (forced-colors: active) {
  #menu a,
  .galleria {
    forced-color-adjust: auto;
  }
}

@media print {
  body,
  #wrapper {
    background: #ffffff;
  }

  #header-wrapper,
  #menu {
    display: none;
  }

  #copyright p {
    color: #333333;
  }
}
