@font-face {
  font-family: Noto Serif Display;
  src: url(NotoSerifDisplay.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Golos Text;
  src: url(GolosText.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #031225;
  --surface: #061d37;
  --gold: #d4ad60;
  --gold-light: #f1d68f;
  --ivory: #f5efdf;
  --muted: #a9b7c8;
  --rule: #d4ad6054;
  --display: "Noto Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding: 24px; }
body { margin: 0; background: var(--navy); color: var(--ivory); font: 400 16px/1.6 "Golos Text", Arial, sans-serif; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: clamp(2.45rem, 5.1vw, 4.85rem); line-height: 1.04; letter-spacing: -.033em; overflow-wrap: anywhere; text-wrap: balance; }
h1 em { display: block; color: var(--gold-light); font-style: normal; }
h2 { font-size: clamp(1.95rem, 3.7vw, 3.35rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.16; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.wrap { width: min(1220px, calc(100% - 2 * clamp(20px, 5vw, 64px))); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; z-index: 2; padding: 8px 16px; background: var(--gold-light); color: var(--navy); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-bar { border-block-end: 1px solid var(--rule); }
.bar, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar { min-height: 76px; padding-block: 10px; }
.group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; text-decoration: none; }
.group > span:first-child { font: 500 clamp(1.08rem, 2vw, 1.35rem)/1.2 var(--display); color: var(--gold-light); }
.back { color: var(--muted); font-size: .825rem; }
.back i { font-style: normal; color: var(--gold-light); }
.group:hover .back, .site-footer a:hover { color: var(--gold-light); }
.languages { display: flex; flex: none; }
.languages a { display: grid; place-items: center; min-width: 38px; min-height: 44px; text-decoration: none; color: var(--muted); font-size: .8rem; }
.languages a:hover, .languages a[aria-current="page"] { color: var(--gold-light); }
.languages a[aria-current="page"] { box-shadow: inset 0 -1px var(--gold); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); padding-block: clamp(56px, 8.5vw, 128px); }
.intro { max-width: 52ch; margin-block-start: 20px; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.23rem); }
.statement { margin-block-start: 20px; color: var(--gold-light); font: 500 clamp(1.55rem, 2.55vw, 2.25rem)/1.18 var(--display); }
.direction-motto { display: flex; align-items: center; gap: clamp(7px, 2vw, 17px); margin-block-start: 19px; }
.direction-motto p { display: grid; gap: 1px; }
.direction-motto [lang="la"] { color: var(--gold-light); font: 500 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--display); }
.direction-motto p :last-child { color: var(--muted); font-size: .825rem; }
.laurel { position: relative; display: inline-block; flex: 0 0 87px; width: 87px; height: 59px; }
.laurel-branch { position: absolute; top: 0; left: 0; width: 42px; height: 58px; color: var(--gold); }
.laurel-branch:last-child { left: auto; right: 0; transform: scaleX(-1); }
.laurel-branch::before { content: ""; position: absolute; left: 11px; top: 4px; width: 33px; height: 47px; border-left: 1px solid; border-bottom: 1px solid; border-radius: 0 0 0 100%; transform: rotate(12deg); }
.laurel-branch i { position: absolute; top: var(--y); left: var(--x); width: var(--leaf, 13px); height: 5px; border-radius: 95% 0 95% 0; background: linear-gradient(150deg, var(--gold-light) 0%, var(--gold) 54%, #8b6028 100%); transform: rotate(var(--angle)); }
.laurel-branch i:nth-child(1) { --x: 4px; --y: 6px; --angle: 55deg; --leaf: 11px; }
.laurel-branch i:nth-child(2) { --x: 2px; --y: 17px; --angle: 52deg; }
.laurel-branch i:nth-child(3) { --x: 4px; --y: 29px; --angle: 36deg; }
.laurel-branch i:nth-child(4) { --x: 10px; --y: 39px; --angle: 20deg; }
.laurel-branch i:nth-child(5) { --x: 19px; --y: 46px; --angle: 6deg; }
.laurel-branch i:nth-child(6) { --x: 12px; --y: 11px; --angle: -62deg; --leaf: 11px; }
.laurel-branch i:nth-child(7) { --x: 13px; --y: 23px; --angle: -57deg; --leaf: 11px; }
.laurel-branch i:nth-child(8) { --x: 17px; --y: 33px; --angle: -48deg; --leaf: 11px; }
.laurel-branch i:nth-child(9) { --x: 25px; --y: 41px; --angle: -32deg; --leaf: 11px; }
.laurel-detail { position: absolute; left: 50%; top: 47%; width: 24px; height: 19px; transform: translate(-50%, -50%); color: var(--gold-light); }
.wreath-trading .laurel-detail { border: 1px solid; border-radius: 1px; }
.wreath-trading .laurel-detail::before { content: ""; position: absolute; inset: 3px 0; border-block: 1px solid; }
.wreath-trading .laurel-detail::after { content: ""; position: absolute; inset: -1px 7px; border-inline: 1px solid; }
.wreath-institute .laurel-detail::before, .wreath-institute .laurel-detail::after { content: ""; position: absolute; top: 1px; width: 12px; height: 16px; border: 1px solid; background: repeating-linear-gradient(transparent 0 3px, #d4ad6054 3px 4px); }
.wreath-institute .laurel-detail::before { left: 1px; border-radius: 2px 4px 0 1px; transform: skewY(13deg); }
.wreath-institute .laurel-detail::after { right: 0; border-radius: 4px 2px 1px 0; transform: skewY(-13deg); }
.action { display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 100%; margin-block-start: 25px; padding: 12px 17px; color: var(--navy); background: var(--gold-light); text-decoration: none; font-weight: 600; }
.action:hover { background: var(--ivory); }
.action, .text-action, .area-jumps a, .group .back { transition: color 200ms, background-color 200ms, border-color 200ms; }
.brief { align-self: center; border-top: 2px solid var(--gold); border-inline: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(20px, 3.2vw, 40px); background: linear-gradient(135deg, var(--surface), var(--navy)); }
.brief h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); }
.brief ol { margin: 16px 0 0; padding-inline-start: 1.4em; }
.brief li { border-block-end: 1px solid var(--rule); padding: 10px 0 10px 6px; color: var(--muted); }
.brief li::marker, .method-steps li::marker { color: var(--gold-light); }
.section { padding-block: clamp(46px, 6.5vw, 88px); }
.trade-process, .areas { background: var(--surface); border-block: 1px solid var(--rule); }
.process-grid, .area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(20px, 3.3vw, 42px); margin: 28px 0 0; padding: 0; }
.process-grid { list-style: none; }
.process-grid li, .area { border-block-start: 1px solid var(--rule); padding-block-start: 16px; }
.process-grid p, .area p { color: var(--muted); margin-block-start: 9px; }
.text-action { display: inline-block; margin-block-start: 26px; color: var(--gold-light); text-underline-offset: .26em; }
.text-action:hover, .area-jumps a:hover { color: var(--ivory); }

.institute-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.institute-hero .opening { container-type: inline-size; }
.institute-hero h1 {
  font-size: clamp(1.75rem, 4.25vw, 4.2rem);
  font-size: clamp(1.75rem, 9.25cqi, 4.2rem);
  overflow-wrap: normal;
  text-wrap: wrap;
}
.institute-image { padding: 8px; border: 1px solid var(--rule); border-block-start-color: var(--gold); background: var(--surface); }
.institute-image img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 53% 50%; }
.area-jumps { display: flex; flex-wrap: wrap; column-gap: 16px; margin-block-start: 18px; }
.area-jumps a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gold-light); text-underline-offset: .24em; }
.area details { margin-block-start: 12px; }
.area summary { width: fit-content; min-height: 44px; padding-block: 9px; color: var(--gold-light); cursor: pointer; }
.area details ul { margin: 4px 0 0; padding-inline-start: 1.25em; }
.area details li { margin-block-end: 6px; }
.institute-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, .29fr); align-items: center; gap: 32px; }
.method-steps { margin: 20px 0 0; padding-inline-start: 1.4em; }
.method-steps li { padding-inline-start: 4px; }
.institute-emblem { width: min(100%, 174px); justify-self: end; object-fit: contain; }
.site-footer { border-block-start: 1px solid var(--rule); padding-block: 20px; color: var(--muted); font-size: .875rem; }
.site-footer a { text-underline-offset: .24em; }

@media (max-width: 740px) {
  .hero, .institute-hero, .process-grid, .area-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 48px 52px; }
  .institute-image img { aspect-ratio: 16 / 9; }
  .institute-method { grid-template-columns: minmax(0, 1fr); }
  .institute-emblem { justify-self: start; width: 112px; }
}
@media (max-width: 430px) {
  .bar { gap: 8px; }
  .back { display: block; width: 100%; }
  .languages a { min-width: 33px; }
  .direction-motto { gap: 8px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
