/* Сообщество, октябрь 2026. Приёмы сайтов-образцов владельца (Citius Mag, Club Athletic, The Performance Lab, Red Bull × Merrell)
   и языка сайта: тёмная шапка с дорожками стадиона и стопкой свежих снимков, цифры ленты, карточки с мозаикой фото,
   моноширинные чипы, комментарии пузырьками, нумерованные правила. Только для community.html (community.css общий с календарём). */
.community-page{--mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;--ease:cubic-bezier(.16,1,.3,1)}
.community-page .community-shell{width:min(1240px,calc(100% - 40px));padding:24px 0 64px}

/* Шапка: тёмная плашка, дорожки стадиона, салатовые акценты. */
.community-page .community-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center;max-width:none;margin:0 0 24px;padding:48px 52px;border-radius:22px;background:var(--ink);color:#fff}
.community-page .community-hero.has-stack{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr)}
.community-page .community-hero:before{content:'';position:absolute;z-index:-1;right:-90px;top:50%;width:720px;height:432px;transform:translateY(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Cg fill='none' stroke='%23dcff68' stroke-opacity='.16' stroke-width='2'%3E%3Crect x='4' y='4' width='592' height='352' rx='176'/%3E%3Crect x='36' y='36' width='528' height='288' rx='144'/%3E%3Crect x='68' y='68' width='464' height='224' rx='112'/%3E%3Crect x='100' y='100' width='400' height='160' rx='80'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.community-page .community-hero:after{content:'';position:absolute;z-index:-1;right:6%;top:50%;width:420px;height:420px;transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle,rgba(220,255,104,.2),rgba(220,255,104,0) 68%)}
.community-page .community-hero .eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:6px 10px;border-radius:5px;background:var(--lime);color:var(--ink);font:600 12px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.community-page .community-hero .eyebrow:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--ink)}
.community-page .community-hero h1{margin:0 0 26px;color:#fff;font:700 clamp(46px,6.2vw,92px)/.98 Oswald,'Oswald Fallback',sans-serif;letter-spacing:-.015em;text-transform:uppercase}
.community-page .community-hero h1 .hl{color:var(--lime)}
.community-stats{display:grid;grid-template-columns:repeat(3,minmax(0,max-content));gap:10px;margin:0 0 28px}
.community-stats[hidden]{display:none}
.community-stats div{display:flex;flex-direction:column;gap:6px;min-width:112px;padding:12px 16px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.04)}
.community-stats dd{order:-1;margin:0;color:var(--lime);font:600 34px/1 Oswald,'Oswald Fallback',sans-serif;font-variant-numeric:tabular-nums}
.community-stats dt{color:#c4d0df;font:600 11px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.community-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.community-rules-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
.community-rules-link{color:#fff;font-weight:600;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:5px}
.community-rules-link:hover{text-decoration-color:var(--lime)}
/* Стопка трёх свежих снимков из ленты, как фотографии на столе. */
.community-hero-stack{position:relative;align-self:stretch;min-height:320px}
.community-hero-stack[hidden]{display:none}
.stack-card{--card-x:-50%;--card-y:-50%;--card-angle:-3deg;position:absolute;top:50%;left:50%;display:block;width:min(56%,250px);aspect-ratio:4/5;margin:0;overflow:hidden;border:5px solid #fff;border-radius:16px;background:#e9eef1;box-shadow:0 22px 44px rgba(0,0,0,.38);transform:translate(var(--card-x),var(--card-y)) rotate(var(--card-angle));text-decoration:none}
.stack-card img{display:block;width:100%;height:100%;object-fit:cover}
.stack-card:nth-child(1){z-index:3}
.stack-card:nth-child(2){z-index:2;--card-x:-92%;--card-y:-46%;--card-angle:-11deg}
.stack-card:nth-child(3){z-index:1;--card-x:-8%;--card-y:-54%;--card-angle:9deg}
.stack-caption{position:absolute;bottom:0;left:0;right:0;padding:12px 8px;background:#07172de8;color:#fff;font-size:13px;font-weight:700;text-align:center;opacity:0}
.stack-card:focus-visible{z-index:5;outline:3px solid var(--lime);outline-offset:4px}
.stack-card:focus-visible .stack-caption{opacity:1}
@media(hover:hover){
  .stack-card:hover{z-index:5}
  .stack-card:hover .stack-caption{opacity:1}
}
/* Фотография выходит из стопки плавно, затем проявляется подпись.
   Возврат короче; слой опускается только после возврата, без резкого перекрытия. */
@media(prefers-reduced-motion:no-preference){
  .stack-card{transition:transform .42s cubic-bezier(.22,.61,.36,1),border-color .3s ease,box-shadow .42s ease,z-index 0s .42s}
  .stack-caption{transform:translateY(10px);transition:opacity .2s ease,transform .25s ease}
  .stack-card:focus-visible{transform:translate(var(--card-x),calc(var(--card-y) - 20px)) rotate(0deg) scale(1.07);border-color:var(--lime);box-shadow:0 30px 54px rgba(0,0,0,.48);transition-duration:.72s,.5s,.72s,0s;transition-delay:0s}
  .stack-card:focus-visible .stack-caption{transform:translateY(0);transition-duration:.4s,.45s;transition-delay:.18s}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .stack-card:hover{transform:translate(var(--card-x),calc(var(--card-y) - 20px)) rotate(0deg) scale(1.07);border-color:var(--lime);box-shadow:0 30px 54px rgba(0,0,0,.48);transition-duration:.72s,.5s,.72s,0s;transition-delay:0s}
  .stack-card:hover .stack-caption{transform:translateY(0);transition-duration:.4s,.45s;transition-delay:.18s}
}

/* Две колонки: лента и боковая колонка. */
.community-page .community-layout{grid-template-columns:minmax(0,1fr) 320px;gap:28px}
.community-page .feed-list{gap:20px}
.community-page .new-posts{position:sticky;top:90px;z-index:5;display:block;width:fit-content;max-width:100%;margin:0 auto 16px;padding:10px 20px;border-radius:999px;box-shadow:0 10px 26px rgba(7,23,45,.18)}

/* Карточка публикации. */
.community-page .community-item{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;transition:box-shadow .25s var(--ease)}
.community-page .community-item:hover{box-shadow:0 16px 36px rgba(7,23,45,.08)}
.community-page .post-header{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.community-page .post-avatar{width:46px;height:46px;flex:0 0 46px;background:var(--ink);color:var(--lime);font:600 17px/1 Oswald,'Oswald Fallback',sans-serif;letter-spacing:.02em}
.community-page .post-author{font-weight:700}
.community-page .community-meta{color:var(--muted);font-size:13px}
.post-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto}
.post-chip{padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font:600 11px/1 var(--mono);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.community-page .community-item h2{margin:18px 0 10px;font:600 clamp(24px,2.3vw,32px)/1.15 Oswald,'Oswald Fallback',sans-serif;letter-spacing:-.005em}
.community-page .post-text{margin:0 0 12px;font-size:16px;line-height:1.65}
.community-page .post-text.post-text-collapsed{-webkit-line-clamp:5}
.community-page .community-item .post-text-toggle{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 6px;padding:8px 16px;border:1px solid var(--ink);border-radius:999px;background:#fff;color:var(--ink);font-weight:700;text-decoration:none}
.community-page .community-item .post-text-toggle:after{content:'↓'}
.community-page .community-item .post-text-toggle[aria-expanded=true]:after{content:'↑'}
.community-page .community-item .post-text-toggle:hover{background:var(--ink);color:#fff}
.community-page .community-item .post-text-toggle[hidden]{display:none}
.community-page .post-fact{margin:10px 0;padding:10px 14px;border-left:3px solid var(--lime);border-radius:0 10px 10px 0;background:var(--paper)}
.community-page .post-link{display:inline-flex;margin:6px 0 10px;font-weight:700}

/* Мозаика фото: первое крупно, рядом ещё до четырёх; «+N» — сколько ещё в просмотре. */
.community-page .community-photos{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:6px;margin:16px 0 4px;overflow:hidden;border-radius:14px;aspect-ratio:16/10}
.community-page .community-photos:empty{display:none}
.community-page .community-photos .community-photo-open{position:relative;height:auto;min-height:0}
.community-page .community-photos .community-photo-open:first-child{grid-row:1/-1}
.community-page .community-photos .community-photo-open[hidden]{display:none}
.community-page .community-photos .community-photo-open img{object-fit:cover}
.community-page .community-photos[data-tiles="1"]{grid-template-columns:1fr;grid-template-rows:1fr;aspect-ratio:4/3}
.community-page .community-photos[data-tiles="1"] .community-photo-open{background:var(--ink)}
.community-page .community-photos[data-tiles="1"] .community-photo-open img{object-fit:contain}
.community-page .community-photos[data-tiles="2"]{grid-template-columns:1fr 1fr;grid-template-rows:1fr}
.community-page .community-photos[data-tiles="3"]{grid-template-columns:2fr 1fr}
.community-page .community-photos[data-tiles="4"]{grid-template-columns:2fr 1fr;grid-template-rows:repeat(3,1fr)}
.community-page .community-photo-open[data-more]:after{content:attr(data-more);position:absolute;inset:0;display:grid;place-items:center;background:rgba(7,23,45,.58);color:#fff;font:700 clamp(28px,3.4vw,44px)/1 Oswald,'Oswald Fallback',sans-serif}
.community-videos{display:grid;gap:8px;margin:12px 0 4px}
.community-videos video{display:block;width:100%;aspect-ratio:16/9;border-radius:14px;background:var(--ink);object-fit:contain}

/* Кнопки участия («Прочитано», опросы) — капсулами. */
.community-page .community-item .post-actions{gap:8px;margin-top:14px}
.community-page .community-item .post-actions button{min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink)}
.community-page .community-item .post-actions button:hover{border-color:var(--ink)}

/* Комментарии пузырьками. */
.community-page .comments{gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.community-page .comments:empty{display:none}
.comments-head{margin:0;color:var(--muted);font:600 11px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.community-page .comment{display:flex;align-items:flex-start;gap:10px;padding:0;background:none}
.comment-avatar{display:grid;flex:0 0 32px;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--paper);color:var(--navy);font:600 13px/1 Oswald,'Oswald Fallback',sans-serif}
.comment-body{min-width:0;padding:10px 14px;border-radius:4px 16px 16px 16px;background:var(--paper);line-height:1.5;overflow-wrap:anywhere}
.community-page .comment strong{display:block;margin-bottom:2px;font-size:13px}
.community-page .comment button{min-height:32px;margin-left:auto;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12px}
.community-page .comment-form{flex-direction:row;gap:8px;margin-top:14px}
.community-page .comment-form input{min-height:44px;padding:10px 16px;border-radius:999px;background:var(--paper);border-color:transparent}
.community-page .comment-form input:focus{background:#fff;border-color:var(--ink)}
.community-page .comment-form button{width:auto;min-height:44px;padding:10px 18px;border-radius:999px}

/* Низ карточки: правка и удаление слева, жалоба справа, всё тихо. */
.post-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.community-page .post-footer .author-actions{flex:1 1 auto;flex-direction:row;flex-wrap:wrap;margin:0;padding:0;border:0;gap:8px}
.community-page .post-footer .author-actions button{min-height:38px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font-size:14px}
.community-page .post-footer .author-actions button:hover{border-color:var(--navy)}
.community-page .post-footer .author-actions button.danger{border-color:#e7c3c7;color:#9f2531}
.community-page .post-footer .author-actions button.danger:hover{border-color:#9f2531;background:#fff5f6}
.community-page .post-footer .report-control{margin:0 0 0 auto}
.community-page .post-footer .report-control summary{padding:8px 0;color:var(--muted);font-size:13px}
.community-page .post-footer .report-control[open]{flex:1 1 100%;margin:0}

/* Форма новой публикации. */
.community-page .composer{padding:24px;border-radius:20px}
.community-page #editor{margin-top:20px}
.composer-title{margin:0 0 4px;font:600 26px/1.2 Oswald,'Oswald Fallback',sans-serif}
.community-page .composer-main-fields>label{grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:8px}
.community-page .composer-main-fields>label input{grid-column:1/-1}
.community-page .optional-label{color:var(--muted);font:600 11px/1 var(--mono);letter-spacing:.05em;text-transform:uppercase}
.community-page .composer input,.community-page .composer textarea{border-radius:12px}
.community-page .composer-copy textarea{min-height:110px;background:var(--paper)}
.community-page .composer .avatar{background:var(--ink);color:var(--lime)}
.community-page .media-add{min-height:52px;padding:10px 16px;border:1.5px dashed #b8c5d3;border-radius:12px;background:#fbfcfd}
.community-page .media-add:hover{border-color:var(--ink);background:#fff}
.community-page .composer-actions button[type=submit]{min-height:50px;padding:12px 26px;border-radius:10px;background:var(--lime);color:var(--ink);font-size:16px}
.community-page .composer-actions button[type=submit]:hover{background:#eaffaa}
.community-page .composer-actions .secondary{border:1px solid var(--line);background:#fff;color:var(--navy)}

/* Приглашение гостю: тёмная плашка с клетчатой финишной кромкой. */
.community-page .guest-community-cta{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 32px;align-items:center;margin-top:20px;padding:46px 36px 34px;border:0;border-radius:20px;background:var(--ink);color:#fff}
.community-page .guest-community-cta:before{content:'';position:absolute;left:0;right:0;top:0;height:12px;background:repeating-conic-gradient(var(--ink) 0 25%,#fff 0 50%) 0 0/12px 12px}
.community-page .guest-community-cta h2{margin:0 0 10px;color:#fff;font:600 clamp(28px,3vw,40px)/1.1 Oswald,'Oswald Fallback',sans-serif}
.community-page .guest-community-cta p{max-width:56ch;margin:0;color:#d5dfeb;line-height:1.6}
.community-page .guest-community-cta .primary{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 24px;border-radius:10px;background:var(--lime);color:var(--ink);font-weight:700;text-decoration:none;white-space:nowrap}
.community-page .guest-community-cta .primary:hover{background:#eaffaa}
.community-page .guest-community-cta .primary:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* Поделиться записью: кнопка-пилюля раскрывает ряд вариантов прямо в карточке — карточка обрезает всплывающие слои. */
.community-page .post-share{margin-top:16px}
.community-page .share-control{--share-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E")}
.community-page .share-control>summary{display:inline-flex;align-items:center;gap:8px;width:max-content;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:700;list-style:none;cursor:pointer}
.community-page .share-control>summary::-webkit-details-marker{display:none}
.community-page .share-control>summary:before{content:'';width:18px;height:18px;background:currentColor;-webkit-mask:var(--share-icon) center/contain no-repeat;mask:var(--share-icon) center/contain no-repeat}
.community-page .share-control>summary:hover,.community-page .share-control[open]>summary{border-color:var(--ink)}
.community-page .share-menu{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:12px;border-radius:14px;background:var(--paper)}
.community-page .share-note{flex-basis:100%;margin:0 0 4px;color:var(--muted);font-size:14px;line-height:1.5}
.community-page .community-item .share-menu button,.community-page .share-menu a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:15px;font-weight:700;text-decoration:none}
.community-page .community-item .share-menu .share-copy{border-color:var(--lime);background:var(--lime)}
.community-page .community-item .share-menu button:hover,.community-page .share-menu a:hover{border-color:var(--ink)}
.community-page .share-status{flex-basis:100%;margin:0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
/* Запись, к которой привела ссылка: лаймовая рамка вместо контура фокуса. От шапки сайта отступает scroll-padding-top из styles.css. */
.community-page .community-item.post-target{border-color:var(--ink);box-shadow:0 0 0 4px var(--lime)}
.community-page .community-item[tabindex="-1"]:focus{outline:none}
.community-page .post-missing{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:0 0 16px;padding:18px 22px;border:1px solid var(--line);border-left:4px solid var(--lime);border-radius:16px;background:#fff}
.community-page .post-missing p{margin:0;font-weight:700}
.community-page .post-missing .primary{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:10px;background:var(--lime);color:var(--ink);font-weight:700;text-decoration:none}
/* Лента не загрузилась: короткое объяснение и «Повторить»; уже показанные публикации остаются ниже. */
.community-page .feed-error{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:0 0 16px;padding:18px 22px;border:1px solid #e7c3c7;border-left:4px solid #9f2531;border-radius:16px;background:#fff}
.community-page .feed-error[hidden]{display:none}
.community-page .feed-error p{margin:0;max-width:60ch;color:var(--muted);line-height:1.5}
.community-page .feed-error strong{display:block;color:var(--ink);font-size:18px}
.community-page .feed-error button{padding:10px 20px;border-radius:10px;background:var(--navy);color:#fff}

/* Боковая колонка. */
.community-page .community-sidebar section{padding:20px;border-radius:18px}
.community-page .community-sidebar h2{margin:0 0 12px;font:600 22px/1.2 Oswald,'Oswald Fallback',sans-serif}
.community-page .community-search .feed-search input{padding-left:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353627b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px 50%/16px no-repeat;border-radius:10px}
.community-page .community-search{grid-template-columns:minmax(0,1fr) 42px}
.community-page .community-search .feed-search{grid-column:auto}
.community-page .community-search .icon-button{width:42px;border-radius:10px}
.community-page .community-sidebar nav a{align-items:center;padding:12px 0}
.community-page .community-sidebar nav a:last-child{border-bottom:0}
.community-page .community-sidebar nav b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--paper);font-weight:600;transition:background-color .2s,transform .25s var(--ease)}
.community-page .community-sidebar nav a:hover b{background:var(--lime);transform:translateX(3px)}
.community-rules ol{display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:rule}
.community-page .community-rules li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;margin:0;color:var(--ink);line-height:1.5}
.community-rules li:before{counter-increment:rule;content:counter(rule,decimal-leading-zero);height:24px;border-radius:6px;background:var(--ink);color:var(--lime);font:600 12px/24px var(--mono);text-align:center}

/* Появление: шапка, карточки снизу по мере прокрутки, снимки в стопке чуть покачиваются. */
@media(prefers-reduced-motion:no-preference){
  .community-hero-copy>*{animation:community-up .7s var(--ease) both}
  .community-hero-copy>:nth-child(2){animation-delay:.08s}
  .community-hero-copy>:nth-child(3){animation-delay:.16s}
  .community-hero-copy>:nth-child(4){animation-delay:.24s}
  .stack-card{animation:community-deal .8s var(--ease) both}
  .stack-card:nth-child(1){animation-delay:.3s}
  .stack-card:nth-child(2){animation-delay:.15s}
  .community-page .community-item.will-rise:not(.is-in){opacity:0;transform:translateY(22px)}
  .community-page .community-item.will-rise.is-in{animation:community-up .6s var(--ease) both}
}
@keyframes community-up{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes community-deal{from{opacity:0;margin-top:40px}to{opacity:1;margin-top:0}}

@media(max-width:1100px){
  .community-page .community-hero{padding:40px 36px}
  .community-page .community-hero.has-stack{grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr)}
  .stack-card{width:min(52%,210px)}
}
@media(max-width:980px){
  .community-page .community-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  .community-page .community-hero,.community-page .community-hero.has-stack{grid-template-columns:minmax(0,1fr)}
  .community-hero-stack{display:none}
}
@media(max-width:700px){
  .community-page .community-shell{width:calc(100% - 24px);padding-top:12px}
  .community-page .community-hero{gap:0;margin-bottom:16px;padding:28px 20px 24px;border-radius:18px}
  .community-page .community-hero:before{right:-260px;width:520px;height:312px}
  .community-page .community-hero h1{margin-bottom:20px;font-size:clamp(40px,12vw,56px)}
  .community-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:20px}
  .community-stats div{min-width:0;padding:10px}
  .community-stats dd{font-size:26px}
  .community-stats dt{font-size:10px;overflow-wrap:anywhere}
  .community-page .community-item{padding:16px;border-radius:16px}
  .community-page .community-item h2{margin-top:14px}
  .post-chips{margin-left:58px;justify-content:flex-start}
  .community-page .post-text{font-size:15px}
  /* На телефоне первое фото во всю ширину сверху, остальные строкой под ним. */
  .community-page .community-photos{grid-template-columns:repeat(4,1fr);grid-template-rows:2.4fr 1fr;aspect-ratio:1/1;border-radius:12px}
  .community-page .community-photos .community-photo-open:first-child{grid-row:auto;grid-column:1/-1}
  .community-page .community-photos[data-tiles="2"]{grid-template-columns:1fr 1fr;grid-template-rows:1fr;aspect-ratio:4/3}
  .community-page .community-photos[data-tiles="2"] .community-photo-open:first-child{grid-column:auto}
  .community-page .community-photos[data-tiles="3"]{grid-template-columns:1fr 1fr}
  .community-page .community-photos[data-tiles="4"]{grid-template-columns:repeat(3,1fr);grid-template-rows:2.4fr 1fr}
  .community-page .community-photos[data-tiles="1"]{aspect-ratio:4/3}
  .community-page .composer{padding:16px}
  .community-page .comment-form button{padding:10px 14px}
  .community-page .post-footer .author-actions{gap:6px}
  .community-page .post-footer .author-actions button{min-height:36px;padding:6px 12px;font-size:13px}
  .community-page .guest-community-cta{grid-template-columns:minmax(0,1fr);padding:40px 20px 24px}
  .community-page .guest-community-cta .primary{width:100%;white-space:normal}
}
