/* ЮГИД — журнал: список (/blog) и статья. Основа — home.css (секции, кнопки), карточки экскурсий — landing.css. */

.yg-blog-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--yg-muted); font-family: var(--yg-font-body); }
.yg-blog-crumbs a { color: var(--yg-sea); text-decoration: none; }
.yg-blog-crumbs a:hover { text-decoration: underline; }

/* ---------- Список: шапка и фильтр ---------- */
.yg-jr-hero { padding: 32px 0 0; }
.yg-jr-hero__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 56px; }
.yg-blog-h1 { margin: 0; font-family: var(--yg-font-head); font-weight: 700; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.025em; color: var(--yg-ink); text-wrap: balance; }
.yg-blog-h1 em { font-style: normal; color: var(--yg-sea); }
.yg-jr-hero__lead { margin: 0 0 6px; font-size: 17px; line-height: 1.6; color: var(--yg-ink-soft); }
.yg-jr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--yg-border); }
.yg-jr-filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 16px; border-radius: 999px; background: #fff;
    color: var(--yg-ink); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px var(--yg-border); transition: box-shadow .2s, background-color .2s; }
.yg-jr-filter a:hover { box-shadow: inset 0 0 0 1px var(--yg-sea); color: var(--yg-ink); }
.yg-jr-filter small { min-width: 26px; padding: 3px 7px; border-radius: 999px; background: var(--yg-sky); color: var(--yg-sea-dark); font-size: 12px; font-weight: 800; text-align: center; }
.yg-jr-filter a[aria-current] { background: var(--yg-ink); color: #fff; box-shadow: none; }
.yg-jr-filter a[aria-current] small { background: var(--yg-sun); color: var(--yg-ink); }

/* ---------- Главная статья и две рядом ---------- */
.yg-jr-list { padding-top: 36px; }
.yg-jr-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.yg-jr-top--solo { grid-template-columns: 1fr; }
.yg-jr-lead { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; overflow: hidden; border-radius: 32px; background: var(--yg-ink); color: #fff; box-shadow: var(--yg-shadow); }
.yg-jr-lead img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--yg-ease); }
.yg-jr-lead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 26, 42, 0) 22%, rgba(6, 26, 42, .62) 52%, rgba(6, 26, 42, .94) 100%); }
.yg-jr-lead:hover img { transform: scale(1.04); }
.yg-jr-lead__body { display: grid; gap: 14px; max-width: 680px; padding: 40px; }
.yg-jr-lead__meta { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.yg-jr-lead__city { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--yg-sun); color: var(--yg-ink); font-weight: 800; }
.yg-jr-lead__city svg { width: 14px; height: 14px; }
.yg-jr-lead__title { margin: 0; font: 600 clamp(26px, 3vw, 40px)/1.12 var(--yg-font-head); letter-spacing: -.02em; text-wrap: balance; }
.yg-jr-lead__title a { color: #fff; text-decoration: none; }
.yg-jr-lead__title a::after { content: ''; position: absolute; inset: 0; }
.yg-jr-lead__text { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.yg-jr-lead__go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-weight: 700; transition: background-color .2s; }
.yg-jr-lead:hover .yg-jr-lead__go { background: var(--yg-sun); color: var(--yg-ink); box-shadow: none; }
.yg-jr-lead__go svg { width: 16px; height: 16px; }
.yg-jr-lead a:focus-visible { outline: none; }
.yg-jr-lead:focus-within { outline: 3px solid var(--yg-sun-dark); outline-offset: 3px; }
.yg-jr-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }

.yg-jr-subhead { margin: 56px 0 22px; font: 600 24px var(--yg-font-head); color: var(--yg-ink); }

