/*
 * ЮГИД — главная страница (редизайн).
 * Дизайн-система: ui-ux-pro-max «travel tour booking», стиль Aurora UI,
 * палитра «морской синий + солнечный акцент» под фирменный жёлтый #FFC123.
 * Шрифты: Unbounded (заголовки) + Manrope (текст) — оба с кириллицей.
 * Все классы с префиксом yg-, чтобы не пересекаться со style.css и slick из scripts.js.
 */

/* Токены (--yg-*) — в /css/tokens.css, подключается из шапки и шаблона главной */

/* Главная больше не прячет body до window.load — контент виден сразу */
body.yg-home {
    display: block !important;
    background: var(--yg-sky-soft);
    font-family: var(--yg-font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--yg-ink);
    -webkit-font-smoothing: antialiased;
}

.yg-home ::selection { background: var(--yg-sun); color: var(--yg-ink); }

.yg-home a:focus-visible,
.yg-home button:focus-visible,
.yg-home select:focus-visible,
.yg-home input:focus-visible {
    outline: 3px solid var(--yg-sun);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(11, 46, 69, .35);
}

.yg-anchor { display: block; position: relative; top: -24px; visibility: hidden; }

.yg-section { padding: 88px 0; }
.yg-section--tight { padding: 56px 0; }
.yg-section--white { background: #fff; }

.yg-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.yg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--yg-sea); margin-bottom: 12px;
}
.yg-eyebrow::before {
    content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--yg-sun);
}
.yg-h2 {
    font-family: var(--yg-font-head);
    font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15;
    letter-spacing: -.01em; color: var(--yg-ink); margin: 0; text-wrap: balance;
}
.yg-h2 em { font-style: normal; color: var(--yg-sea); }
.yg-lead { color: var(--yg-ink-soft); font-size: 17px; max-width: 560px; margin: 12px 0 0; }

/* ---------- Кнопки ---------- */
.yg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
    font: 700 16px/1 var(--yg-font-body); text-decoration: none; cursor: pointer;
    transition: transform .2s var(--yg-ease), background-color .2s var(--yg-ease), box-shadow .2s var(--yg-ease), color .2s;
}
.yg-btn svg { width: 20px; height: 20px; flex: none; }
.yg-btn--sun { background: var(--yg-sun); color: var(--yg-ink); box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.yg-btn--sun:hover { background: var(--yg-sun-dark); color: var(--yg-ink); transform: translateY(-1px); }
.yg-btn--ghost { background: transparent; color: var(--yg-ink); box-shadow: inset 0 0 0 2px var(--yg-border); }
.yg-btn--ghost:hover { color: var(--yg-sea); box-shadow: inset 0 0 0 2px var(--yg-sea); }
.yg-btn:active { transform: translateY(0) scale(.98); }

.yg-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-weight: 700; color: var(--yg-sea); text-decoration: none;
}
.yg-link svg { width: 18px; height: 18px; transition: transform .2s var(--yg-ease); }
.yg-link:hover { color: var(--yg-sea-dark); }
.yg-link:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.yg-hero { padding: 16px 0 0; }
.yg-hero__inner {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--yg-radius-lg);
    min-height: 640px; padding: 72px 56px 40px;
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 56px; align-items: center;
    color: #fff; background: var(--yg-ink);
}
.yg-hero__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 60% 65%;
}
.yg-hero__inner::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 60% at 90% 0%, rgba(255, 193, 35, .16), transparent 60%),
        radial-gradient(70% 80% at 0% 100%, rgba(3, 105, 161, .55), transparent 65%),
        linear-gradient(100deg, rgba(11, 46, 69, .94) 0%, rgba(11, 46, 69, .78) 45%, rgba(11, 46, 69, .25) 100%);
}
.yg-hero__aurora {
    position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
    right: -160px; top: -200px; filter: blur(80px); opacity: .22;
    background: conic-gradient(from 90deg, #38BDF8, #FFC123, #0EA5E9, #38BDF8);
    animation: yg-aurora 14s ease-in-out infinite alternate;
}
@keyframes yg-aurora {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to { transform: translate3d(-80px, 60px, 0) rotate(40deg); }
}

.yg-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 14px; font-weight: 600; color: #fff;
}
.yg-pill svg { width: 16px; height: 16px; color: var(--yg-sun); }

