:root {
  --ink: #1d2e43;
  --muted: #607087;
  --paper: #fffdf9;
  --tint: #edf3f2;
  --accent: #be302d;
  --line: #d8e0e2;
  --shadow: 0 18px 45px rgb(29 46 67 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .7rem 1rem; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; z-index: 5; top: 0; background: rgb(255 253 249 / 95%); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; text-transform: uppercase; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: grid; gap: .14rem; line-height: 1; letter-spacing: .055em; }
.brand-text small { font-size: .62rem; font-weight: 700; white-space: nowrap; }
.brand-text strong { font-size: .88rem; letter-spacing: .025em; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a { color: var(--muted); font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.eyebrow { margin: 0 0 .7rem; color: var(--accent); font-size: .98rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-organization { max-width: 42rem; font-size: clamp(.78rem, 1.35vw, 1.06rem); line-height: 1.38; letter-spacing: .055em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.75rem, 4.6vw, 4.9rem); }
h2 { margin-bottom: 1.3rem; font-size: clamp(2.1rem, 3.5vw, 3.5rem); }
.hero-lead { max-width: 34rem; margin-bottom: 2rem; color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; min-height: 47px; padding: .65rem 1.05rem; border: 1px solid var(--ink); font-weight: 700; text-decoration: none; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.social-links { display: flex; gap: .75rem; }
.social-links a { border-bottom: 1px solid currentColor; color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.social-links-hero { margin-top: 2rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1.2; object-fit: cover; object-position: center; box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; max-width: 13rem; padding: .7rem 1rem; background: var(--accent); color: white; font-size: .82rem; font-weight: 700; }

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.split-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 4rem; }
.prose { max-width: 49rem; color: var(--muted); font-size: 1.08rem; }
.prose p + p { margin-top: 1.2rem; }
.section-heading { max-width: 47rem; margin-bottom: 2.6rem; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.activity-grid article { min-height: 218px; padding: 1.4rem 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activity-grid span { color: var(--accent); font-size: .94rem; font-weight: 800; letter-spacing: .08em; }
.activity-grid h3 { margin: 1.8rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; font-weight: 500; line-height: 1.1; }
.activity-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.gallery-heading { display: flex; max-width: none; justify-content: space-between; gap: 2rem; align-items: end; }
.gallery-heading > p { max-width: 16rem; }
.photo-grid { display: grid; gap: 1rem; }
.gallery-set { border-top: 1px solid var(--line); }
.gallery-page-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
.gallery-item, .thanks-item { position: relative; margin: 0; padding: 0; overflow: hidden; border: 0; background: var(--ink); cursor: zoom-in; }
.gallery-item::after, .thanks-item::after { position: absolute; inset: 0; content: ""; background: rgb(29 46 67 / 0%); transition: background .2s; }
.gallery-item:hover::after, .thanks-item:hover::after { background: rgb(29 46 67 / 18%); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img, .thanks-item:hover img { transform: scale(1.035); }
.gallery-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0 0; }
.gallery-pager button { min-width: 108px; padding: .55rem .7rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.gallery-pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.gallery-pager button:disabled { cursor: default; opacity: .35; }
.gallery-pager span { color: var(--muted); font-size: .9rem; }

.thanks-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: start; }
.thanks-item { aspect-ratio: .7; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgb(29 46 67 / 7%); }
.thanks-item img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; transition: transform .35s ease; }

.document-layout, .details-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.document-card { display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.document-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.document-card strong, .document-card small { display: block; }
.document-card small { margin-top: .15rem; color: var(--muted); }
.document-icon { display: grid; width: 48px; height: 55px; flex: 0 0 auto; place-items: center; background: var(--accent); color: white; font-size: .75rem; font-weight: 800; }
.arrow { margin-left: auto; color: var(--accent); font-size: 1.35rem; }
.requisites { margin: 0; border-top: 1px solid var(--line); }
.requisites div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 600; }

.contacts-section { background: var(--ink); color: white; }
.contacts-section .eyebrow { color: #ff7770; }
.contacts-section p:not(.eyebrow) { max-width: 34rem; color: #c9d3dc; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-list { display: grid; gap: .9rem; font-style: normal; }
.contact-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / 20%); color: white; font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: #ff9a93; }
.contact-list span { color: #b8c4d0; font-size: .82rem; font-weight: 500; }
.site-footer { padding: 1.7rem 0; background: #132235; color: #d8e1e8; font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; font-weight: 700; }
.footer-inner div { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: white; text-decoration: underline; }

.lightbox { width: min(1000px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgb(7 16 28 / 82%); }
.lightbox figure { display: grid; max-height: calc(100vh - 2rem); margin: 0; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 4rem); }
.lightbox figcaption { padding-top: .6rem; color: white; text-align: center; }
.lightbox-close { position: fixed; top: 1.1rem; right: 1.1rem; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid white; border-radius: 50%; background: transparent; color: white; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-nav { position: fixed; top: 50%; display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid white; border-radius: 50%; background: rgb(7 16 28 / 45%); color: white; font-size: 1.5rem; cursor: pointer; transform: translateY(-50%); }
.lightbox-prev { left: 1.1rem; }
.lightbox-next { right: 1.1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 850px) {
  .site-nav { position: absolute; top: 74px; right: 0; left: 0; display: none; padding: 1rem 1.5rem 1.4rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; gap: 1rem; }
  .menu-toggle { display: grid; width: 35px; gap: 5px; padding: .4rem; }
  .menu-toggle span:not(.visually-hidden) { display: block; height: 2px; background: var(--ink); }
  .hero-grid, .split-layout, .document-layout, .details-layout, .contacts-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { order: 2; }
  .hero-photo { order: 1; }
  .hero-photo img { aspect-ratio: 1.5; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .thanks-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 2rem, 1160px); }
  .header-inner { min-height: 66px; gap: 1rem; }
  .brand img { width: 45px; height: 45px; }
  .brand-text small { font-size: .54rem; }
  .brand-text strong { font-size: .77rem; }
  .site-nav { top: 66px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .section { padding: 3.5rem 0; }
  .activity-grid, .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .gallery-page-grid { grid-auto-rows: 145px; }
  .gallery-heading { display: block; }
  .thanks-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .requisites div { grid-template-columns: 1fr; gap: .25rem; }
  .contact-list a { display: grid; }
  .footer-inner { display: grid; justify-items: start; }
  .footer-inner div { justify-content: start; }
}