/* ---------- Карточка статьи ---------- */
.yg-jr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yg-jr-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--yg-shadow); transition: transform .3s var(--yg-ease), box-shadow .3s; }
.yg-jr-card:hover { transform: translateY(-4px); box-shadow: var(--yg-shadow-lg); }
.yg-jr-card:focus-within { outline: 3px solid var(--yg-sun-dark); outline-offset: 3px; }
.yg-jr-card__pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--yg-sky); }
.yg-jr-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--yg-ease); }
.yg-jr-card:hover .yg-jr-card__pic img { transform: scale(1.05); }
.yg-jr-card__city { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--yg-ink); font-size: 12px; font-weight: 800; }
.yg-jr-card__city svg { width: 13px; height: 13px; color: var(--yg-sea); }
.yg-jr-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.yg-jr-card__title { margin: 0; font: 600 19px/1.3 var(--yg-font-head); letter-spacing: -.01em; text-wrap: balance; }
.yg-jr-card__title a { color: var(--yg-ink); text-decoration: none; }
.yg-jr-card__title a:focus-visible { outline: none; }
.yg-jr-card__title a::after { content: ''; position: absolute; inset: 0; }
.yg-jr-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--yg-ink-soft); }
.yg-jr-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--yg-muted); }
.yg-jr-card__meta span::before { content: '·'; margin-right: 14px; }
.yg-jr-card--sm { flex-direction: row; }
.yg-jr-card--sm .yg-jr-card__pic { flex: 0 0 44%; aspect-ratio: auto; }
.yg-jr-card--sm .yg-jr-card__body { justify-content: center; padding: 22px; }
.yg-jr-card--sm .yg-jr-card__title { font-size: 18px; }
.yg-jr-card--sm .yg-jr-card__text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.yg-blog-empty { padding: 56px 24px; border: 2px dashed var(--yg-border); border-radius: var(--yg-radius); background: #fff; text-align: center; }
.yg-blog-empty b { display: block; font-size: 18px; margin-bottom: 6px; }
.yg-blog-empty p { color: var(--yg-muted); margin: 0 0 16px; }
.yg-blog-pages { display: flex; justify-content: center; margin-top: 40px; }
.yg-blog-pages .page-link { color: var(--yg-ink); border-color: var(--yg-border); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.yg-blog-pages .active > .page-link { background: var(--yg-ink); border-color: var(--yg-ink); color: #fff; }

/* ---------- Статья ---------- */
.yg-jr-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 1100; height: 3px; pointer-events: none; }
.yg-jr-progress span { display: block; height: 100%; background: var(--yg-sun-dark); transform: scaleX(0); transform-origin: 0 50%; }

.yg-article { font-family: var(--yg-font-body); color: var(--yg-ink); }
.yg-article__head { padding: 32px 0 32px; }
.yg-article__head .container > * { max-width: 860px; }
.yg-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--yg-muted); }
.yg-article__city { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--yg-ink); color: #fff; font-weight: 800; text-decoration: none; }
.yg-article__city:hover { background: var(--yg-sea); color: #fff; }
.yg-article__city svg { width: 14px; height: 14px; color: var(--yg-sun); }
.yg-article__title { margin: 0; font-family: var(--yg-font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.yg-article__lead { margin: 22px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--yg-ink-soft); text-wrap: pretty; }
.yg-article__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.yg-article__ava { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; font: 700 18px var(--yg-font-head); }
.yg-article__by > span:last-child { display: grid; }
.yg-article__by b { font-size: 15px; }
.yg-article__by small { font-size: 13px; color: var(--yg-muted); }

.yg-article__cover { position: relative; margin: 0 0 48px; border-radius: 32px; overflow: hidden; background: var(--yg-sky); aspect-ratio: 21 / 9; }
.yg-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.yg-article__cover figcaption { position: absolute; right: 16px; bottom: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(6, 26, 42, .45); font-size: 11px; color: rgba(255, 255, 255, .85); }
.yg-article__cover figcaption a { color: inherit; text-decoration: none; }

.yg-article__grid { display: grid; grid-template-columns: minmax(0, 700px) 320px; justify-content: center; gap: 72px; align-items: start; padding-bottom: 48px; }
.yg-prose-article { font-size: 19px; line-height: 1.75; color: #1E3A4F; overflow-wrap: anywhere; }
.yg-prose-article > :first-child { margin-top: 0; }
/* Буквица у первого абзаца */
.yg-prose-article > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; font: 700 64px/.85 var(--yg-font-head); color: var(--yg-sea); }
.yg-prose-article p { margin: 0 0 1.25em; }
.yg-prose-article h2, .yg-prose-article h3 { margin: 1.9em 0 .6em; font-family: var(--yg-font-head); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--yg-ink); scroll-margin-top: 96px; }
.yg-prose-article h2 { font-size: 28px; }
.yg-prose-article h3 { font-size: 21px; }
.yg-prose-article a { color: var(--yg-sea); text-decoration: underline; text-underline-offset: 3px; }
.yg-prose-article ul, .yg-prose-article ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.yg-prose-article li { margin-bottom: .5em; padding-left: .2em; }
.yg-prose-article li::marker { color: var(--yg-sun-dark); font-weight: 800; }
.yg-prose-article img { max-width: 100%; height: auto; border-radius: 20px; margin: .6em 0; }
.yg-prose-article blockquote { position: relative; margin: 1.8em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--yg-sun); font: 500 24px/1.45 var(--yg-font-body); color: var(--yg-ink); }
.yg-prose-article blockquote p:last-child { margin: 0; }
.yg-prose-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: 16px; }
.yg-prose-article th, .yg-prose-article td { padding: 10px 12px; border-bottom: 1px solid var(--yg-border); text-align: left; }

