/* Страница культуры (хаб) — задача 11. Макет: design/pages/kultura.html. Грузится вместе с section.css
   (строки ленты, пагинация, «Популярное» — оттуда). Брейкпоинты макета: 1100 / 980 / 900 / 600. */

.hub-sec{padding-top:110px}
.hub-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:24px}
.hub-head__p{margin:0;max-width:380px;font-size:16px;line-height:1.55;color:var(--muted)}

/* ---------- Первый экран ---------- */
.hub-hero{padding-top:2px}
.hub-hero__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-top:22px}
.hub-hero__l{grid-column:1/8;display:flex;flex-direction:column;gap:22px;min-width:0}
.hub-hero__grid--solo .hub-hero__l{grid-column:1/-1}
.hub-latin{margin:0;font-size:12px;color:var(--muted)}
.hub-h1{margin:0;font-size:clamp(64px,10vw,150px);line-height:.82;letter-spacing:-0.025em;overflow-wrap:anywhere}
.hub-badges{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.hub-pill{margin:0;font-size:clamp(26px,2.6vw,38px);line-height:1.05}
.hub-cnt{margin:0}
.hub-intro{margin:0;max-width:600px;font-size:18px;line-height:1.6;color:#344A3C}
.hub-pass{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;background:var(--mist);border-radius:28px;padding:8px}
.hub-pass__c{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:20px;background:#fff;min-width:0}
.hub-pass__c dt{font-size:11px;line-height:1.35;color:var(--muted)}
.hub-pass__c dd{margin:0;font-size:24px;line-height:1;overflow-wrap:anywhere}
.hub-tile{grid-column:8/13;position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:620px;padding:22px;border-radius:40px;background:var(--tint);overflow:hidden}
.hub-hero__grid--slim .hub-tile{min-height:380px}
.hub-tile__img{position:absolute;left:8%;top:3%;width:84%;height:calc(97% - 90px);object-fit:contain;filter:drop-shadow(0 16px 22px rgba(15,34,25,.16))}
.hub-tile--noimg{min-height:0;justify-content:center}
.hub-tile__chips{position:relative}
.hub-tile__chips .chip{cursor:default}
.hub-tile__chips .chip:hover{border-color:var(--line)}

/* ---------- Этапы ---------- */
.hub-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;background:var(--mist);border-radius:22px;padding:6px}
.hub-tabs::-webkit-scrollbar{display:none}
.stb{display:flex;align-items:center;gap:10px;flex:none;height:54px;padding:0 18px;border-radius:16px;border:0;background:transparent;font-size:15px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .2s ease}
.stb:hover{background:#fff}
.stb.on{background:var(--ink);color:#fff}
.stb .n{font-family:var(--f-mono);font-size:12px;font-weight:500;opacity:.7}
.hub-panel{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}
.hub-panel:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:36px}
.hub-card{grid-column:1/6;position:sticky;top:110px;display:flex;flex-direction:column;gap:18px;min-height:420px;padding:30px;border-radius:36px;background:var(--ink);color:#fff}
.admin-bar .hub-card{top:142px}
.hub-card--bare{min-height:300px}
.hub-card__when{margin:0;font-size:12px;color:var(--acc)}
.hub-card__t{margin:0;font-size:44px;line-height:.92;overflow-wrap:anywhere}
.hub-card__x{margin:0;font-size:16.5px;line-height:1.6;color:#D6DED9}
.hub-card__cnt{margin:0;font-size:12px;color:var(--acc)}
.hub-card__foot{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.hub-card__img{align-self:flex-end;width:210px;height:170px;object-fit:contain;margin-right:-6px;filter:drop-shadow(0 18px 26px rgba(0,0,0,.4))}
.hub-card__facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.fact{display:inline-flex;align-items:center;min-height:34px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13.5px;font-weight:500;line-height:1.25}
.hub-arts{grid-column:6/13;display:flex;flex-direction:column;padding:4px 6px;min-width:0}
.hub-arts__h{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding-bottom:10px}
.hub-arts__h .mono{font-size:12px;color:var(--muted)}
.hub-arts__all{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:14px;font-weight:600}
.hub-arts__all:hover{text-decoration:underline;text-underline-offset:3px}
.hub-arts__list{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--line)}
.al{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px;padding:10px 4px;border-top:1px solid var(--line);font-size:17px;font-weight:500}
.al__b{display:flex;flex-direction:column;gap:4px;min-width:0}
.al__t{overflow-wrap:anywhere}
.al__m{font-size:11px;color:var(--muted);font-weight:500}
.al .ar{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease}
.al:hover .ar,.al:focus-visible .ar{background:var(--acc);border-color:var(--acc)}
.al:hover .al__t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* ---------- Описание рубрики ---------- */
.hub-desc__in{max-width:820px}

/* ---------- Календарь ---------- */
.hub-cal{--hub-cal-l:200px}
.hub-cal .hub-head{margin-bottom:26px}
.hub-cal__box{border:1px solid var(--line);border-radius:36px;padding:10px 28px 24px}
.hub-cal__in{position:relative}
.hub-cal__months{display:grid;grid-template-columns:var(--hub-cal-l) repeat(12,minmax(0,1fr));align-items:end;padding:34px 0 12px}
.hub-cal__months span{font-size:12px;color:var(--muted);padding-left:8px}
.hub-cal__months .is-now{font-weight:600;color:var(--ink)}
.hub-cal .grow{grid-template-columns:var(--hub-cal-l) repeat(24,minmax(0,1fr));height:54px}
.hub-cal .grow:last-of-type{border-bottom:1px solid var(--line)}
.hub-cal__l{grid-column:1;grid-row:1;padding-right:12px;font-size:15.5px;font-weight:600;line-height:1.2}
.hub-cal .bar{transition:grid-column .2s ease}
.b4{background:transparent;box-shadow:inset 0 0 0 2px var(--ink)}
.bar--alt{opacity:.6}
.hub-cal__now{position:absolute;top:24px;bottom:0;width:2px;background:var(--ink)}
.hub-cal__now-t{position:absolute;top:0;transform:translateX(-50%);height:24px;padding:0 10px;border-radius:999px;background:var(--acc);color:var(--ink);font-size:10.5px;display:flex;align-items:center;white-space:nowrap}

/* ---------- Болезни ---------- */
.hub-dz .hub-head{margin-bottom:26px}
.hub-dz__legend{margin:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.sev i.sev-ok{background:var(--sev-ok)}
.sev i.sev-care{background:var(--sev-care)}
.sev i.sev-risk{background:var(--sev-risk)}
.hub-dz__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hub-dz__t{height:100%;display:flex;flex-direction:column;gap:14px;padding:10px 10px 20px}
.hub-dz__img{display:block;width:100%;height:180px;border-radius:20px;object-fit:cover}
.hub-dz__img--cut{object-fit:contain;padding:12px;background:var(--tint)}
.hub-dz__img--ph{display:flex;align-items:center;justify-content:center;background:#fff;color:var(--leaf)}
.hub-dz__b{display:flex;flex-direction:column;gap:8px;padding:0 8px}
.hub-dz__n{font-size:24px;line-height:.98;overflow-wrap:anywhere}
.hub-dz__x{font-size:14px;line-height:1.5;color:#344A3C}
.hub-dz__t:hover .hub-dz__n{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* ---------- Частые вопросы ---------- */
.hub-faq{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.hub-faq__l{grid-column:1/5;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.hub-faq__p{margin:0;font-size:16px;line-height:1.55;color:var(--muted)}
.hub-faq__list{grid-column:5/13;border-bottom:1px solid var(--line);min-width:0}
.hub-faq .faq summary{min-height:72px;padding:12px 4px;font-size:19px}
.hub-faq .faq p{margin:0;padding:0 60px 22px 4px;font-size:16px}

/* ---------- Лента ---------- */
.hub-feed .sec-pop{margin-top:48px}
.hub-hero--paged + .hub-feed{padding-top:56px}

/* ---------- Соседние культуры ---------- */
.hub-nb__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;background:var(--mist);border-radius:36px;padding:26px 28px}
.hub-nb__t{margin:0;font-size:32px;line-height:1}
.hub-nb__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hub-nb__c{height:48px;padding:0 20px 0 6px;gap:10px}
.hub-nb__img{width:36px;height:36px;object-fit:contain}
.hub-nb__img--ph{display:flex;align-items:center;justify-content:center;color:var(--leaf)}

/* ---------- Адаптив ---------- */
@media (max-width:1100px){
	.hub-hero__l,.hub-tile{grid-column:1/-1}
	.hub-tile{min-height:440px}
	.hub-hero__grid--slim .hub-tile{min-height:320px}
	.hub-tile--noimg{min-height:0}
	.hub-card,.hub-arts{grid-column:1/-1}
	.hub-card{position:static;min-height:0}
	.hub-faq__l,.hub-faq__list{grid-column:1/-1}
}
@media (max-width:980px){
	.hub-pass{grid-template-columns:repeat(2,minmax(0,1fr))}
	.hub-dz__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.hub-cal__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
	.hub-cal__in{min-width:860px}
	.hub-cal__box{padding:8px 18px 20px;border-radius:28px}
	.hub-cal__l,.hub-cal__months span:first-child{position:sticky;left:0;z-index:1;align-self:stretch;display:flex;align-items:center;background:#fff;box-shadow:6px 0 8px -6px rgba(15,34,25,.18)}
	.hub-cal__months span:first-child{box-shadow:none;margin-bottom:-12px;padding:0}
}
@media (max-width:900px){
	.hub-sec{padding-top:72px}
	.hub-card{padding:24px;border-radius:28px}
	.hub-card__t{font-size:38px}
	.hub-card__img{width:170px;height:138px}
	.al{font-size:16px}
	.hub-nb__in{padding:22px 18px;border-radius:28px}
	.hub-nb__t{font-size:28px}
}
@media (max-width:600px){
	.hub-cal{--hub-cal-l:140px}
	.hub-cal__l{font-size:14px}
	.hub-tile{min-height:380px;border-radius:32px}
	.hub-hero__grid--slim .hub-tile{min-height:280px}
	.hub-tile--noimg{min-height:0}
	.hub-pass__c{padding:14px}
	.hub-pass__c dd{font-size:21px}
	.hub-dz__grid{grid-template-columns:minmax(0,1fr)}
	.hub-faq .faq summary{font-size:17px}
	.hub-faq .faq p{padding-right:4px}
	.stb{height:48px;padding:0 14px;font-size:14px}
}