.yg-hero h1 {
    font-family: var(--yg-font-head);
    font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em;
    margin: 20px 0 16px; color: #fff; text-wrap: balance;
}
.yg-hero h1 .yg-typed { display: block; min-height: 1.05em; color: var(--yg-sun); }
.yg-hero__lead { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0; }
.yg-hero__bottom { grid-column: 1 / -1; }

/* Поиск */
.yg-search {
    display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 8px;
    padding: 8px; border-radius: 24px; background: #fff; color: var(--yg-ink);
    box-shadow: var(--yg-shadow-lg);
}
.yg-field {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    min-height: 60px; padding: 8px 16px 8px 48px; border-radius: 16px;
    transition: background-color .2s;
}
.yg-field:hover, .yg-field:focus-within { background: var(--yg-sky-soft); }
.yg-field > svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--yg-sea);
}
.yg-field label {
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--yg-muted); margin: 0 0 2px; cursor: pointer; white-space: nowrap;
}
.yg-field select,
.yg-field input {
    appearance: none; -webkit-appearance: none;
    width: 100%; border: 0; padding: 0; margin: 0; background: transparent !important;
    font: 600 16px/1.3 var(--yg-font-body); color: var(--yg-ink); cursor: pointer;
}
.yg-field select:focus, .yg-field input:focus { outline: none; box-shadow: none; }
.yg-field:focus-within { box-shadow: inset 0 0 0 2px var(--yg-sea); }
.yg-search .yg-btn { min-height: 60px; border-radius: 16px; padding: 0 36px; }

.yg-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding: 0; list-style: none; }
.yg-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.yg-trust svg { width: 20px; height: 20px; color: var(--yg-sun); flex: none; }

/* Карточка «хит» в hero */
.yg-feature {
    justify-self: end; width: 100%; max-width: 380px;
    border-radius: 24px; padding: 12px; color: var(--yg-ink);
    background: rgba(255, 255, 255, .96); box-shadow: var(--yg-shadow-lg);
    text-decoration: none; display: block;
    transition: transform .3s var(--yg-ease);
}
.yg-feature:hover { transform: translateY(-4px); color: var(--yg-ink); }
.yg-feature__pic { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--yg-sky); }
.yg-feature__pic img { width: 100%; height: 100%; object-fit: cover; }
.yg-feature__body { padding: 16px 8px 8px; }
.yg-feature__title { font-weight: 800; font-size: 18px; line-height: 1.3; margin: 6px 0 12px; }

/* ---------- Чипы и бейджи ---------- */
.yg-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; line-height: 1.2;
    background: rgba(255, 255, 255, .94); color: var(--yg-ink);
}
.yg-chip svg { width: 14px; height: 14px; color: var(--yg-sea); }
.yg-chip--sun { background: var(--yg-sun); }
.yg-chip--sale { background: var(--yg-coral); color: #fff; }
.yg-chip--online { background: var(--yg-sea); color: #fff; }
.yg-badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }

/* ---------- Табы городов ---------- */
.yg-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.yg-tab {
    min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
    font: 700 15px/1 var(--yg-font-body); color: var(--yg-ink-soft);
    background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border);
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.yg-tab:hover { color: var(--yg-sea); box-shadow: inset 0 0 0 1px var(--yg-sea); }
.yg-tab[aria-selected="true"] { background: var(--yg-ink); color: #fff; box-shadow: none; }

/* ---------- Карточки экскурсий ---------- */
.yg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.yg-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--yg-card); border-radius: var(--yg-radius); overflow: hidden;
    box-shadow: var(--yg-shadow);
    transition: transform .3s var(--yg-ease), box-shadow .3s var(--yg-ease);
}
.yg-card:hover { transform: translateY(-4px); box-shadow: var(--yg-shadow-lg); }
.yg-card[hidden] { display: none; }
.yg-card__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--yg-sky); }
.yg-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--yg-ease); }
.yg-card:hover .yg-card__pic img { transform: scale(1.05); }
.yg-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.yg-card__cat { font-size: 13px; font-weight: 700; color: var(--yg-sea); text-decoration: none; position: relative; z-index: 2; align-self: flex-start; }
.yg-card__cat:hover { text-decoration: underline; }
.yg-card__title { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0; }
.yg-card__title a { color: var(--yg-ink); text-decoration: none; }
/* Вся карточка кликабельна через растянутую ссылку заголовка */
.yg-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.yg-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--yg-muted); }
.yg-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.yg-card__meta svg { width: 16px; height: 16px; }
.yg-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--yg-border); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

