.synergy-page {
  --sy-accent: #00068a;
  --sy-text: #000;
  --sy-muted: #68627d;
  --sy-line: #d3d3d3;
  --sy-soft: #f6f6fa;
  height: auto;
}
.synergy-page [hidden] { display: none !important; }
.synergy-page :focus-visible { outline: 2px solid var(--sy-accent); outline-offset: 4px; }
.synergy-page main [id] { scroll-margin-top: 120px; }
.synergy-page button, .synergy-page input, .synergy-page select { font: inherit; }
.sy-skip { position: fixed; top: -80px; left: 30px; z-index: 200; background: white; padding: 12px; }
.sy-skip:focus { top: 16px; }
.synergy-page .header__menu { height: auto; }
.fest-page.synergy-page .header__logo { width: 200px; height: 50px; }
.fest-page.synergy-page .header > .synergy-logo-link { display: flex; align-items: center; width: 190px; height: auto; margin-left: auto; order: 3; }
.synergy-partner-logo { display: block; width: 100%; height: auto; }
.synergy-page .header__actions { order: 4; }
.sy-stage { padding: 138px 24px 64px; border-radius: 0 0 44px 44px; background: #00068a url('./assets/images/about.jpg') center bottom / cover no-repeat; color: white; }
.sy-gallery-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px 28px; max-width: 1440px; margin: 0 auto; }
.sy-gallery-intro { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 44px 28px 28px; border-radius: 16px; background: white; color: black; text-align: center; box-shadow: 0 4px 4px #0004; }
.sy-gallery-intro .welcome-screen__title { font-size: 30px; line-height: 1.2; margin: 0; }
.sy-gallery-intro__text { display: grid; gap: 22px; font-size: 16px; line-height: 1.4; margin: auto 0; }
.sy-gallery-intro .btn { width: 100%; margin-top: auto; }
.sy-gallery-photos { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 360px; }
.sy-about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; max-width: 1200px; margin: 120px auto 0; align-items: stretch; }
.sy-about-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 54px; }
.sy-about-copy .section__column { font-size: 18px; gap: 22px; }
.sy-about-copy .section__subtitle { align-self: center; text-align: center; font-size: 30px; }
.sy-regulations { grid-column: 1 / -1; justify-self: center; align-self: end; }
.synergy-page .section_faq { padding-top: 48px; }
.synergy-page .section_faq .container { gap: 70px; }
.sy-form-panel, .sy-stats { position: relative; min-width: 0; border-radius: 16px; background: white; color: black; padding: 30px 27px; box-shadow: 0 4px 4px #0004; }
.sy-dialog.sy-submission-dialog { width: min(600px, calc(100% - 32px)); }
.sy-submission-dialog .sy-form-panel { padding: 56px 32px 32px; box-shadow: none; }
.sy-form-panel .welcome-screen__title { margin-bottom: 28px; }
.sy-form-panel fieldset { border: 0; min-width: 0; }
.sy-anchor { position: absolute; top: 0; }
.sy-photo-field { position: relative; }
.sy-upload { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 198px; border: 1px solid var(--sy-line); border-radius: 8px; background: #f4f4f4; overflow: hidden; cursor: pointer; }
.sy-upload:hover, .sy-upload.is-dragging { border-color: black; }
.sy-upload:focus-within { outline: 2px solid var(--sy-accent); outline-offset: 3px; }
.sy-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; cursor: pointer; }
#photo-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; }
#photo-placeholder svg { width: 24px; height: 24px; margin-bottom: 6px; }
#photo-placeholder strong { font-family: 'Martian Mono', Arial, sans-serif; font-size: 20px; font-weight: 800; line-height: 1.7; text-transform: uppercase; }
#photo-placeholder > span { color: var(--sy-muted); font-size: 16px; }
#photo-preview { width: 100%; height: 100%; object-fit: contain; }
#photo-change { position: absolute; bottom: 8px; padding: 4px 10px; background: white; border-radius: 6px; font-size: 12px; }
.sy-photo-remove { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: white; font-size: 24px !important; cursor: pointer; }
.sy-hint { font-size: 12px; color: var(--sy-muted); margin-top: 8px; margin-bottom: 20px; }
.sy-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; font-family: 'YS Text', Arial, sans-serif; font-size: 16px; line-height: 1.2; color: var(--sy-muted); }
.sy-field input, .sy-field select { width: 100%; min-width: 0; min-height: 51px; padding: 15px 20px; border: 1px solid var(--sy-line); border-radius: 8px; background: #f4f4f4; color: black; font-size: 16px; }
.sy-field input::placeholder { color: var(--sy-muted); opacity: 1; }
.sy-copy-field { position: relative; width: 100%; }
.sy-copy-field input { padding-right: 54px; font-size: 16px; }
.sy-copy-button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--sy-accent); cursor: pointer; }
.sy-copy-button:hover { background: #e6e6ef; }
.sy-copy-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sy-field select { padding-right: 24px; text-overflow: ellipsis; }
.sy-field-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.sy-consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 24px; font-size: 12px; line-height: 1.45; color: var(--sy-muted); }
.sy-consent input { width: 18px; height: 18px; accent-color: var(--sy-accent); flex-shrink: 0; margin-top: 2px; }
.sy-consent a { color: inherit; text-underline-offset: 3px; }
#submit-btn { width: 100%; }
.sy-form-message { margin-top: 12px; font-size: 13px; color: var(--sy-muted); }
.sy-form-message:empty, #stats-message:empty { display: none; }
.sy-form-message.is-error { color: #b02032; }
.sy-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sy-button--outline { background: transparent; border: 1px solid var(--sy-line); color: black; align-self: center; }
.sy-button--outline:hover { background: var(--sy-soft); }
.sy-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; background: transparent; color: var(--sy-accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sy-stats { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; min-height: 340px; contain: size; }
.sy-stats .sidebar__title { font-size: 22px; }
.sy-stats .sy-stats__subtitle { font-size: 20px; }
.sy-stats .stat { flex: none; }
.sy-stats .stat__value, .sy-stats .city__count { font-size: 12px; }
.sy-stats .sy-hint { margin: 0; }
.sy-faculty-list { flex: 1 1 0; min-height: 0; overflow-y: scroll; scrollbar-width: thin; scrollbar-gutter: stable; }
.sy-faculty-list .city { flex-shrink: 0; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; padding: 8px 0; min-height: 44px; }
.sy-faculty-list .city__label { font-size: 12px; line-height: 1.45; }
.sy-faculty-list .city__count { width: auto; text-align: right; align-self: center; }
.sy-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: 100%; }
.sy-gallery-grid[aria-busy="true"] { opacity: .5; pointer-events: none; }
.sy-card { min-width: 0; position: relative; }
.sy-card .card__image { display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; }
.sy-card__link { display: block; }
.sy-like { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: black; cursor: pointer; min-height: 44px; }
.sy-like svg { width: 18px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.sy-like[aria-pressed="true"] { color: var(--sy-accent); }
.sy-like[aria-pressed="true"] svg { fill: currentColor; }
.sy-like:disabled { cursor: default; }
.sy-card .card__like { bottom: 10px; right: 10px; padding: 4px 10px; border-radius: 24px; background: white; color: var(--sy-accent); font-size: 14px; }
.sy-card .card__like [data-like-count] { order: -1; }
.sy-share { background: white; color: var(--sy-accent); top: 10px; right: 10px; width: 40px; height: 40px; }
.sy-share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sy-pagination { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sy-icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sy-soft); color: black; cursor: pointer; font-size: 24px !important; flex-shrink: 0; }
.sy-icon-button:disabled { opacity: .5; cursor: default; }
.sy-gallery-message { text-align: center; color: white; padding: 24px 0; }
.sy-dialog { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 16px; width: min(820px, calc(100% - 40px)); max-height: calc(100dvh - 40px); color: black; background: white; overflow: auto; overscroll-behavior: contain; }
.sy-dialog::backdrop { background: #0009; }
body.sy-dialog-open { overflow: hidden; }
.sy-dialog-close { position: absolute; right: 12px; top: 12px; z-index: 3; background: white; box-shadow: 0 2px 6px #0002; }
#submission-close { position: sticky; display: grid; margin: 12px 12px -56px auto; }
.sy-dialog__layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.sy-dialog__photo { display: block; width: 100%; height: 100%; min-height: 420px; max-height: 620px; object-fit: contain; background: var(--sy-soft); }
.sy-dialog__info { padding: 72px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sy-dialog h2 { font-family: 'Martian Mono', Arial, sans-serif; font-size: 26px; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; max-width: 100%; }
.sy-dialog__meta { color: var(--sy-muted); }
.sy-dialog__info .sy-like { color: var(--sy-accent); }
.sy-dialog__info .sy-field { width: 100%; margin: auto 0 0; }
.sy-dialog__info .sy-button { width: 100%; }
.sy-dialog__status { padding: 76px 32px 40px; text-align: center; }
.sy-dialog__status p { margin-top: 18px; color: var(--sy-muted); }
.sy-dialog__status .sy-button { margin-top: 24px; }
.sy-success { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; }
.sy-success h3 { font-family: 'Martian Mono', Arial, sans-serif; font-size: 26px; line-height: 1.2; text-transform: uppercase; }
.sy-success__icon { color: var(--sy-accent); font-size: 28px; }
.sy-success .sy-field { margin: 0; }
.sy-success p { color: var(--sy-muted); }
.sy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #202020; color: white; border-radius: 12px; padding: 14px 22px; max-width: calc(100% - 32px); width: max-content; z-index: 200; font-size: 14px; }
@media (min-width: 1200px) {
  .fest-page.synergy-page .header__menu { position: static; display: block; width: auto; max-width: 900px; margin-left: auto; padding: 0; background: transparent; box-shadow: none; overflow: visible; visibility: visible; opacity: 1; transform: none; }
  .fest-page.synergy-page .nav { flex-direction: row; justify-content: space-between; gap: 24px; margin-right: 0; }
  .fest-page.synergy-page .header__actions { display: none; }
}
@media (max-width: 1199px) {
  .sy-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .sy-gallery-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 16px 24px; }
  .sy-gallery-intro { padding: 30px 24px 24px; gap: 24px; }
  .sy-about-layout { gap: 32px; }
  .sy-about-copy { gap: 32px; }
}
@media (max-width: 999px) {
  .sy-stage { padding-top: 112px; }
  .sy-gallery-layout { grid-template-columns: 1fr; gap: 24px; }
  .sy-gallery-intro { max-width: 680px; width: 100%; justify-self: center; }
  .sy-gallery-intro .btn { width: auto; align-self: center; }
  .sy-gallery-photos { min-height: 0; }
  .sy-pagination { grid-column: 1; }
  .sy-about-layout { grid-template-columns: 1fr; margin-top: 72px; }
  .sy-stats { height: 440px; width: 100%; max-width: 480px; justify-self: center; }
}
@media (max-width: 767px) {
  .fest-page.synergy-page .header { gap: 8px; }
  .fest-page.synergy-page .header__logo { width: clamp(104px, 30vw, 160px); height: 40px; }
  .fest-page.synergy-page .header > .synergy-logo-link { width: clamp(88px, 28vw, 160px); }
  .fest-page.synergy-page .burger { width: 44px; }
  .sy-stage { padding: 112px 14px 48px; border-radius: 0 0 32px 32px; }
  .sy-gallery-intro { padding: 30px 24px 24px; }
  .sy-gallery-intro .welcome-screen__title { font-size: 28px; }
  .sy-gallery-intro .btn { width: 100%; }
  .sy-about-copy { grid-template-columns: 1fr; gap: 32px; }
  .sy-about-copy .section__subtitle { align-self: flex-start; font-size: 28px; }
  .sy-regulations { margin-top: 4px; }
  .sy-about-layout { margin-top: 56px; }
  .synergy-page .section_faq .container { gap: 44px; }
  .synergy-page .section { padding-bottom: 48px; }
  .synergy-page .section__title { font-size: 32px; }
  .sy-submission-dialog .sy-form-panel { padding: 56px 22px 24px; }
  .sy-field-row { grid-template-columns: 1fr; gap: 0; }
  .sy-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sy-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .sy-dialog__layout { display: flex; flex-direction: column; }
  .sy-dialog__photo { min-height: 0; height: 35dvh; max-height: 340px; }
  .sy-dialog__info { padding: 22px; gap: 14px; }
  .sy-dialog h2 { font-size: 24px; }
  .sy-dialog__info .sy-field { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .synergy-page * { scroll-behavior: auto !important; transition: none !important; } }
