:root {
  --ink:#192e41;
  --text:#40596b;
  --blue:#2c5d83;
  --accent:#3372a1;
  --white:#fcfdfc;
  --sky:#e8f3fb;
  --line:#cbdce8;
  --gold:#a18151;
  --serif:Georgia, 'Times New Roman', serif;
  --sans:'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.55 var(--sans);
}
h1,h2,p,figure {
  margin: 0;
}
h1,h2 {
  font-family: var(--serif);
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wrap {
  width: min(1216px,calc(100% - 112px));
  margin-inline: auto;
}
.site-head {
  background: #fcfefe;
  border-bottom: 1px solid #e0eaf1;
}
.head-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 44px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  line-height: 1.25;
}
.mark {
  width: 44px;
  height: 48px;
  border-radius: 23px 23px 9px 9px;
  background: #e9f3fa;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.mark svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.25;
}
.brand b {
  font: 400 17px/1.2 var(--serif);
  display: block;
}
.brand small {
  font-size: 12px;
  color: var(--text);
  display: block;
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  align-items: center;
  font-size: 15px;
  color: #3b5366;
}
.nav .active {
  color: var(--blue);
  position: relative;
  font-weight: 600;
}
.nav .active:after {
  content: '';
  height: 2px;
  background: #8aafc8;
  border-radius: 2px;
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
}
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 21px;
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 7px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.action.outline {
  background: transparent;
  color: var(--blue);
  border-color: #afc6d7;
  min-height: 42px;
  padding-inline: 14px;
}
.action.outline svg {
  width: 18px;
  height: 18px;
}
.menu {
  display: none;
}
.hero {
  background: linear-gradient(120deg,#f8fbfe 7%,#e6f2fb 100%);
  border-bottom: 1px solid #dce8f1;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.21fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
  min-height: 654px;
  padding-block: 58px 65px;
}
.hero-copy {
  padding-bottom: 10px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.hero h1 {
  font-size: clamp(41px,4.35vw,65px);
  letter-spacing: -.063em;
  line-height: 1.085;
  margin-block: 19px 25px;
}
.hero h1 span {
  display: block;
}
.location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}
.location svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
}
.diocese {
  color: var(--text);
  margin-top: 7px;
  font-size: 16px;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 33px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
}
.text-link svg {
  width: 18px;
  height: 18px;
}
.hero-visual {
  width: min(100%, 506px);
  justify-self: center;
  text-align: center;
}
.hero-frame {
  --frame-inset: 10px;
  position: relative;
}
.hero-photo {
  height: 461px;
  border-radius: 50% 50% 9px 9px / 46% 46% 9px 9px;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: var(--frame-inset);
  border-radius: 50% 50% 7px 7px / 46% 46% 7px 7px;
  border: 1px solid rgb(255 255 255 / 75%);
  pointer-events: none;
}
.hero-frame::before {
  position: absolute;
  content: '';
  z-index: 1;
  height: 8px;
  width: 8px;
  top: var(--frame-inset);
  left: 50%;
  border: 1px solid #a18151;
  background: #eaf4fb;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.hero-visual figcaption {
  color: #435f73;
  font-size: 13px;
  margin-top: 14px;
}
.rector {
  padding-block: 107px 110px;
}
.rector-inner {
  display: grid;
  grid-template-columns: 460px minmax(0, 515px);
  align-items: center;
  justify-content: center;
  gap: 96px;
}
.portrait-frame {
  position: relative;
  width: 392px;
  margin: 0 auto;
  z-index: 0;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 18px 20px -18px -20px;
  z-index: -1;
  background: #e4f0f8;
  border-radius: 12px;
}
.portrait-frame img {
  height: 430px;
  border-radius: 12px;
  object-position: center 38%;
}
h2 {
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -.054em;
}
.rector h2 {
  margin: 16px 0 22px;
}
.rector h2 span {
  display: block;
}
.section-copy {
  color: var(--text);
  font-size: 17px;
  max-width: 455px;
}
.rector .section-copy + p {
  margin-top: 12px;
}
.gallery {
  background: #edf6fb;
  border-block: 1px solid #e1edf4;
  padding-block: 83px 86px;
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 29px;
}
.gallery h2,.support h2 {
  margin-top: 12px;
}
.gallery-head .action {
  margin-bottom: 3px;
  min-height: 47px;
  padding-inline: 17px;
}
.photos {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 16px;
}
.photos figure {
  min-width: 0;
}
.photos img {
  height: 302px;
  border-radius: 9px;
  object-position: center 48%;
}
.photos figure:nth-child(2) img {
  object-position: center 38%;
}
.support {
  padding-block: 93px 100px;
}
.support-inner {
  display: grid;
  grid-template-columns: minmax(0, 365px) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}