.yg-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.yg-price__from { font-size: 13px; color: var(--yg-muted); }
.yg-price__now { font-size: 20px; font-weight: 800; color: var(--yg-ink); white-space: nowrap; }
.yg-price__old { font-size: 14px; color: var(--yg-muted); text-decoration: line-through; white-space: nowrap; }

.yg-more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Города ---------- */
.yg-cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yg-city {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 360px; padding: 28px; border-radius: var(--yg-radius-lg); overflow: hidden; isolation: isolate;
    color: #fff; text-decoration: none; background: var(--yg-sea);
}
.yg-city img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--yg-ease); }
.yg-city::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 46, 69, 0) 35%, rgba(11, 46, 69, .88) 100%); }
.yg-city:hover { color: #fff; }
.yg-city:hover img { transform: scale(1.06); }
.yg-city__name { font-family: var(--yg-font-head); font-weight: 600; font-size: 30px; line-height: 1.1; }
.yg-city__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: rgba(255, 255, 255, .88); font-weight: 600; }
.yg-city__arrow {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    display: grid; place-items: center; background: var(--yg-sun); color: var(--yg-ink);
    transition: transform .3s var(--yg-ease);
}
.yg-city__arrow svg { width: 20px; height: 20px; }
.yg-city:hover .yg-city__arrow { transform: rotate(-45deg); }

/* ---------- Категории ---------- */
.yg-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.yg-cat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 24px 20px; border-radius: var(--yg-radius);
    background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border);
    color: var(--yg-ink); text-decoration: none;
    transition: box-shadow .2s, transform .2s var(--yg-ease), background-color .2s;
}
.yg-cat:hover { color: var(--yg-ink); background: var(--yg-sky-soft); box-shadow: inset 0 0 0 2px var(--yg-sea); transform: translateY(-2px); }
.yg-cat__icon { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--yg-sky); transition: background-color .2s; }
.yg-cat:hover .yg-cat__icon { background: var(--yg-sun); }
.yg-cat__icon img { width: 32px; height: 32px; }
.yg-cat__title { font-weight: 800; font-size: 16px; line-height: 1.3; }
.yg-cat__desc { font-size: 14px; color: var(--yg-muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Почему мы / шаги ---------- */
.yg-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.yg-why__text { color: var(--yg-ink-soft); font-size: 17px; margin: 20px 0 28px; }
.yg-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.yg-feat { padding: 24px; border-radius: var(--yg-radius); background: var(--yg-sky-soft); }
.yg-feat__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yg-sun); color: var(--yg-ink); margin-bottom: 16px; }
.yg-feat__icon svg { width: 24px; height: 24px; }
.yg-feat__title { font-weight: 800; font-size: 16px; line-height: 1.3; }
.yg-feat__text { font-size: 14px; color: var(--yg-muted); margin-top: 6px; }

.yg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; counter-reset: yg-step; list-style: none; padding: 0; }
.yg-step { position: relative; padding: 20px 20px 20px 64px; border-radius: var(--yg-radius); box-shadow: inset 0 0 0 1px var(--yg-border); }
.yg-step::before {
    counter-increment: yg-step; content: counter(yg-step);
    position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: var(--yg-ink); color: #fff;
    font: 700 14px/1 var(--yg-font-head);
}
.yg-step strong { display: block; font-size: 15px; }
.yg-step span { font-size: 14px; color: var(--yg-muted); }

