/* Match the width and baseline of the site's Cyrillic faces while they load. */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial'), local('Liberation Sans');
  size-adjust: 114.5%;
  ascent-override: 84.7%;
  descent-override: 21.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Anticva Fallback';
  src: local('Georgia');
  size-adjust: 132%;
  ascent-override: 60.6%;
  descent-override: 15.2%;
  line-gap-override: 0%;
}
:root {
  --text: Montserrat, 'Montserrat Fallback', Arial, sans-serif;
  --display: Anticva, 'Anticva Fallback', Georgia, serif;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, button, input, textarea, select { font-family: var(--text); }
.mast { color: #595855; }
.mast-row { gap: 12px; }
.site-nav { gap: 24px; }
.nav-item > a { font-size: 16px; font-weight: 500; }
.nav-item > a:hover { color: #876618; text-decoration: none; }
.disclosure {
  display: grid; place-items: center; width: 24px; min-height: 32px;
  border: 0; padding: 0; color: inherit; background: transparent;
}
.disclosure::after, .language summary::after {
  content: ''; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.disclosure[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.dropdown { background: #393836; color: var(--cream); }
.dropdown a { font: 500 15px/1.5 var(--text); padding: 9px 16px; }
.dropdown a:hover, .dropdown a:focus-visible { background: #eecf7e; color: #393836; }
.small-search { width: 240px; height: 41px; color: #393836; border-color: #aaa9a6; }
.small-search input { height: 40px; padding: 0 12px; font: 500 16px/1.4 var(--text); }
.small-search button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; }
.glass { border-width: 2px; }
.home-page .mast { color: #f1eee6; background: #393836; }
.home-page .nav-item > a { font-weight: 400; }
.home-page .nav-item > a:hover { color: #eecf7e; }
.home-page .small-search { color: #fff; border-color: #e3e0d8; width: 212px; }
@media (min-width: 1200px) {
  .site-nav { margin-left: -15px; }
  .home-page .site-nav { margin-left: -28px; }
}
.footer { background: #393836; color: #f1eee6; padding: 0; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 29.8%) minmax(0, 26.6%) minmax(0, 22.4%) minmax(0, 1fr);
  align-items: center; gap: 0; min-height: 276px; padding-block: 36px;
}
.footer-grid > * { min-width: 0; }
.footer-grid .footer-brand { display: block; width: min(94%, 301px); margin: 0; }
.footer .footer-logo { display: block; width: 100%; }
.footer-grid nav, .footer-contact { display: grid; justify-items: start; gap: 5px; }
.footer-grid nav { padding-right: clamp(12px, 3vw, 62px); }
.footer a { margin: 0; font: 500 15px/1.5 var(--text); }
.footer-grid .footer-social { display: grid; place-items: center; width: 40px; height: 24px; }
.footer-social img { display: block; }
.footer-contact .language { justify-self: start; position: relative; font: 600 16px/1.4 var(--text); color: #393836; }
.language summary {
  display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 42px;
  padding: 8px 13px; border-radius: 2px; background: #fff; cursor: pointer; list-style: none;
}
.language summary::-webkit-details-marker { display: none; }
.language summary::before { content: ''; width: 26px; height: 17px; border: 1px solid #ddd; background: linear-gradient(#fff 33.33%, #174da6 33.33% 66.67%, #dc202c 66.67%); }
.language[data-locale=en] summary::before { display: none; }
.language summary::after { width: 6px; height: 6px; transform: translateY(2px) rotate(225deg); }
.language[open] summary::after { transform: translateY(-2px) rotate(45deg); }
.language > div { bottom: calc(100% + 3px); left: 0; right: auto; z-index: 3; min-width: 110px; background: white; }
.language > div a { padding: 6px 8px; font-size: 14px; }
.footer-signature { background: #eecf7e; color: #393836; }
.footer-signature .wrap { padding-block: 10px; }
.footer-signature a { display: inline-block; font: 400 17px/1.4 var(--display); }
.section-index { min-height: calc(64vh + 90px); }
.section-index-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin-bottom: 40px; }
.section-index-heading span { color: #75736f; font: 400 35px/1.4 var(--display); }
.section-index .section-links { display: block; padding: 0; }
.section-index .section-links a {
  display: flex; align-items: center; min-height: 130px; padding: 24px 40px;
  font: 400 24px/1.55 var(--display); border: 0; border-block-start: 1px solid #d9d8d5; border-radius: 0;
}
.section-index .section-links a:last-child { border-block-end: 1px solid #d9d8d5; }
.section-index .section-links a:hover, .section-index .section-links a:focus-visible { background: #f5f3ee; }
@media (max-width: 991px) {
  .mast-row { width: calc(100% - 32px); }
  .menu-toggle, .has-nav .menu-toggle {
    display: grid; place-content: center; gap: 5px; height: 44px; width: 34px; padding: 0; color: inherit;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
  .site-nav { display: none; }
  .has-nav .site-nav.is-open, html:not(.has-nav) .site-nav:target {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; z-index: 3;
    top: 100%; left: 0; width: min(330px, 100%); padding: 12px 18px 18px;
    max-height: 70vh; overflow: auto; background: #393836; color: #f1eee6;
  }
  html:not(.has-nav) .site-nav:target .dropdown { display: block; }
  .nav-item { justify-content: flex-start; }
  .nav-item > a { flex: 1; padding: 9px 5px; }
  .disclosure { width: 44px; min-height: 44px; }
  .dropdown { flex-basis: 100%; background: #464541; padding: 3px; }
  .small-search, .home-page .small-search { width: min(49vw, 212px); }
  .footer-grid { grid-template-columns: minmax(0, 29%) minmax(0, 28%) minmax(0, 20%) minmax(0, 1fr); }
  .footer-grid nav { padding-right: 12px; }
}
@media (max-width: 767px) {
  .home-page .mast { position: absolute; inset: 0 0 auto; background: transparent; }
  .section-index-heading { justify-content: center; text-align: center; margin-bottom: 30px; }
  .section-index { min-height: calc(64vh + 70px); }
  .section-index-heading h1 { font-size: 35px; }
  .section-index-heading span { display: none; }
  .section-index .section-links a { min-height: 124px; padding: 20px; font-size: clamp(20px, 6vw, 24px); }
  .footer-grid { width: calc(100% - 32px); grid-template-columns: minmax(128px,1.13fr) minmax(75px,.76fr) minmax(95px,1fr); align-items: center; gap: 30px 6px; padding-block: 46px; }
  .footer-grid .footer-brand { grid-column: 1/-1; justify-self: center; width: min(74%, 264px); }
  .footer-grid nav, .footer-contact { padding: 0; gap: 8px; overflow-wrap: anywhere; }
  .footer-grid nav:nth-of-type(2) { justify-items: center; text-align: center; }
  .footer-contact, .footer-contact .language { justify-items: end; justify-self: end; text-align: right; }
  .footer-grid > div.footer-contact { grid-column: auto; }
  .footer a { font-size: 13px; }
  .footer-contact .language > div { left: auto; right: 0; }
  .language summary { padding: 7px; gap: 5px; }
  .footer-signature { text-align: center; }
  .footer .footer-signature a { font: 400 16px/1.4 var(--display); }
}
@media (max-width: 359px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div.footer-contact { grid-column: 1/-1; justify-items: center; justify-self: center; text-align: center; }
  .footer-contact .language { justify-self: center; }
}