.support-intro {
  padding-top: 10px;
}
.support-intro h2 {
  margin-bottom: 17px;
}
.support-intro .section-copy {
  max-width: 314px;
}
.support-cards {
  display: grid;
  gap: 15px;
}
.payment {
  border: 1px solid #d2e1ec;
  border-radius: 13px;
  padding: 23px;
  background: #f5faff;
}
.payment h3 {
  margin: 0;
  font: 400 25px/1.2 var(--serif);
  letter-spacing: -.025em;
}
.country {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}
.flag {
  width: 23px;
  height: 15px;
  border: 1px solid #b7c9d2;
  border-radius: 3px;
  background: linear-gradient(#cb4549 0 67%,#478061 67% 100%);
  position: relative;
  overflow: hidden;
}
.flag.by:before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(135deg,#fff 0 2px,#cb4549 2px 3px);
}
.flag.ru {
  background: linear-gradient(#fff 0 33.3%,#4676ad 33.3% 66.6%,#bf4a50 66.6% 100%);
}
.erip {
  background: white;
  border: 1px solid #dae7ef;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 11px;
}
.erip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.erip strong {
  font-size: 16px;
}
.erip-tag {
  font-weight: 600;
  color: #28597b;
  font-size: 12px;
  background: #e9f3fa;
  padding: 4px 9px;
  border-radius: 4px;
}
.erip p {
  color: #465e6f;
  font-size: 14px;
  margin-top: 7px;
  line-height: 1.55;
}
.erip .erip-subtitle {
  color: var(--blue);
  font-weight: 600;
  margin-top: 5px;
}
.erip-number {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.copy {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  border: 1px solid #d6e3ec;
  border-radius: 5px;
  background: #fff;
  flex: none;
  cursor: pointer;
}
.copy svg {
  width: 15px;
  height: 15px;
}
.erip small,.bank small {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-top: 5px;
}
.banks {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.bank {
  background: white;
  border: 1px solid #dae7ef;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bank .copy {
  margin-left: auto;
}
.bank b {
  color: #203b52;
  font-weight: 650;
  font-size: 14px;
}
.bank .digits {
  color: #263f54;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bank-symbol {
  color: #336789;
  display: grid;
  place-items: center;
  width: 34px;
  height: 35px;
  flex: none;
  border-radius: 6px;
  background: #eaf4fb;
}
.bank-symbol svg {
  width: 18px;
  height: 18px;
}
.payment.russia .bank {
  max-width: 360px;
}
.contacts {
  background: #edf6fb;
  border-top: 1px solid #dce8f1;
  padding-block: 80px;
}
.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 365px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5.3vw, 76px);
}
.contacts h2 {
  margin-bottom: 24px;
}
.contacts h3 {
  font: 650 15px/1.4 var(--sans);
  margin: 26px 0 9px;
}
.contact-map {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sky);
}
.footer {
  background: #e3eff7;
  border-top: 1px solid #d2e1ed;
  padding-block: 16px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}
.contact-location {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-style: normal;
  font-size: 16px;
}
.contact-location strong {
  color: var(--ink);
  font-weight: 650;
}
.contact-location svg {
  color: var(--blue);
  width: 17px;
  height: 17px;
  margin-top: 4px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.socials a {
  display: flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #bacfdf;
  border-radius: 6px;
  background: #eef6fb;
  color: #245477;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 13px;
}
.socials svg {
  width: 11px;
  height: 11px;
}
@media(max-width:1120px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .head-inner {
    gap: 23px;
  }
  .nav {
    gap: 20px;
  }
  .hero-photo {
    height: 390px;
  }
  .hero-inner {
    min-height: 560px;
    gap: 30px;
  }
  .rector-inner {
    grid-template-columns: 1fr 1.25fr;
    gap: 61px;
  }
  .portrait-frame {
    width: min(100%,360px);
  }
  .support-inner {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 29px;
  }
  .bank-symbol {
    display: none;
  }
}
@media(max-width:860px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .head-inner {
    min-height: 69px;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
  }
  .brand {
    gap: 9px;
  }
  .brand b {
    font-size: 15px;
  }
  .brand small {
    font-size: 11px;
  }
  .mark {
    width: 37px;
    height: 40px;
  }
  .mark svg {
    width: 23px;
    height: 23px;
  }
  .head-inner > .action {
    display: none;
  }
  .nav {
    flex-wrap: wrap;
    margin: 0;
    padding-bottom: 14px;
    width: 100%;
  }
  .menu:not([hidden]) + .nav {
    display: none;
  }
  .menu[aria-expanded="true"] + .nav {
    position:absolute;
    z-index:2;
    top:calc(100% - 4px);
    right:0;
    display:grid;
    gap:0;
    width:min(100%,260px);
    padding:6px;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--white);
    box-shadow:0 12px 28px #192e4120;
  }
  .nav a {
    padding: 10px 12px;
  }
  .nav .active:after {
    display: none;
  }
  .menu {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border: 1px solid #c9dce9;
    background: #f1f8fd;
    border-radius: 7px;
    flex: none;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    min-height: 0;
    padding-block: 40px 28px;
  }
  .hero-copy {
    padding: 0;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .13em;
    gap: 9px;
  }
  .eyebrow::before {
    width: 20px;
  }
  .hero h1 {
    font-size: clamp(32px,9.55vw,53px);
    margin-block: 15px 19px;
    line-height: 1.07;
  }
  .location {
    font-size: 15px;
  }
  .location svg {
    width: 16px;
    height: 16px;
  }
  .diocese {
    font-size: 14px;
    line-height: 1.5;
    max-width: 310px;
  }
  .hero-links {
    margin-top: 24px;
    gap: 15px;
  }
  .action {
    min-height: 46px;
    padding-inline: 13px;
    gap: 7px;
    font-size: 14px;
  }
  .action svg {
    width: 17px;
    height: 17px;
  }
  .text-link {
    gap: 5px;
    font-size: 14px;
  }
  .text-link svg {
    width: 16px;
    height: 16px;
  }
  .hero-visual {
    width: min(100%, 475px);
    align-self: center;
  }
  .hero-frame {
    --frame-inset: 7px;
  }
  .hero-photo {
    height: auto;
    aspect-ratio: 1.13;
  }
  .hero-frame::before {
    height: 6px;
    width: 6px;
  }
  .hero-visual figcaption {
    font-size: 12px;
    margin-top: 11px;
  }
  .rector {
    padding-block: 56px 55px;
  }
  .rector-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
  }
  .portrait-frame {
    width: calc(100% - 16px);
    max-width: 420px;
    margin-left: 12px;
  }
  .portrait-frame::before {
    inset: 10px 10px -10px -10px;
    border-radius: 9px;
  }
  .portrait-frame img {
    height: auto;
    aspect-ratio: 1 / 1.06;
    border-radius: 9px;
    object-position: center 36%;
  }
  h2 {
    font-size: 40px;
    line-height: 1.08;
  }
  .rector h2 {
    margin: 11px 0 15px;
  }
  .section-copy {
    font-size: 16px;
  }
  .rector .section-copy + p {
    margin-top: 8px;
  }
  .gallery {
    padding-block: 48px 52px;
  }
  .gallery-head {
    display: contents;
  }
  .gallery-inner {
    display: flex;
    flex-direction: column;
  }
  .gallery h2,.support h2 {
    margin-top: 9px;
  }
  .gallery-head .action {
    order: 2;
    align-self: start;
    margin: 20px 0 0;
    min-height: 43px;
  }
  .photos {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    margin-top: 21px;
  }
  .photos:not(.gallery-more) figure:first-child {
    grid-column: 1 / -1;
  }
  .photos img {
    height: auto;
    aspect-ratio: 1 / 1.1;
    border-radius: 7px;
  }
  .photos:not(.gallery-more) figure:first-child img {
    aspect-ratio: 1.62;
  }
  .support {
    padding-block: 47px 53px;
  }
  .support-inner {
    display: block;
  }
  .support-intro {
    padding-top: 0;
  }
  .support-intro h2 {
    margin-bottom: 12px;
  }
  .support-cards {
    margin-top: 22px;
    gap: 12px;
  }
  .payment {
    padding: 14px;
    border-radius: 10px;
  }
  .payment h3 {
    font-size: 22px;
  }
  .country {
    margin-bottom: 12px;
  }
  .erip {
    padding: 12px;
    margin-bottom: 9px;
  }
  .erip p {
    font-size: 13px;
  }
  .banks {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bank {
    padding: 10px;
  }
  .bank-symbol {
    display: grid;
  }
  .copy {
    width: 38px;
    height: 38px;
  }
  .contacts {
    padding-block: 48px 52px;
  }
  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contacts h2 {
    margin-bottom: 16px;
  }
  .contact-map {
    height: 300px;
  }
}

/* Controls and additional gallery photos */
button {
  font-family: inherit;
}
button.action, .menu {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a:hover, button:hover {
  color: #173e5d;
}
.action:not(.outline):hover {
  background: #204d71;
  color: white;
}
.action.outline:hover, .copy:hover, .socials a:hover {
  background: #dfeef8;
}
.gallery-link {
  display: block;
  border-radius: 9px;
}
.gallery-link:hover {
  outline: 2px solid #7fa6c1;
  outline-offset: 2px;
}
.gallery-more {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 21px 16px;
  margin-top: 23px;
}
.gallery-more img {
  height: 238px;
}
.skip-link {
  position:fixed;
  z-index:4;
  top:12px;
  left:12px;
  padding:10px 16px;
  transform:translateY(-200%);
  border-radius:6px;
  background:var(--white);
  color:var(--blue);
  font-weight:650;
}
.skip-link:focus {
  transform: none;
}

/* Enlarged photo */
.lightbox {
  width:min(1060px,calc(100% - 32px));
  max-height:calc(100% - 28px);
  padding:12px;
  border:0;
  border-radius:12px;
  background:#172c3e;
  color:white;
}
.lightbox::backdrop {
  background: #112434df;
}
.lightbox img {
  width: 100%;
  height: min(68dvh,690px);
  object-fit: contain;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.photo-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox button {
  display:grid;
  place-items:center;
  min-width:40px;
  min-height:40px;
  padding:0 10px;
  border:1px solid #8da8bb;
  border-radius:6px;
  background:transparent;
  color:white;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.lightbox button:hover {
  background: #305570;
}
.lightbox button:focus-visible {
  outline-color: #b6ddf8;
}
.lightbox .previous svg {
  transform: rotate(180deg);
}
.photo-count {
  min-width: 50px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
body:has(.lightbox[open]) {
  overflow: hidden;
}
.copy-message:not(:empty) {
  position:fixed;
  z-index:3;
  right:18px;
  bottom:18px;
  max-width:calc(100% - 36px);
  padding:11px 16px;
  border-radius:7px;
  color:white;
  background:var(--ink);
  box-shadow:0 8px 20px #192e4133;
  font-size:14px;
}

@media (max-width:860px) {
  .gallery-more {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    margin-top: 19px;
    order: 3;
  }
  .gallery-more img {
    height: auto;
  }
  .lightbox img {
    height: min(62dvh,540px);
  }
}
@media (max-width:365px) {
  .lightbox button {
    min-width: 36px;
    padding-inline: 7px;
  }
  .photo-nav {
    gap: 5px;
  }
}
@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

