/* =========================================================================
   photo.belles.kz — home.css: home (P17, из лаборатории design-lab/photo/pages/home.css)
   Перенос (P17): варианты лаборатории сняты под выбор владельца 07.11 скриптом — выбранный вариант остаётся правилом,
   префикс варианта на <html> заменён на html:root… той же специфичности (каскад не меняется), невыбранные удалены;
   повторы правил одного селектора сведены, где это не меняет каскад. Равенство вычисленных стилей с лабораторией проверено
   на 52 экранах × 1440/390. Мозаика getty — только с JS (:where(.js)), «Сетка» — html[data-feed-view="grid"] и без JS.
   ========================================================================= */
html[data-page="home"] #main > .page__inner { gap: var(--section-gap); }
html[data-page="search"] #main > .page__inner { gap: var(--s-6); }
.page { padding-top: var(--s-6); }
/* Герой: кадр дня во всю ширину контента, текст поверх затемнения слева-снизу */
.hero { position: relative; display: grid; min-height: clamp(320px, 38vw, 480px); border-radius: var(--r-card); overflow: hidden; isolation: isolate; color: #fff; background: #1c1b1a; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.media--hero { height: 100%; aspect-ratio: auto; border-radius: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgb(10 10 12 / .72) 0%, rgb(10 10 12 / .38) 48%, rgb(10 10 12 / .05) 80%), linear-gradient(0deg, rgb(10 10 12 / .45), transparent 45%); }
.hero__text { position: relative; z-index: 1; align-self: end; display: grid; gap: var(--s-3); padding: clamp(24px, 4vw, 48px); max-width: 720px; }
.hero h1 { font-size: var(--fs-display); letter-spacing: var(--tracking-display); line-height: 1.05; font-weight: 600; color: #fff; text-wrap: balance; }
.hero__sub { color: rgb(255 255 255 / .88); font-size: var(--fs-lg); line-height: 1.45; max-width: 52ch; }
.hero-search { display: none; margin-top: var(--s-3); }

.hero-search .search { border-color: transparent; box-shadow: 0 8px 28px -8px rgb(0 0 0 / .45); }
.hero__links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.hero__links a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .16); color: #fff; text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); transition: background-color var(--dur-2); }
.hero__links a:hover { background: rgb(255 255 255 / .26); }
.hero__credit { position: absolute; z-index: 1; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .9); font-size: var(--fs-xs); text-decoration: none; padding: 6px 10px; border-radius: 999px; background: rgb(10 10 12 / .55); }
.hero__credit:hover { color: #fff; }
/* Строка хэштегов — текстом, без «таблеток» */
.tagline { display: flex; align-items: baseline; gap: var(--s-4); margin-top: calc(-1 * var(--section-gap) + 20px); }
.tagline__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; color: var(--text); }
.tagline__list { position: relative; display: flex; flex-wrap: wrap; gap: 4px 18px; min-width: 0; } /* relative: sr-only внутри не «вылезает» за прокрутку */
.tagline__a { display: inline-flex; align-items: baseline; gap: 5px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); min-height: 28px; align-items: center; }
.tagline__a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.tagline__n { color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
/* Заголовки разделов */
.home-sec { display: grid; gap: var(--s-6); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.sec-head h2 { font-size: var(--fs-h2); letter-spacing: -.015em; font-weight: 600; }
.sec-head__sub { color: var(--text-3); font-size: var(--fs-sm); margin-top: 4px; }
.sec-head__link { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-medium); text-decoration: none; min-height: 40px; color: var(--accent-ui); }
.sec-head__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-sec .catbar { margin-top: calc(-1 * var(--s-3)); }
/* поиск: пусто, хлебные крошки (используется и в search.html) */
.empty__tags { display: grid; gap: var(--s-2); justify-items: center; margin-top: var(--s-4); }
.empty__tags .chip { text-decoration: none; color: var(--text); }
.crumbs + h1 { margin-top: var(--s-2); }
.page-head h1 { font-size: var(--fs-h2); letter-spacing: -.015em; }
@media (max-width: 767px) {
  .hero { min-height: 360px; border-radius: var(--r-ctl); margin: 0 calc(-1 * var(--page-pad) + 0px); border-radius: 0; }
  .hero__sub { font-size: var(--fs-md); }
  .hero__credit { left: 16px; right: auto; top: 14px; bottom: auto; }
  .hero::before { background: linear-gradient(0deg, rgb(10 10 12 / .82) 0%, rgb(10 10 12 / .45) 55%, rgb(10 10 12 / .1) 100%); }
  .hero__links a { height: 44px; }
  .tagline { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .tagline__list { flex-wrap: nowrap; overflow-x: auto; width: auto; margin: 0 calc(-1 * var(--page-pad)); padding: 0 var(--page-pad) 4px; scrollbar-width: none; }
  .tagline__a { min-height: 44px; flex: none; }
  .sec-head__link { min-height: 44px; }
}
@media (max-width: 767px) { .hero__credit { min-height: 34px; } }
.sec-head__count { color: var(--text-3); font-weight: 500; }
/* раунд 3: теги на телефоне — мягкое затухание справа (видно, что строку можно листать) */
@media (max-width: 767px) { .tagline__list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); } .tagline { margin-top: calc(-1 * var(--section-gap) + 20px); } }
.sec-head h2 { letter-spacing: -.02em; }
.home-sec { gap: var(--s-6); }
/* цикл 5: ритм — хэштеги часть героя, разделы через 72 px */
html[data-page="home"] #main > .page__inner { gap: 72px; }
.tagline { margin-top: -56px; }
@media (max-width: 767px) { html[data-page="home"] #main > .page__inner { gap: 44px; } .tagline { margin-top: -30px; } }

/* раунд 4: «Кадр дня» — без «таблеток»; вид по alt-credit */
.hero__credit { display: none; text-decoration: none; color: #fff; }
.hero__credit .ic { transition: translate var(--dur-2) var(--ease-out); }
.hero__credit:hover .ic { translate: 3px 0; }
/* caption (умолч.): строка под подзаголовком — мелко, с тонким подчёркиванием при наведении */

.hero__credit--caption:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .5); }
/* corner: в правом нижнем углу — подпись в две строки и стрелка, без фона, на затемнении */
html:root .hero__credit--corner { position: absolute; z-index: 1; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: end; text-align: right; max-width: 280px; }
.hero__credit-k { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.hero__credit-t { grid-column: 1; font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1.35; }
.hero__credit--corner .ic { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; padding: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.hero__credit--corner:hover .ic { background: #fff; color: var(--text); }
html:root .hero::before { background: linear-gradient(90deg, rgb(10 10 12 / .72) 0%, rgb(10 10 12 / .38) 48%, rgb(10 10 12 / .05) 80%), linear-gradient(0deg, rgb(10 10 12 / .55), transparent 45%); }
/* below: подпись под фото, как в журнале — серым текстом справа */
.hero-credit-below { display: none; }

.hero-credit-below span { color: var(--text); font-weight: var(--fw-semibold); }
.hero-credit-below:hover { color: var(--text); }

@media (max-width: 767px) { html:root .hero__credit--corner { left: 20px; right: auto; top: 18px; bottom: auto; text-align: left; }  .hero__credit--caption { min-height: 44px; } }
.hero-credit-below .ic { transition: translate var(--dur-2) var(--ease-out); }
.hero-credit-below:hover .ic { translate: 3px 0; }
/* цикл 2 раунда 4: у подписи «Кадр дня» нет фона-«таблетки» ни в одном виде */
.hero__credit, .hero__credit:hover { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.hero__credit--caption { position: static; }
html:root .hero__credit--corner { background: none; padding: 0; }
/* быстрые ссылки героя — текстом, без «таблеток»: подчёркивание при наведении, стрелка */
.hero__links { gap: 6px 22px; margin-top: var(--s-3); }
.hero__links a, .hero__links a:hover { height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: #fff; min-height: 32px; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color var(--dur-2); }
.hero__links a:hover { text-decoration-color: #fff; }
@media (max-width: 767px) { .hero__links a, .hero__links a:hover { min-height: 44px; height: auto; display: inline-flex; align-items: center; } }

