/* Targeted shared-component fixes; no geometric scaling of decoration assets. */
[data-decor]:not([data-decor="neutral"])::before,
[data-decor]:not([data-decor="neutral"])::after { z-index: 0; }
[data-decor]:not([data-decor="neutral"]) > :not(.enroll-bird,.block-anchor,[aria-hidden="true"]) { position: relative; z-index: 1; }
[data-decor] > .enroll-bird { z-index: 1; }
#main [data-decor] { content-visibility: visible; contain: none; }
.brand-bird { object-fit: contain; border-radius: 50%; }
.hero-caption:empty { display: none; }
.rte,.rte-field,.rte-body,.rte-toolbar,.rte-media-inspector { min-width: 0; }
.rte-body { display: block; width: 100%; max-width: none; max-height: none; overflow: visible; }
.rte-body.prose > p,.rte-body.prose > div:not(.camp-photo-strip) { max-width: none; }
.rte-toolbar { gap: 6px; align-items: center; }
.rte-toolbar select { width: auto; min-width: 154px; max-width: 100%; height: 36px; padding: 4px 28px 4px 8px; line-height: 1.4; }
.rte-media-inspector select { height: 38px; min-height: 38px; line-height: 1.4; padding-block: 4px; }
.rte-media-inspector label:has([data-rich-media-size]) { flex: 1 0 154px; min-width: 154px; }
.prose figure.camp-photo { margin-block: 16px 18px; }
.prose figure.camp-photo > :not(img,video,figcaption,[data-rich-ui]) { width: auto; max-width: none; }
.cms-block-buttons[data-button-color]:not([data-button-color="auto"]) > .button.secondary,
section[data-button-color]:not([data-button-color="auto"]) .button.secondary {
 background: transparent !important; color: var(--chosen-button) !important;
 border: 1px solid var(--chosen-button); box-shadow: none;
}
.page-top > h1 { text-align: center; margin-inline: auto; max-width: 100%; }
.page-top .inner-page-heading h1,.page-top .history-page-heading h1 { width: 100%; max-width: none; justify-self: stretch; }
.film-card-heading { text-align: center; padding-right: 0; font-size: clamp(20px,2vw,26px); line-height: 1.3; margin-block: 0 16px; }
#photo-dialog,#photo-dialog img { -webkit-user-select: none; user-select: none; }
.dialog-top-close { position: absolute; top: 10px; right: 10px; z-index: 4; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper,#fff); font-size: 25px; }
.paper-dialog:has(.dialog-top-close) { padding-top: 48px; }
.parent-chat-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; text-decoration: none; }
.parent-chat-link svg { flex: none; width: 19px; height: 19px; }
.subscribe-social { margin-top: 6px; width: 100%; max-width: 100%; }
.subscribe-social h3 { margin-block: 0 8px; }
.site-footer .social-buttons { flex-wrap: wrap; }
.rte-body .camp-photo-strip { display: flex; gap: 12px; overflow-x: auto; width: 100%; padding-bottom: 8px; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.rte-body .camp-photo-strip > figure.camp-photo { flex: 0 0 min(80%,340px); width: min(80%,340px); max-width: none; scroll-snap-align: start; margin: 0; }
.rte-body .camp-photo-strip img { width: 100%; height: 230px; object-fit: cover; }
.camp-more-marker { display: block; border: 0; border-top: 2px dashed var(--deep-blue); margin-block: 24px; }
.rte-body .camp-more-marker::after { content: "Продолжение под «Читать далее»"; display: block; font-size: 12px; color: var(--muted); text-align: center; }
.news-column { display: grid; gap: 28px; width: 90%; margin-inline: auto; padding-block: 8px 24px; }
.news-entry { min-width: 0; border-bottom: 1px solid var(--line); padding-block: 16px 24px; }
.news-entry:last-child { border-bottom: 0; }
.news-entry-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.news-entry-header time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.news-entry h3 { font-size: clamp(20px,2vw,26px); margin: 0; line-height: 1.3; font-weight: 500; }
.news-entry > img { width: 100%; max-height: 500px; object-fit: cover; margin-bottom: 18px; border-radius: 8px; }
.news-more { margin-top: 14px; }
.picker-albums,.picker-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; }
.picker-albums button,.picker-photos button { padding: 7px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.picker-albums img,.picker-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; margin-bottom: 6px; }
.picker-photos [aria-pressed="true"] { outline: 3px solid var(--deep-blue); }
.picker-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 12px; }
.picker-preview-image { max-width: 100%; max-height: 60dvh; object-fit: contain; margin: auto; }
.standard-mail-template { border-top: 1px solid var(--line); padding-block: 14px; }
.standard-mail-template summary { cursor: pointer; min-height: 36px; }
.prose,.history-story>.prose { width: 100%; max-width: none; min-width: 0; }
.site-header { background: #f4ead7; }
.subscribe-box { padding-block: 54px 56px; align-items: center; }
.subscribe-box[data-decor] { --decor-paint-height: clamp(24px,3vw,38px); }
.subscribe-box .subscribe-actions { display: grid; align-self: center; gap: 8px; }
.subscribe-box .newsletter-form { gap: 8px; margin: 0; }
.subscribe-box .check-label { min-height: 0; padding: 0; }
.subscribe-box .subscribe-social { margin-top: 0; }
.subscribe-box .subscribe-social>p { margin: 0 0 6px; }
.prose p { max-width: none; }
.header-branding-controls .editor-photo { width: auto; max-width: min(100%,280px); height: 80px; object-fit: contain; background: #f4ead8; }
.brand .wordmark { object-fit: contain; }
.subscribe-actions { min-width: 0; }
.subscribe-actions .form-status:empty { display: none; }
.subscribe-social>p { margin: 0 0 6px; }
.subscribe-social .social-group { display: flex; width: 100%; gap: 6px; align-items: stretch; }
.subscribe-social .social-buttons { flex: none; gap: 6px; align-items: stretch; }
.subscribe-social .parent-chat-link { flex: 1; width: auto; margin: 0; min-width: 0; justify-content: center; padding: 7px; }
.subscribe-social .social-buttons a { padding-inline: 8px; }
.site-footer .social-buttons .chat { background: #f3e4c8; color: #315873; }
.picker-photos img { margin: 0; }
.news-column { max-width: 980px; }
.home-news > .section-intro { width: 90%; max-width: 980px; margin: 0 auto 8px; text-align: center; }
.home-news > .section-intro > p:empty { display:none; }
.home-news .news-column { padding-block:0; }
.home-news .news-entry:first-child { padding-top:8px; }
.home-news .news-entry:last-child { padding-bottom:8px; }
.home-news > .section-intro h2 { text-align: center; margin-inline: auto; }
.news-entry-header { display: grid; gap: 7px; margin-bottom: 16px; }
.news-entry h3 { font-size: clamp(18px,1.7vw,22px); line-height: 1.4; }
.home-news > .cms-block-buttons { width: 90%; max-width: 980px; margin: 8px auto 0; justify-content: center; }
.section.home-news[data-decor]:not([data-decor=neutral]) { padding-top: 48px; padding-bottom: 76px; }
[data-tip]::after { display: none!important; }
.editor-tooltip { position: fixed; inset: auto; margin: 0; z-index: 10000; border: 0; border-radius: 6px; background: #30323e; color: #fffdf4; padding: 7px 10px; font: 400 13px/1.4 var(--font-body); width:max-content; max-width: min(360px,calc(100vw - 16px)); overflow-wrap: break-word; word-break:normal; pointer-events: none; box-shadow: 0 3px 12px #0002; }
@media(max-width:650px) {
 .rte-toolbar select { flex: 1 1 150px; }
 .news-column { width: 100%; gap: 12px; }
 .news-entry-header { gap: 6px 12px; margin-bottom: 12px; }
 .film-card-heading { font-size: 20px; }
 .parent-chat-link { font-size: 13px; }
 .site-footer .social-buttons { justify-content: center; }
 .subscribe-social .social-group { flex-wrap: wrap; }
 .subscribe-social .social-buttons { flex: 1 1 100%; }
 .subscribe-social .parent-chat-link { flex-basis: 100%; }
 .subscribe-box { padding-block: 30px 38px; }
 .home-news > .section-intro,.home-news > .cms-block-buttons { width: 100%; }
 .section.home-news[data-decor]:not([data-decor=neutral]) { padding-top: 36px; padding-bottom: 64px; }
}
