/* Гид по подаркам — страница /podarki/ (26.11.2026; яркое оформление — 27.11.2026, просьба Сергея: «страница должна
   быть яркой и привлекающей внимание», баннер с уткой-логотипом в виде Деда Мороза, утки в карточках интересов).
   Фирменные цвета: красный #FF0000, розовый верх, текст #3B3D40, рамки #E9ECEE; акцент — золото #FFC233. Утки —
   вектор из логотипа (art/, site_files/gift_guide/art/build_art.py), без нейрогенерации. */
.gg { padding: 8px 0 48px; color: #3B3D40; }
/* скрытое скриптом (атрибут hidden) — скрыто, даже если у элемента свой display (кнопки .gg-btn — inline-flex) */
.gg [hidden] { display: none !important; }
.gg a { color: inherit; text-decoration: none; }
/* у ссылок-кнопок цвет свой: правило выше (.gg a) сильнее одиночного класса */
.gg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 10px 18px; border-radius: 10px; border: 1.12px solid #E9ECEE;
    background: #fff; color: #3B3D40; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
    font-family: inherit; transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}
.gg-btn:hover { border-color: #FF0000; color: #FF0000; }
.gg-btn--red, .gg-btn--red:hover { background: #FF0000; border-color: #FF0000; color: #fff; }
.gg-btn--red:hover { opacity: .9; }
.gg-btn[disabled] { opacity: .5; cursor: default; }
.gg-btn--reset { border-color: #FF0000; color: #FF0000; background: #FFF4F4; }
.gg-btn--reset:hover { background: #FF0000; color: #fff; }
.gg-link { border: 0; background: none; padding: 0; color: #FF0000; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* баннер: красный, со снегом, утка — Дед Мороз */
.gg-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 330px; padding: 34px 44px; margin: 8px 0 40px; border-radius: 24px; overflow: hidden; color: #fff;
    background: radial-gradient(120% 140% at 85% 20%, #FF4A4A 0%, #FF0000 38%, #D80015 78%, #B5001A 100%);
    box-shadow: 0 14px 40px rgba(255, 0, 0, .22);
}
.gg-hero--img { background-size: cover; background-position: center; }
.gg-hero__snow {
    position: absolute; inset: 0; pointer-events: none; opacity: .9;
    /* под текстом снег реже — не мешает читать */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, .35) 45%, #000 70%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, .35) 45%, #000 70%);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .95) 0 2px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 255, 255, .7) 0 1.5px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, .5) 0 3px, transparent 3.5px);
    background-size: 90px 90px, 53px 53px, 140px 140px;
    background-position: 0 0, 25px 31px, 60px 15px;
    animation: gg-snow 18s linear infinite;
}
@keyframes gg-snow { to { background-position: 0 360px, 25px 243px, 60px 435px; } }
@media (prefers-reduced-motion: reduce) { .gg-hero__snow { animation: none; } }
.gg-hero__text { position: relative; z-index: 1; max-width: 620px; }
.gg-hero__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.gg-hero__word { height: 30px; width: auto; display: block; }
.gg-hero__season {
    display: inline-block; padding: 5px 14px; border-radius: 30px; background: #FFC233; color: #3B3D40;
    font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.gg-hero__title { font-size: 48px; line-height: 1.05; font-weight: 800; margin: 0 0 14px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); text-wrap: balance; }
.gg-hero__kicker { font-size: 15px; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: inherit; opacity: .9; }
.gg-hero__lead { font-size: 19px; line-height: 1.45; margin: 0 0 24px; color: #fff; opacity: .95; text-wrap: pretty; }
.gg-hero__jump { display: flex; flex-wrap: wrap; gap: 10px; }
.gg .gg-btn--gold { background: #FFC233; border-color: #FFC233; color: #3B3D40; }
.gg .gg-btn--gold:hover { background: #FFD25C; border-color: #FFD25C; color: #3B3D40; transform: translateY(-1px); }
.gg .gg-btn--white { background: #fff; border-color: #fff; color: #FF0000; }
.gg .gg-btn--white:hover { background: #FFF1F1; border-color: #FFF1F1; color: #D80015; transform: translateY(-1px); }
.gg-hero__art { position: relative; z-index: 1; flex: 0 0 auto; width: 300px; height: 280px; }
.gg-hero__moon {
    position: absolute; left: 18px; top: 22px; width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff 0%, #FFF3F3 62%, #FFE1E1 100%);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .18), 0 0 0 22px rgba(255, 255, 255, .08);
}
.gg-hero__art img { position: absolute; left: 0; top: -6px; width: 290px; height: auto; filter: drop-shadow(0 8px 10px rgba(120, 0, 0, .25)); }
.gg-hero--img .gg-hero__moon, .gg-hero--img .gg-hero__art img { display: none; }

.gg-h2 { font-size: 30px; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.gg-h2:not(.gg-h2--res)::after {
    content: ""; display: block; width: 56px; height: 5px; margin-top: 8px; border-radius: 3px;
    background: linear-gradient(90deg, #FF0000 0 60%, #FFC233 60% 100%);
}
.gg-note { margin: -4px 0 16px; color: #6B6E72; font-size: 15px; }

/* карточки подборок */
.gg-cards { display: grid; gap: 16px; margin-bottom: 44px; }
.gg-cards--int { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gg-cards--dev { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gg-card {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 16px;
    border-radius: 22px; border: 1.12px solid #F3D6D6; background: #fff; min-height: 100%;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gg-card:hover, .gg-card.is-on { border-color: #FF0000; box-shadow: 0 10px 26px rgba(255, 0, 0, .14); transform: translateY(-3px); }
.gg-card.is-on .gg-card__title { color: #FF0000; }
.gg-card__art {
    position: relative; display: flex; align-items: center; justify-content: center; height: 170px; margin-bottom: 8px;
    border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #FFEAEA 60%, #FFD9D9 100%);
}
.gg-card__art::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
    background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2px), radial-gradient(circle, #fff 0 1px, transparent 1.5px);
    background-size: 46px 46px, 29px 29px; background-position: 6px 4px, 20px 17px;
}
.gg-card__art img { position: relative; max-width: 92%; max-height: 92%; width: auto; height: auto; transition: transform .2s; }
.gg-card:hover .gg-card__art img { transform: scale(1.05) rotate(-2deg); }
.gg-card--dev .gg-card__art { height: 120px; background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F6F7F9 70%, #ECEEF2 100%); }
.gg-card--dev .gg-card__art::before { display: none; }
.gg-card--dev .gg-card__art img { max-width: 78%; max-height: 84%; mix-blend-mode: multiply; }
.gg-card__title { font-size: 17px; font-weight: 800; line-height: 1.25; padding: 0 6px; }
.gg-card__sub { font-size: 13px; color: #8A8D91; line-height: 1.35; padding: 0 6px; }
.gg-card__count {
    position: absolute; top: 18px; right: 18px; min-width: 28px; padding: 3px 9px; border-radius: 20px;
    background: #FF0000; color: #fff; font-size: 12px; font-weight: 800; text-align: center; z-index: 3;
    box-shadow: 0 3px 8px rgba(255, 0, 0, .25);
}

/* бюджеты — подарочные бирки */
.gg-budgets { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.gg-budget {
    position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 16px 22px 16px 30px; border-radius: 14px;
    border: 1.12px solid #FFC9C9; background: linear-gradient(135deg, #FFF6F6, #FFE6E6); font-size: 21px; font-weight: 800;
    white-space: nowrap; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.gg-budget::before {
    content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 2px #FFC9C9;
}
.gg .gg-budget { color: #D80015; }
.gg-budget small { font-size: 14px; font-weight: 600; color: #8A8D91; }
.gg .gg-budget:hover, .gg .gg-budget.is-on { background: #FF0000; border-color: #FF0000; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 0, 0, .2); }
.gg-budget:hover small, .gg-budget.is-on small { color: #FFE0E0; }

/* выдача */
.gg-res { scroll-margin-top: 90px; }
.gg-res__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 10px; }
.gg-h2--res { margin: 0; }
.gg-res__count { color: #8A8D91; font-size: 15px; }
.gg-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8A8D91; }
.gg-sort select { border: 1.12px solid #E9ECEE; border-radius: 8px; padding: 8px 10px; font: inherit; color: #3B3D40; background: #fff; }
.gg-filters-open { display: none; }
.gg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-height: 4px; }
.gg-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px;
    border: 1.12px solid #E9ECEE; background: #fff; font: inherit; font-size: 14px; color: #3B3D40; cursor: pointer;
}
.gg-chip.is-on { border-color: #FF0000; color: #FF0000; background: #FFF4F4; }
.gg-chip b { font-size: 16px; line-height: 1; }
.gg-chip--reset { border-style: dashed; }
.gg-res__body { display: flex; gap: 24px; align-items: flex-start; }
.gg-filters { flex: 0 0 270px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.gg-res__list { flex: 1 1 auto; min-width: 0; }
.gg-grid { row-gap: 20px; }
.gg-grid > .gg-col { flex: 0 0 33.3333%; max-width: 33.3333%; }
.gg-empty { padding: 40px 20px; text-align: center; border: 1.12px dashed #E9ECEE; border-radius: 20px; color: #8A8D91; }
.gg-more-wrap { text-align: center; margin-top: 28px; }

/* фильтры */
.gg-f__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; }
.gg-f__reset { margin-left: auto; border: 0; background: none; color: #FF0000; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.gg-f__reset:hover { text-decoration: underline; }
.gg-f__close { display: none; }
.gg-f__foot { display: none; }
.gg-f { border: 0; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1.12px solid #E9ECEE; min-width: 0; }
.gg-f legend { font-size: 16px; font-weight: 700; margin-bottom: 10px; padding: 0; width: auto; float: none; }
.gg-f__opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; margin: 0; cursor: pointer; font-size: 15px; line-height: 1.3; }
.gg-f__opt input { accent-color: #FF0000; width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }
.gg-f__opt sup { top: 0; font-size: 12px; color: #A0A0A0; margin-left: auto; }
.gg-f__model { width: 100%; margin: 6px 0 4px 24px; max-width: calc(100% - 24px); border: 1.12px solid #FF0000; border-radius: 8px; padding: 8px; font: inherit; background: #fff; }
.gg-f__hint { margin: 0 0 6px 24px; font-size: 12px; color: #8A8D91; line-height: 1.35; }
.gg-f__price { display: flex; align-items: center; gap: 8px; }
.gg-f__price input { width: 100%; min-width: 0; border: 1.12px solid #E9ECEE; border-radius: 8px; padding: 8px 10px; font: inherit; }
.gg-f__budgets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gg-f__budgets .gg-chip { font-size: 13px; padding: 4px 10px; }
.gg-f--types .gg-f__more { display: none; }
.gg-f--types.is-all .gg-f__more { display: flex; }
.gg-f__toggle { border: 0; background: none; color: #FF0000; padding: 4px 0; font: inherit; font-size: 14px; cursor: pointer; }

@media (max-width: 1199.98px) {
    .gg-grid > .gg-col { flex: 0 0 50%; max-width: 50%; }
    .gg-hero__title { font-size: 40px; }
    .gg-hero__art { width: 240px; height: 230px; }
    .gg-hero__moon { width: 200px; height: 200px; left: 16px; top: 22px; }
    .gg-hero__art img { width: 236px; }
}
@media (max-width: 991.98px) {
    .gg-hero { flex-direction: column-reverse; align-items: stretch; padding: 18px 20px 24px; min-height: 0; gap: 4px; }
    .gg-hero__art { width: 190px; height: 170px; margin: 0 auto; }
    .gg-hero__moon { width: 160px; height: 160px; left: 14px; top: 10px; }
    .gg-hero__art img { width: 186px; top: -8px; }
    .gg-hero__title { font-size: 32px; }
    .gg-hero__lead { font-size: 16px; margin-bottom: 18px; }
    .gg-hero__word { height: 24px; }
    .gg-h2 { font-size: 23px; }
    .gg-cards--int { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gg-cards--dev { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gg-card { padding: 8px 8px 12px; border-radius: 18px; }
    .gg-card__art { height: 130px; }
    .gg-card--dev .gg-card__art { height: 92px; }
    .gg-card__title { font-size: 15px; }
    .gg-card__count { top: 14px; right: 14px; }
    .gg-budgets { gap: 8px; }
    .gg-budget { padding: 12px 14px 12px 26px; font-size: 17px; }
    .gg-filters-open { display: inline-flex; }
    .gg-sort { margin-left: 0; }
    .gg-res__body { display: block; }
    .gg-filters {
        position: fixed; inset: 0; z-index: 100000; max-height: none; background: #fff; padding: 0 16px 90px;
        transform: translateX(-100%); transition: transform .2s; overflow: auto;
    }
    body.gg-filters-shown { overflow: hidden; }
    body.gg-filters-shown .gg-filters { transform: none; }
    .gg-f__head {
        position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 0; margin-bottom: 8px; border-bottom: 1.12px solid #E9ECEE;
    }
    .gg-f__close { display: block; border: 0; background: none; font-size: 30px; line-height: 1; padding: 0 4px; color: #3B3D40; }
    .gg-f__head b + .gg-f__close { margin-left: auto; }
    .gg-f__foot {
        display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px;
        background: #fff; border-top: 1.12px solid #E9ECEE;
    }
    .gg-f__foot .gg-btn { flex: 1 1 0; }
    .gg-grid > .gg-col { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575.98px) {
    .gg-hero__title { font-size: 28px; }
    .gg-hero__jump .gg-btn { flex: 1 1 auto; padding: 10px 12px; font-size: 14px; }
    .gg-card__art { height: 118px; }
}
