.homepage {
  --ink: #361044;
  --purple: #8117cb;
  --muted: #666273;
  --line: #e6e0ea;
  margin: 0;
  color: var(--ink);
  background: #f0faf7;
  font: 400 16px/1.6 "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.homepage * { box-sizing: border-box; }
.homepage h1, .homepage h2, .homepage h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; color: var(--ink); letter-spacing: -.035em; }
.homepage h2 { font-size: clamp(27px, 2.7vw, 36px); font-weight: 700; line-height: 1.2; margin: 0 0 24px; }
.homepage a { color: inherit; }
.homepage a:hover, .homepage a:focus { text-decoration: none; }
.homepage button, .homepage input, .homepage textarea { font: inherit; }
.homepage :focus-visible { outline: 3px solid #a64ae2; outline-offset: 5px; }
.homepage [hidden] { display: none !important; }
.homepage section[id] { scroll-margin-top: 102px; }
.home-container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: white; padding: 10px 18px; }
.skip-link:focus { top: 12px; }
.home-header { position: sticky; top: 0; z-index: 20; color: white; background: #351045; box-shadow: 0 1px 0 #ffffff12; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 82px; }
.home-brand { display: flex; align-items: center; gap: 16px; white-space: nowrap; font: 700 27px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; }
.brand-orbit { width: 46px; height: 25px; display: inline-block; position: relative; border: 1.7px solid currentColor; border-radius: 50%; transform: rotate(-28deg); }
.brand-orbit::before, .brand-orbit::after { content: ""; position: absolute; background: currentColor; border-radius: 50%; width: 5px; height: 5px; left: 21px; }
.brand-orbit::before { top: -6px; }
.brand-orbit::after { bottom: -6px; }
.home-header nav { display: flex; gap: 30px; align-items: center; font-size: 14px; }
.home-header nav > a { transition: color .2s; }
.home-header nav > a:hover { color: #e4b7ff; }
.homepage .button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 0; border-radius: 10px; padding: 13px 23px; font-weight: 700; background: var(--purple); color: white; line-height: 1.4; transition: background .2s, transform .2s; }
.homepage .button:hover { background: #6810a6; color: white; transform: translateY(-1px); }
.homepage .button-small { padding: 11px 17px; background: #9b25e5; }
.homepage .text-link { color: #7019af; text-underline-offset: 5px; text-decoration: underline; font-weight: 500; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; overflow: hidden; border-radius: 26px; margin-top: 26px; background: #ffeadf; min-height: 455px; }
.hero-content { padding: 42px 0 44px 48px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(35px, 3.7vw, 54px); font-weight: 700; line-height: 1.07; margin: 0 0 24px; letter-spacing: -.05em; }
.hero h1 span { color: #7c17b5; }
.hero p { font-size: 17px; line-height: 1.6; max-width: 490px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-art { min-width: 0; align-self: stretch; display: flex; align-items: center; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 42px; align-items: start; }
.project h2 { font-size: 28px; margin: 0; padding-block: 3px; }
.project > div { border-left: 2px solid #c79ce0; padding-left: 30px; }
.project p { margin: 0; font-size: 15px; line-height: 1.65; }
.project .project-credit { color: #7416ad; margin-top: 8px; font-size: 13px; }
.project-credit a, .footer-credit a { text-decoration: underline; text-underline-offset: 3px; }
.project .project-context { margin-top: 22px; }
.project-context h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.activities { padding-bottom: 34px; }
.catalog-tools { display: flex; align-items: center; gap: 24px; margin: 0 0 26px; }
.activity-search { flex: 1; display: flex; align-items: center; gap: 12px; border: 1px solid #d6cfdf; border-radius: 11px; background: #ffffffbf; padding: 5px 17px; margin: 0; font-weight: 400; }
.activity-search > span[aria-hidden] { font: 36px/1.1 sans-serif; color: #62586f; transform: rotate(-20deg); }
.activity-search input { border: 0; background: transparent; padding: 9px 0; width: 100%; outline: none; color: var(--ink); min-width: 0; }
.activity-search:focus-within { border-color: #a05bce; box-shadow: 0 0 0 3px #9a48d115; }
.category-filters { display: flex; gap: 4px; border: 1px solid #ddd6e2; padding: 4px; border-radius: 12px; }
.category-filters button { border: 0; background: transparent; color: var(--ink); padding: 9px 19px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.category-filters button[aria-pressed="true"] { color: white; background: #64178c; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.featured-card { display: flex; flex-direction: column; padding: 10px; border-radius: 19px; background: white; border: 1px solid #fff; box-shadow: 0 6px 25px #3b0b4b04; transition: transform .2s, box-shadow .2s; }
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #3b0b4b0e; }
.featured-image { height: 205px; border-radius: 12px; overflow: hidden; background: #f5f3f7; }
.featured-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.featured-content { padding: 18px 12px 13px; display: flex; flex: 1; align-items: start; flex-direction: column; }
.subject-label { display: inline-block; color: #236c63; background: #e1f5ee; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 5px; }
.featured-content h3 { font-size: 25px; margin: 9px 0 10px; font-weight: 700; line-height: 1.2; }
.featured-content p { font-size: 14px; line-height: 1.6; color: #51405e; margin: 0 0 18px; }
.explore-link { font-size: 13px; font-weight: 700; color: #8215bf; }
.explore-link span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.featured-card .explore-link { margin-top: auto; font-size: 15px; }
.featured-card:hover .explore-link span, .activity-card:hover .explore-link span { transform: translateX(4px); }
.catalog-section { margin-top: 32px; }
.catalog-section h2 { font-size: 29px; margin-bottom: 20px; }
.catalog-section h2::after { content: ""; display: inline-block; height: 24px; width: 2px; margin-left: 19px; vertical-align: -2px; background: #af68d6; }
.activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.activity-card { display: flex; flex-direction: column; background: white; border: 1px solid #fff; border-radius: 14px; padding: 7px; transition: box-shadow .2s, transform .2s; }
.activity-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #320c4210; }
.activity-image { background: #f7f6f9; border-radius: 9px; height: 142px; padding: 5px; overflow: hidden; }
.activity-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.activity-content { padding: 12px 9px 8px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.activity-content h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; line-height: 1.3; letter-spacing: -.02em; }
.activity-content p { color: #6b5e75; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.activity-content .explore-link { margin-top: auto; }
.search-status { color: var(--muted); margin: 22px 0; font-size: 14px; }
.contact { padding: 32px; margin-block: 28px; background: white; border-radius: 20px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 55px; }
.contact h2 { margin-bottom: 10px; font-size: 29px; }
.contact h3 { margin: 0 0 18px; font-size: 19px; font-weight: 500; }
.contact-copy p, .contact-copy a { font-size: 14px; }
.contact-copy p { color: var(--muted); margin-bottom: 14px; }
.contact-form label { display: block; width: 100%; font-size: 12px; color: #65536e; font-weight: 500; margin-bottom: 13px; }
.contact-fields { display: flex; gap: 15px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; border: 1px solid #ded7e7; padding: 10px 12px; border-radius: 8px; background: #fcfbfd; color: var(--ink); margin-top: 5px; resize: vertical; font-size: 14px; }
.contact-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-submit p { font-size: 12px; color: var(--muted); margin: 0; }
.contact-submit .button { font-size: 13px; white-space: nowrap; padding: 11px 16px; }
.contact-status { margin: 12px 0 0; font-size: 13px; }
.homepage .visitor-counter { background: white; border-radius: 20px; padding: 28px 30px; width: min(1280px, calc(100% - 64px)); margin: 26px auto 32px; color: var(--ink); }
.homepage .visitor-counter .container { width: 100%; padding: 0; }
.homepage .visitor-counter h3 { font-size: 26px; font-weight: 600; margin-bottom: 22px; }
.homepage .geo-counter-frame { border: 0; background: #faf8fc; border-radius: 13px; gap: 24px; padding: 16px; }
.homepage .geo-map { height: auto; aspect-ratio: 2 / 1; border-color: #e6deee; border-radius: 9px; background: #dfeef3; }
.homepage .geo-map-land path { fill: #ccb5dd; stroke: white; }
.homepage .geo-map-land path:hover { fill: #ad88c8; }
.homepage .geo-map-grid path { stroke: #e0d3ea; }
.homepage .geo-map-message { background: #ffffffdc; font-size: 10px; }
.homepage .geo-country-button, .homepage .geo-city-button { color: #6c3289; }
.homepage .geo-counter-summary { font-size: 12px; margin-top: 16px; }
.homepage .visitor-status, .homepage .visitor-notice { color: #80718b; font-size: 11px; }
.homepage .geo-map-toolbar button, .homepage .geo-counter-filters .btn { color: #603977; border-color: #dfd2e7; background: white; border-radius: 5px; }
.homepage .geo-counter-filters .active { background: #efe5f6; box-shadow: none; }
.home-footer { background: #351045; color: #efe5f2; padding-block: 28px; }
.institution { display: flex; gap: 18px; align-items: center; font-size: 16px; font-weight: 500; }
.institution img { object-fit: contain; }
.footer-credit { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; margin-top: 24px; border-top: 1px solid #ffffff24; color: #d7c3e2; font-size: 12px; }
.back-top { display: inline-block; margin-top: 20px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 1600px) { .hero { min-height: 480px; } }
@media (max-width: 1050px) {
  .header-inner { gap: 15px; }
  .home-header nav { gap: 16px; font-size: 12px; }
  .home-brand { font-size: 23px; gap: 12px; }
  .hero-content { padding-left: 32px; }
  .hero h1 { font-size: 39px; }
  .hero-actions { gap: 15px; }
  .hero-actions a { font-size: 13px; }
  .hero { min-height: 400px; }
  .project { grid-template-columns: 200px 1fr; gap: 20px; }
  .catalog-tools { gap: 15px; }
  .category-filters button { padding: 9px 12px; }
  .featured-content h3 { font-size: 22px; }
  .featured-image { height: 170px; }
  .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-container { width: calc(100% - 32px); }
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 0; }
  .home-brand { font-size: 24px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: transparent; border: 1px solid #ffffff45; border-radius: 8px; }
  .menu-toggle span { width: 21px; height: 2px; background: white; }
  .home-header nav { display: none; width: 100%; padding: 14px 0 20px; gap: 16px; align-items: start; flex-direction: column; font-size: 15px; }
  .home-header nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; margin-top: 16px; border-radius: 19px; }
  .hero-content { padding: 32px 26px 10px; }
  .hero h1 { font-size: clamp(33px, 7.5vw, 48px); }
  .hero p { font-size: 15px; }
  .hero-art { height: 265px; }
  .hero-art img { object-fit: contain; }
  .project { grid-template-columns: 1fr; gap: 17px; padding-block: 32px; }
  .project > div { padding-left: 17px; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .category-filters { width: max-content; max-width: 100%; }
  .featured-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .featured-card { flex-direction: row; padding: 9px; }
  .featured-image { width: 39%; height: auto; min-height: 180px; flex-shrink: 0; }
  .featured-content { padding: 10px 12px; }
  .featured-content h3 { font-size: 22px; }
  .featured-content p { font-size: 12px; line-height: 1.5; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .activity-image { height: 124px; }
  .activity-content { padding: 10px 5px 6px; }
  .activity-content h3 { font-size: 15px; }
  .contact { grid-template-columns: 1fr; gap: 30px; padding: 24px; }
  .contact-submit { align-items: start; flex-direction: column; gap: 12px; }
  .homepage .visitor-counter { width: calc(100% - 32px); padding: 22px 18px; }
  .homepage .geo-counter-frame { padding: 10px; gap: 15px; }
  .homepage .geo-map { height: auto; }
  .homepage .visitor-counter h3 { font-size: 23px; }
  .institution { gap: 12px; font-size: 13px; flex-wrap: wrap; }
  .institution img:first-child { width: 78px; }
  .footer-credit { flex-direction: column; align-items: start; gap: 17px; }
}
@media (max-width: 420px) {
  .featured-card { flex-direction: column; }
  .featured-image { width: 100%; height: 180px; min-height: 0; }
  .featured-content p { font-size: 14px; }
  .contact-fields { flex-direction: column; gap: 0; }
}
@media (max-width: 360px) {
  .home-brand { font-size: 21px; gap: 10px; }
  .brand-orbit { width: 35px; height: 21px; }
  .category-filters button { padding-inline: 9px; font-size: 12px; }
}