.yg-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--yg-border); }
.yg-article__foot > span { font-size: 15px; font-weight: 700; color: var(--yg-ink-soft); max-width: 340px; }
.yg-article__share { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-article__share a, .yg-article__share button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: #fff; color: var(--yg-ink); font: 700 14px var(--yg-font-body); text-decoration: none; box-shadow: inset 0 0 0 1px var(--yg-border); transition: box-shadow .2s, color .2s; }
.yg-article__share a:hover, .yg-article__share button:hover { box-shadow: inset 0 0 0 1px var(--yg-sea); color: var(--yg-sea); }
.yg-article__share svg { width: 16px; height: 16px; }

.yg-article__aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.yg-article__toc { padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border); }
.yg-article__toc b { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yg-muted); }
.yg-article__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.yg-article__toc li { counter-increment: toc; }
.yg-article__toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px 10px 7px 8px; border-radius: 10px; color: var(--yg-ink-soft); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .15s, color .15s; }
.yg-article__toc a::before { content: counter(toc); color: var(--yg-muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.yg-article__toc a:hover { background: var(--yg-sky-soft); color: var(--yg-ink); }
.yg-article__toc a[aria-current] { background: var(--yg-sky); color: var(--yg-ink); }
.yg-article__toc a[aria-current]::before { color: var(--yg-sea); }

.yg-article__tours { display: grid; gap: 10px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: var(--yg-shadow); }
.yg-article__tours-head { display: grid; gap: 2px; margin-bottom: 4px; }
.yg-article__tours-head b { font: 600 17px/1.3 var(--yg-font-head); }
.yg-article__tours-head small { font-size: 13px; color: var(--yg-muted); }
.yg-article__tour { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 14px; color: var(--yg-ink); text-decoration: none; transition: background-color .15s; }
.yg-article__tour:hover { background: var(--yg-sky-soft); color: var(--yg-ink); }
.yg-article__tour-pic { width: 64px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--yg-sky); }
.yg-article__tour-pic img { width: 100%; height: 100%; object-fit: cover; }
.yg-article__tour-text { display: grid; gap: 2px; min-width: 0; }
.yg-article__tour-text b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yg-article__tour-text small { font-size: 13px; color: var(--yg-muted); font-weight: 600; }
.yg-article__tours-none { margin: 0 0 6px; font-size: 14px; color: var(--yg-ink-soft); }
.yg-article__tours .yg-btn { min-height: 46px; margin-top: 6px; font-size: 15px; }
.yg-article a:focus-visible, .yg-article button:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199.98px) {
    .yg-article__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
    .yg-jr-lead { min-height: 480px; }
    .yg-jr-card--sm { flex-direction: column; }
    .yg-jr-card--sm .yg-jr-card__pic { flex: none; aspect-ratio: 16 / 9; }
}
@media (max-width: 991.98px) {
    .yg-jr-hero__row { grid-template-columns: 1fr; }
    .yg-jr-top { grid-template-columns: 1fr; }
    .yg-jr-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .yg-jr-grid { grid-template-columns: 1fr 1fr; }
    .yg-article__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .yg-article__aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .yg-article__aside > :only-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .yg-jr-hero { padding-top: 20px; }
    .yg-jr-hero__lead { font-size: 15px; }
    .yg-jr-filter { flex-wrap: nowrap; overflow-x: auto; margin: 22px calc(var(--bs-gutter-x, 1.5rem) * -.5) 0; padding: 18px calc(var(--bs-gutter-x, 1.5rem) * .5) 4px; scrollbar-width: none; }
    .yg-jr-filter::-webkit-scrollbar { display: none; }
    .yg-jr-filter a { flex: none; }
    .yg-jr-list { padding-top: 24px; }
    .yg-jr-lead { min-height: 440px; border-radius: 24px; }
    .yg-jr-lead__body { padding: 22px; }
    .yg-jr-lead__text { font-size: 15px; }
    .yg-jr-side, .yg-jr-grid { grid-template-columns: 1fr; gap: 16px; }
    .yg-jr-card--sm { flex-direction: row; }
    .yg-jr-card--sm .yg-jr-card__pic { flex: 0 0 38%; aspect-ratio: auto; }
    .yg-jr-card--sm .yg-jr-card__body { padding: 14px 16px; }
    .yg-jr-card--sm .yg-jr-card__title { font-size: 16px; }
    .yg-jr-card--sm .yg-jr-card__city, .yg-jr-card--sm .yg-jr-card__text { display: none; }
    .yg-jr-subhead { margin-top: 40px; font-size: 20px; }
    .yg-article__head { padding: 20px 0 24px; }
    .yg-article__cover { aspect-ratio: 4 / 3; margin-bottom: 28px; border-radius: 22px; }
    .yg-prose-article { font-size: 17px; }
    .yg-prose-article > p:first-child::first-letter { font-size: 52px; }
    .yg-prose-article h2 { font-size: 22px; }
    .yg-prose-article blockquote { font-size: 20px; padding-left: 20px; }
    .yg-article__aside { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-jr-lead img, .yg-jr-card, .yg-jr-card__pic img { transition: none; }
}