/* ---------- Блог ---------- */
.yg-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yg-post { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--yg-radius); overflow: hidden; box-shadow: var(--yg-shadow); transition: transform .3s var(--yg-ease), box-shadow .3s; }
.yg-post:hover { transform: translateY(-4px); box-shadow: var(--yg-shadow-lg); }
.yg-post__pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--yg-sky); }
.yg-post__pic img { width: 100%; height: 100%; object-fit: cover; }
.yg-post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.yg-post__meta { display: flex; gap: 12px; font-size: 13px; color: var(--yg-muted); font-weight: 600; }
.yg-post__meta b { color: var(--yg-sea); }
.yg-post__title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0; }
.yg-post__title a { color: var(--yg-ink); text-decoration: none; }
.yg-post__title a::after { content: ''; position: absolute; inset: 0; }
.yg-post__text { font-size: 15px; color: var(--yg-ink-soft); margin: 0; }

/* ---------- Отзывы ---------- */
.yg-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.yg-review { padding: 28px; border-radius: var(--yg-radius); background: #fff; box-shadow: var(--yg-shadow); display: flex; flex-direction: column; gap: 16px; }
.yg-review__quote { width: 32px; height: 32px; color: var(--yg-sun); }
.yg-review__text { font-size: 16px; color: var(--yg-ink); margin: 0; }
.yg-review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.yg-review__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--yg-sky); }
.yg-review__name { font-weight: 800; font-size: 15px; }
.yg-review__exc { font-size: 13px; color: var(--yg-muted); }

/* ---------- Появление при скролле ---------- */
.yg-js .yg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--yg-ease), transform .5s var(--yg-ease); }
.yg-js .yg-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199.98px) {
    .yg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .yg-search { grid-template-columns: 1fr 1fr; }
    .yg-search .yg-btn { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    .yg-section { padding: 64px 0; }
    .yg-hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 56px 32px 32px; }
    .yg-feature { justify-self: start; max-width: 100%; display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
    .yg-feature__pic { aspect-ratio: 1; }
    .yg-feature__body { padding: 0 8px 0 0; }
    .yg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yg-cities { grid-template-columns: 1fr; }
    .yg-city { min-height: 240px; }
    .yg-why { grid-template-columns: 1fr; gap: 32px; }
    .yg-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .yg-post__body { padding: 16px; }
    .yg-post__title { font-size: 16px; }
    .yg-post__text { font-size: 14px; }
}
@media (max-width: 767.98px) {
    .yg-hero { padding: 8px 0 0; }
    .yg-hero__inner { padding: 40px 20px 20px; border-radius: 24px; }
    .yg-hero__lead { font-size: 16px; }
    .yg-search { grid-template-columns: 1fr; }
    .yg-feature { display: none; }
    .yg-grid { grid-template-columns: 1fr; gap: 16px; }
    .yg-features, .yg-steps { grid-template-columns: 1fr; }
    /* Журнал — в две колонки: фото, город и заголовок, без пояснения; нечётная первая статья — во всю ширину */
    .yg-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .yg-post { border-radius: 18px; }
    .yg-post__pic { aspect-ratio: 4 / 3; }
    .yg-post__body { padding: 12px 12px 14px; gap: 6px; }
    .yg-post__meta { flex-direction: column; gap: 0; font-size: 12px; }
    .yg-post__title { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .yg-post__text { display: none; }
    .yg-post:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
    .yg-post:first-child:nth-last-child(odd) .yg-post__pic { aspect-ratio: 16 / 9; }
    .yg-post:first-child:nth-last-child(odd) .yg-post__body { padding: 14px 16px 16px; }
    .yg-post:first-child:nth-last-child(odd) .yg-post__meta { flex-direction: row; gap: 10px; }
    .yg-post:first-child:nth-last-child(odd) .yg-post__title { font-size: 17px; }
    .yg-cats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .yg-cat { padding: 20px 16px; }
    .yg-head { margin-bottom: 28px; }
    .yg-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
    .yg-tab { flex: none; }
    .yg-more .yg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .yg-hero__aurora { animation: none; }
    .yg-js .yg-reveal { opacity: 1; transform: none; transition: none; }
    .yg-home *, .yg-home *::before, .yg-home *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Карточка экскурсии (widget.card.tour): одна для всех списков ---------- */
.yg-tour { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: var(--yg-shadow); transition: transform .35s var(--yg-ease), box-shadow .35s var(--yg-ease); }
.yg-tour:hover { transform: translateY(-4px); box-shadow: var(--yg-shadow-lg); }
.yg-tour[hidden] { display: none; }
.yg-tour__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--yg-sky), #BAE6FD); }
.yg-tour__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--yg-ease); }
.yg-tour:hover .yg-tour__pic img { transform: scale(1.06); }
.yg-tour__pic::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 46, 69, .35) 0%, rgba(11, 46, 69, 0) 30%, rgba(11, 46, 69, 0) 62%, rgba(11, 46, 69, .55) 100%); }
.yg-tour__nopic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--yg-sea); }
.yg-tour__nopic svg { width: 40px; height: 40px; opacity: .5; }
.yg-tour__top, .yg-tour__bottom { position: absolute; left: 12px; right: 12px; z-index: 1; display: flex; align-items: center; gap: 6px; }
.yg-tour__top { top: 12px; justify-content: space-between; }
.yg-tour__bottom { bottom: 12px; }
.yg-tour__chip { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: 12px; font-weight: 800; color: var(--yg-ink); }
.yg-tour__rate { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--yg-ink); color: #fff; font-size: 13px; font-weight: 800; }
.yg-tour__rate span { color: var(--yg-sun); }
.yg-tour__pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 46, 69, .72);
    backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; }
