/* Public-site rhythm. Keep touch targets large; compact the space around them. */
:root {
  --text-hero: clamp(2.35rem, 1.4rem + 2.8vw, 4rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 1.65vw, 2.9rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 2rem);
}
.section, .enroll-section, .video-section, .subscribe-section { padding-block: 28px; }
.section[data-decor]:not([data-decor="neutral"]),
.video-section[data-decor]:not([data-decor="neutral"]) { padding-block: 28px; margin-block: 0; }
.hero { min-height: 0; padding-block: 52px 40px; }
.section-heading { margin-bottom: 22px; }
.prose { line-height: 1.6; overflow-wrap: anywhere; }
.prose p { margin-block: 0 14px; }
.prose p + p { margin-top: 12px; }
.prose p:last-child { margin-bottom: 0; }
.values .value { text-align:center; }
.values .value > img { display:block;margin-inline:auto; }
.values .value > p { margin-inline:auto;text-align:center; }
/* Films are a calm vertical programme, not cramped side-by-side thumbnails. */
.film-gallery-heading,.cms-film-gallery { max-width:960px; }
.film-gallery-heading h1 { font-size:clamp(24px,2.6vw,34px);line-height:1.25;max-width:26ch;margin-bottom:0; }
.cms-film-gallery { display:flex;flex-direction:column;gap:32px;padding-bottom:36px; }
.cms-film-card { min-width:0;padding:26px 28px 24px;border:1px solid #dcdedb;border-radius:16px;background:#fffaf4; }
.cms-film-card[data-decor]:not([data-decor="neutral"]) { background:transparent;border-color:transparent;padding-bottom:56px; }
.film-card-heading { margin-bottom:18px;padding-right:76px; }
.film-card-heading h2 { font-size:clamp(19px,2vw,25px);line-height:1.35;font-weight:500;margin:0;overflow-wrap:anywhere; }
.cms-film-card > .video-caption { font-size:13px;line-height:1.45;font-weight:400;color:var(--muted);text-align:center;margin:10px 0;white-space:pre-wrap; }
.cms-film-card > .film-description { font-size:15px;line-height:1.65;max-width:68ch;margin:18px auto 0; }
.cms-film-card > .text-link { display:table;margin:18px auto 0; }
.cms-video-preview { margin:4px 0 16px;max-width:100%; }
.cms-video-preview > video { display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#20242d;border-radius:12px; }
.video-file-name { font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 0; }
.video-editor-actions { display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px; }
@media(max-width:650px){
 .cms-film-gallery { gap:24px;padding-bottom:26px; }
 .cms-film-card { padding:18px 20px;border-radius:12px; }
 .cms-film-card[data-decor]:not([data-decor="neutral"]) { padding-bottom:40px; }
 .film-card-heading { margin-bottom:14px;padding-right:52px; }
 .cms-film-card > .film-description { font-size:14px;margin-top:14px; }
}
/* Captions are secondary copy; ordinary body paragraphs and card titles stay unchanged. */
figcaption { font-size:13px;line-height:1.45;font-weight:400;color:var(--muted);overflow-wrap:anywhere; }
figcaption:not([class*="camp-text-"]) { text-align:center; }
.prose figcaption,.rte-body figcaption { margin-block:6px 14px; }
.hero-picture .hero-caption { font-size:13px;line-height:1.45;font-weight:400;color:var(--muted); }
.photo-dialog #photo-caption { font-size:13px;line-height:1.45;font-weight:400;color:#cbd3dc;overflow-wrap:anywhere; }
.page-top { padding-block: 36px 22px; }
.page-top > p:empty { display: none; }
.gallery-grid { padding-bottom: 28px; }
.cms-article { padding: 28px 32px 36px; margin-bottom: 32px; }
.cms-article .prose h2 { margin-block: 26px 12px; line-height: 1.25; }
.cms-article .prose h3 { margin-block: 22px 10px; line-height: 1.3; }
.cms-article .prose > :first-child { margin-top: 0; }
.cms-article > .prose + h2 { margin-block: 22px 14px; }
.back-link { margin-bottom: 22px; }
.cms-card-grid, .cms-video-grid { gap: 22px; padding-bottom: 28px; }
.cms-card { padding: 18px; }
.cms-card h3 { margin-block: 12px 8px; line-height: 1.3; }
.cms-video h3, .cms-video > .video-caption { font-size: 14px; line-height: 1.45; font-weight: 400 !important; text-align: center; color: var(--muted); margin-block: 8px 6px; }
.cms-video > .prose { font-size: 14px; line-height: 1.55; text-align: center; margin-inline: auto; }
.media-gallery-links { justify-content: flex-start; margin-top: 16px; }
.application-form fieldset { margin-block: 0 20px; }
.application-form .field-grid { gap: 16px 20px; }
.application-name { min-width:0; }
.application-name:has(.application-name-warning:not([hidden])) + * { align-self:start; }
.application-name[hidden],.application-name-warning[hidden],.application-name-warning button[hidden] { display:none; }
.application-name-warning {
  margin-top:6px; padding:7px 9px; border-inline-start:3px solid var(--orange);
  background:var(--cream); color:var(--ink); font-size:13px; line-height:1.4; overflow-wrap:anywhere;
}
.application-name-warning .button {
  display:block; min-height:32px; margin-top:4px; padding:4px 8px; font-size:inherit; white-space:normal;
}
@media (any-pointer:coarse) {
  .application-name-warning .button { min-height:44px; }
}
#main input:not([type=checkbox]):not([type=radio]):not([type=range]),
#main select, #main textarea, .paper-dialog input, .paper-dialog select,
.paper-dialog textarea { font-size: max(16px, var(--text-sm)); }
.site-footer .social-link { flex: 0 0 42px; width: 42px; height: 42px; min-height: 42px; padding: 10px; }
.site-footer .social-link > svg:first-child { display: block; width: 22px; height: 22px; flex: none; }
.site-footer .social-buttons { justify-content: flex-start; gap: 8px; }
.footer-inner .footer-contacts { gap: 10px; }
.site-footer { padding-top: 30px; }
@media (max-width: 650px) {
  :root { --text-2xl: 25px; --text-xl: 23px; }
  .hero { min-height: 0; padding-block: 28px 30px; gap: 18px; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(32px, 8.3vw, 38px); max-width: 100%; line-height: 1.1; margin-bottom: 18px; }
  .hero-copy > p { font-size: 16px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; gap: 16px; }
  .hero-art { padding-top: 12px; }
  .section { padding-block: 22px 24px; }
  .about-intro { gap: 18px; }
  .about-intro h2, .enroll-title h2, .subscribe-box h2,
  .video-copy h2, .section-heading h2 { font-size: 25px; line-height: 1.18; margin-bottom: 12px; max-width: 100%; }
  .prose { line-height: 1.55; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 20px; }
  .values { padding-top: 4px; gap: 16px; }
  .value img { margin-bottom: 10px; }
  .about-photos { margin-top: 20px; gap: 12px; }
  .about-link { margin-top: 8px; }
  .enroll-section { padding-block: 12px 24px; }
  .painted { padding: 24px 20px; }
  .enroll-title { max-width: calc(100% - 72px); }
  .enroll-bird { width: 72px; right: 18px; top: 24px; }
  .enroll-subtitle { margin-bottom: 18px; }
  .announcement { padding-top: 18px; gap: 12px; }
  .section-heading { margin-bottom: 16px; gap: 12px; }
  .section-heading p { margin-top: 8px; }
  .gallery-link { margin-top: 6px; }
  .section:has(> .photo-track) .carousel-controls { display: none; }
  .photo-track { padding-bottom: 4px; }
  .photo-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .photo-stage .photo-prev, .photo-stage .photo-next { display: none; }
  .video-section { padding-block: 20px 28px; }
  .video-layout { gap: 14px; }
  .video-copy p { margin-block: 8px; }
  .video-copy .cms-block-buttons { margin-top: 8px; gap: 10px; }
  .cms-block-buttons { margin-top: 12px; }
  .video-column .video-track { padding-bottom: 0; }
  .cms-video h3, .cms-video > .video-caption { margin-block: 8px 4px; font-size: 13px; line-height: 1.45; }
  .subscribe-section { padding-block: 12px 28px; }
  .subscribe-box { padding: 22px 20px; gap: 16px; }
  .subscribe-box h2 { margin-bottom: 10px; }
  .subscribe-actions { gap: 12px; }
  .cms-article { padding: 20px 16px 24px; margin-bottom: 24px; }
  .cms-card-grid, .cms-video-grid { gap: 16px; padding-bottom: 20px; }
  .cms-card { padding: 16px; }
  .application-form .field-grid { gap: 14px; }
  .application-form fieldset { margin-bottom: 18px; }
  #main input:not([type=checkbox]):not([type=radio]):not([type=range]),
  #main select, #main textarea, .paper-dialog input, .paper-dialog select,
  .paper-dialog textarea { font-size: 16px; }
  .page-top { padding-block: 22px 16px; }
  .back-link { margin-bottom: 16px; }
  .site-footer { padding-block: 26px 0; }
  .footer-inner { gap: 12px; padding-block: 0 20px; }
  .footer-inner .footer-contacts { gap: 10px; }
}
@media (hover: none) and (pointer: coarse) {
  .section:has(> .photo-track) .carousel-controls { display: none; }
}

/* Common rhythm instead of additive, block-specific gaps. */
.about-intro h2 + .prose, .section-heading h2 + .prose,
.video-copy h2 + .prose { margin-top: 16px; }
.about-photos { margin-top: 24px; }
.gallery-link:empty { display: none; }
.cms-block-buttons { gap: 12px; margin-top: 18px; }
.cms-block-buttons.media-gallery-links { margin-top: 16px; }
.media-gallery-button {
  min-height: 36px; padding: 8px 14px; gap: 10px; border: 1px solid transparent;
  background: #4b73ab; color: #fffdf2; font-size: 14px; line-height: 1.3;
}
.media-gallery-button svg { width: 17px; height: 17px; }
.media-gallery-button:hover { background: #4b73ab; filter: brightness(.94); }
.footer-ornament {
  height: 28px; width: 100%; background: url("ornament.webp") repeat-x left center;
  background-size: auto 28px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-staff-login {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 7px;
  padding: 5px 0; min-height: 40px; background: transparent; border: 0;
  color: #fffdf2dd; font: inherit; font-size: 12px; cursor: pointer;
}
.footer-staff-login svg { width: 16px; height: 16px; }
.footer-staff-login:hover { color: #fffdf2; }
.footer-staff-login:focus-visible { outline: 2px solid #fffdf2; outline-offset: 3px; }

/* Compact footer, with the descriptor constrained to the wordmark. */
.site-footer{padding-block:16px 16px}
.site-footer .footer-inner{gap:18px;padding-block:0 8px;align-items:center}
.site-footer .footer-logo{display:flex;flex-direction:column;gap:7px;width:205px;max-width:100%;text-decoration:none;color:inherit}
.site-footer .footer-logo img{width:100%;height:auto;display:block}
.site-footer .footer-descriptor{display:block;max-width:100%;font-family:Montserrat,Arial,sans-serif;font-size:10px;font-weight:400;line-height:1.35;letter-spacing:.035em;text-align:center}
.site-footer .footer-inner>p{margin:0}
.site-footer .footer-contacts{gap:8px}
.site-footer .footer-contacts>span:empty{display:none}
.site-footer .footer-legal{gap:6px 13px;margin:0}
.site-footer .footer-staff-login{margin:0;padding-block:3px;min-height:26px;width:max-content;max-width:100%;white-space:nowrap}
.site-footer .social-buttons.small{margin-block:0}
.site-footer .footer-legal button.text-link{min-height:30px;padding-block:2px;font-size:12px}
@media(min-width:651px){
 .site-footer .social-buttons.small .social-link{width:32px;height:32px;min-width:32px;min-height:32px}
 .site-footer .social-buttons.small .social-link svg{width:17px;height:17px}
}
@media(max-width:650px){
 .site-footer{padding-block:20px 21px}
 .site-footer .footer-inner{gap:12px 14px;padding-bottom:8px;justify-content:center;text-align:center;justify-items:center}
 .site-footer .footer-logo{width:205px}
 .site-footer .footer-inner .footer-contacts{width:100%;grid-template-columns:minmax(0,1fr);gap:10px;align-items:center!important;justify-items:center;text-align:center}
 .site-footer .footer-contacts>a{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .site-footer .social-buttons.small{flex-wrap:nowrap;gap:8px;justify-self:center;justify-content:center}
 .site-footer .footer-legal{justify-content:center}
 .site-footer .social-buttons.small .social-link{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}
 .site-footer .footer-staff-login{min-height:36px}
 .site-footer .footer-legal button.text-link{min-height:44px}
}

/* Bounded brand palette, independent of decorative backgrounds. */
[data-button-color="orange"] { --cta-bg: #ff9940; --cta-fg: #383742; --cta-link: #383742; }
[data-button-color="blue"] { --cta-bg: #4b73ab; --cta-fg: #fffdf2; --cta-link: #4b73ab; }
[data-button-color="sky"] { --cta-bg: #57b5e7; --cta-fg: #383742; --cta-link: #383742; }
[data-button-color="ink"] { --cta-bg: #383742; --cta-fg: #fffdf2; --cta-link: #383742; }
.cms-block-buttons[data-button-color]:not([data-button-color="auto"]) > .button:is(.primary,.media-gallery-button) {
  background: var(--cta-bg); color: var(--cta-fg); border-color: transparent;
}
section[data-button-color]:not([data-button-color="auto"]) .button.primary {
  background: var(--cta-bg); color: var(--cta-fg); border-color: transparent;
}
.cms-block-buttons[data-button-color]:not([data-button-color="auto"]) > .text-link {
  color: var(--cta-link); text-decoration-color: var(--cta-bg);
}
.cms-block-buttons > .button:hover { filter: brightness(.94); }
.button-palette { margin: 16px 0; padding: 0; border: 0; min-width: 0; }
.button-palette legend { margin-bottom: 10px; }
.button-palette > div { display: flex; flex-wrap: wrap; gap: 8px; }
.button-palette button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px;
  min-height: 42px; border: 1px solid #d9d9d2; border-radius: 6px;
  background: transparent; color: #383742; font: inherit; font-size: 13px; cursor: pointer;
}
.button-palette button[aria-pressed="true"] { border-color: #4b73ab; box-shadow: inset 0 0 0 1px #4b73ab; }
.palette-swatch { width: 18px; height: 18px; border: 1px solid #38374233; border-radius: 50%; }
.palette-auto { background: linear-gradient(90deg,#ff9940 50%,#4b73ab 50%); }
.palette-orange { background: #ff9940; }.palette-blue { background: #4b73ab; }
.palette-sky { background: #57b5e7; }.palette-ink { background: #383742; }

/* Accessible numeric birthday, with the native calendar only on request. */
.dob-field { min-width: 0; }
.dob-field > label { display: block; margin-bottom: 7px; }
.date-parts {
  position: relative; display: grid; align-items: center; min-width: 0; max-width: 100%;
  grid-template-columns: minmax(0,1fr) 6px minmax(0,1fr) 6px minmax(0,1.65fr) 40px;
  gap: 2px; padding: 0 4px; min-height: 46px; border: 1px solid #d8d8ce;
  background: #fffefa; border-radius: 7px; box-sizing: border-box;
}
.application-form .date-parts > input[data-date-part] {
  width: 100%; min-width: 0; min-height: 0; height: 42px; margin: 0; padding: 0 2px; border: 0;
  border-radius: 3px; background: transparent; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: none;
}
.application-form .date-parts > input[data-date-part]:focus {
  outline: none; box-shadow: none; background: #57b5e714;
}
.date-parts > span { color: var(--muted); text-align: center; }
.date-parts:focus-within { outline: 2px solid #4b73ab; outline-offset: 1px; }
.date-calendar-button {
  position: relative;
  width: 40px; height: 38px; padding: 8px; display: grid; place-items: center;
  color: #4b73ab; background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.date-calendar-button svg { width: 21px; height: 21px; }
.date-calendar-button:hover { background: #57b5e71a; }
.application-form .date-native-picker {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 40px !important; height: 38px !important; padding: 0 !important; border: 0; margin: 0;
}
.date-native-picker::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.date-calendar-button:focus-within { outline: 2px solid #4b73ab; outline-offset: -1px; }
.application-form .binary-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.application-form .binary-choice legend { width: 100%; padding: 0; margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.binary-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.binary-options label { display: block; position: relative; min-width: 0; padding: 0; }
.binary-options input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.binary-options span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px;
  border: 1px solid #d8d8ce; border-radius: 6px; background: #fffefa; cursor: pointer;
  box-sizing: border-box; font-size: 14px; line-height: 1.3;
}
.binary-options input:checked + span { background: #4b73ab; border-color: #4b73ab; color: #fffdf2; }
.binary-options input:focus-visible + span { outline: 2px solid #4b73ab; outline-offset: 3px; }
.application-form .check-label {
  display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start;
  gap: 10px; text-align: left; font-size: 14px; line-height: 1.55;
}
.application-form .check-label > input { width: 19px; height: 19px; margin: 2px 0 0; }
.application-form .check-label > span { min-width: 0; }
.application-form .consent-link:hover { text-decoration: underline; }
.application-form .consent-link {
  display: inline; color: #4b73ab; text-decoration: none; text-underline-offset: 3px;
  font: inherit; line-height: inherit; white-space: normal; overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .photo-track { cursor: grab; }
  .photo-track .photo-tile { cursor: grab; }
}
.photo-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto !important; user-select: none; }
.photo-track.is-dragging .photo-tile { cursor: grabbing; }
@media (max-width: 650px) {
  .section, .enroll-section, .video-section, .subscribe-section { padding-block: 22px; }
  .section[data-decor]:not([data-decor="neutral"]),
  .video-section[data-decor]:not([data-decor="neutral"]) { padding-block: 22px; margin-block: 0; }
  .hero { padding-block: 28px; }
  .about-intro h2 + .prose, .section-heading h2 + .prose, .video-copy h2 + .prose { margin-top: 12px; }
  .about-photos { margin-top: 20px; }
  .cms-block-buttons, .cms-block-buttons.media-gallery-links { margin-top: 14px; }
  .media-gallery-button { min-height: 40px; }
  .date-parts { grid-template-columns: minmax(0,1fr) 5px minmax(0,1fr) 5px minmax(0,1.65fr) 40px; }
}
/* Later review: recognizable social mark and accessible photo actions. */
.social-vk-mark{font-size:17px;font-weight:600;letter-spacing:-1px;line-height:1;min-width:22px;text-align:center}
.photo-dialog{background:transparent;padding-top:max(10px,env(safe-area-inset-top))}
.photo-dialog::backdrop{background:rgb(20 24 32 / .8)}
.photo-top{height:54px}
.photo-top>div{gap:8px}
.photo-top .icon-button{width:44px;height:44px;min-width:44px;border:1px solid #ffffff40;border-radius:11px;background:#ffffff12}
.photo-top .icon-button:hover{background:#ffffff28}
.photo-top .icon-button svg{width:22px;height:22px}
.video-copy .media-gallery-links{margin-top:16px}
.camp-player-controls{transition:opacity .2s ease}
.camp-player.controls-hidden .camp-player-controls{opacity:0;pointer-events:none}
.camp-player.controls-hidden.player-keyboard .camp-player-controls:focus-within{opacity:1;pointer-events:auto}
.player-expanded-dialog{padding:0;border:0;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;background:#111;color:white;overflow:hidden}
.player-expanded-dialog::backdrop{background:#111}
.player-expanded-dialog:focus,.player-expanded-dialog .camp-player:focus,.camp-player:fullscreen:focus{outline:none}
.player-expanded-dialog .camp-player{width:100%;height:100%;border-radius:0;display:flex;flex-direction:column}
.player-expanded-dialog video{width:100%;height:100%;min-height:0;flex:1;max-height:none;object-fit:contain}
.camp-player:fullscreen .camp-player-controls,.player-expanded-dialog .camp-player-controls{position:absolute;bottom:0;left:0;right:0;width:100%;box-sizing:border-box;background:linear-gradient(transparent,#151920ed 20%);padding-bottom:max(10px,env(safe-area-inset-bottom));padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))}