.yg-tour__pill svg { width: 14px; height: 14px; }
.yg-tour__pill--sale { background: var(--yg-coral); }
.yg-tour__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.yg-tour__city { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--yg-sea); }
.yg-tour__city svg { width: 14px; height: 14px; }
.yg-tour__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yg-tour__title a { color: var(--yg-ink); text-decoration: none; }
.yg-tour__title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.yg-tour__title a:focus-visible { outline: none; }
.yg-tour:has(.yg-tour__title a:focus-visible) { outline: 3px solid var(--yg-sun-dark); outline-offset: 3px; }
.yg-tour__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--yg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yg-tour__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--yg-border); }
.yg-tour__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.yg-tour__price b { font-size: 19px; font-weight: 800; color: var(--yg-ink); white-space: nowrap; }
.yg-tour__price s { font-size: 13px; color: var(--yg-muted); }
.yg-tour__from { font-size: 13px; color: var(--yg-muted); }
.yg-tour__ask { font-size: 15px !important; }
.yg-tour__book { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; background: #DCFCE7; color: #166534;
    font-size: 12px; font-weight: 800; white-space: nowrap; }
.yg-tour__book svg { width: 14px; height: 14px; }
.yg-tour__book--req { background: var(--yg-sky-soft); color: var(--yg-ink-soft); }
@media (min-width: 576px) and (max-width: 767.98px) { .yg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .yg-tour, .yg-tour__pic img { transition: none; } }

/* ---------- Пагинация (widget.pagination) ---------- */
.yg-pager { display: grid; justify-items: center; gap: 10px; margin-top: 40px; font-family: var(--yg-font-body); }
.yg-pager__row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--yg-shadow); }
.yg-pager__pages { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.yg-pager__page, .yg-pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px;
    border-radius: 999px; color: var(--yg-ink); font-size: 15px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.yg-pager a:hover { background: var(--yg-sky); color: var(--yg-ink); }
.yg-pager__page.is-current { background: var(--yg-ink); color: #fff; }
.yg-pager__step { padding: 0 16px; }
.yg-pager__step svg { width: 16px; height: 16px; transform: rotate(90deg); }
.yg-pager__step--next svg { transform: rotate(-90deg); }
.yg-pager__step.is-disabled { color: #A8B9C7; cursor: default; }
.yg-pager__gap { min-width: 24px; text-align: center; color: var(--yg-muted); font-weight: 700; }
.yg-pager__compact { display: none; padding: 0 6px; font-size: 14px; font-weight: 700; color: var(--yg-ink-soft); white-space: nowrap; }
.yg-pager__info { margin: 0; font-size: 13px; color: var(--yg-muted); }
.yg-pager a:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .yg-pager__pages { display: none; }
    .yg-pager__compact { display: inline; }
}
