/* The home page's main banner «Подарочные карты» (partials/home/gift-banner.htm), variants 1–3. The same box as the
   Rivoli Panther picture: 1380 × 540 on desktop */

.lfgb {
    --gold: #c4a066;
    position: relative; display: grid; align-items: center; overflow: hidden;
    width: 100%; aspect-ratio: 1380 / 540; min-height: 420px;
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif; color: #111; text-decoration: none;
}
.lfgb * { font-size: inherit; }   /* the theme sets «* { font-size: 20px }» */
.header_content:has(> .lfgb) { width: 100%; }   /* the section otherwise shrinks to its content (max-width 1380px stays) */
a.lfgb:hover, .lfgb a:hover { text-decoration: none; }
.lfgb__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.lfgb__eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.lfgb__title { margin-top: 14px; font-size: 50px; line-height: 1.12; font-weight: normal; }
.lfgb__lead { max-width: 440px; margin-top: 16px; font-size: 16px; line-height: 1.55; }
.lfgb__btn {
    display: inline-flex; align-items: center; justify-content: center; height: 50px; margin-top: 30px; padding: 0 36px;
    border-radius: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s;
}
.lfgb__cards { position: relative; height: 100%; }
.lfgb__card { position: absolute; display: block; height: auto; border-radius: 16px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

/* ---------- 1 · dark ---------- */
.lfgb--1 {
    grid-template-columns: 1fr 1.1fr; padding: 0 0 0 90px; color: #f5f1ea;
    background: radial-gradient(120% 140% at 85% 30%, #2a2622 0%, #141312 55%, #0d0c0b 100%);
}
.lfgb--1::before { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(196, 160, 102, .35); pointer-events: none; }
.lfgb--1 .lfgb__eyebrow { color: var(--gold); }
.lfgb--1 .lfgb__lead { color: #a59e93; }
.lfgb--1 .lfgb__btn { background: var(--gold); color: #111; }
.lfgb--1:hover .lfgb__btn { background: #d8b67c; }
.lfgb--1 .lfgb__card { width: 72%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(196, 160, 102, .25); }
.lfgb--1 .lfgb__card--back { left: 26%; top: 13%; transform: rotate(9deg); opacity: .9; }
.lfgb--1 .lfgb__card--front { left: 6%; top: 27%; transform: rotate(-7deg); }
.lfgb--1:hover .lfgb__card--back { transform: rotate(12deg) translate(14px, -10px); }
.lfgb--1:hover .lfgb__card--front { transform: rotate(-9deg) translate(-10px, -6px); }

/* ---------- 2 · light ---------- */
.lfgb--2 { grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 0 90px 0 70px; background: linear-gradient(105deg, #ece5da 0%, #f6f2ec 60%, #f9f7f3 100%); }
.lfgb--2 .lfgb__cards { display: flex; align-items: center; }
.lfgb--2 .lfgb__card { position: static; width: 100%; max-width: 600px; box-shadow: 0 34px 60px -26px rgba(40, 30, 15, .55); transform: rotate(-4deg); }
.lfgb--2 .lfgb__cards:hover .lfgb__card { transform: rotate(-2deg) translateY(-6px); }
.lfgb--2 .lfgb__eyebrow { color: #a2834f; }
.lfgb--2 .lfgb__title { color: #111; }
.lfgb--2 .lfgb__lead { color: #6f6a63; }
.lfgb__values { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin-top: 24px; }
.lfgb__values a {
    display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid #d9cfbf; border-radius: 18px;
    font-size: 14px; color: #111; background: rgba(255, 255, 255, .55); transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.lfgb__values a:hover { border-color: #111; background: #111; color: #fff; }
.lfgb--2 .lfgb__btn { margin-top: 26px; background: #111; color: #fff; }
.lfgb--2 .lfgb__btn:hover { background: #333; color: #fff; }

/* ---------- 3 · fan ---------- */
.lfgb--3 {
    grid-template-rows: auto 1fr; justify-items: center; padding: 46px 0 0; text-align: center;
    background:
        radial-gradient(60% 90% at 50% 110%, rgba(196, 160, 102, .22) 0%, rgba(196, 160, 102, 0) 70%),
        linear-gradient(180deg, #fbfaf8 0%, #f3eee6 100%);
}
.lfgb--3 .lfgb__text { align-items: center; }
.lfgb--3 .lfgb__eyebrow { color: #86663a; }
.lfgb--3 .lfgb__title { margin-top: 10px; font-size: 40px; }
.lfgb--3 .lfgb__btn { margin-top: 20px; background: #111; color: #fff; }
.lfgb--3:hover .lfgb__btn { background: #333; }
.lfgb--3 .lfgb__cards { width: 100%; }
.lfgb--3 .lfgb__card { width: 27%; box-shadow: 0 24px 46px -18px rgba(40, 30, 15, .55); }
.lfgb--3 .lfgb__card--c { left: 36.5%; top: 14%; z-index: 2; }
.lfgb--3 .lfgb__card--l { left: 8%; top: 20%; transform: rotate(-10deg); }
.lfgb--3 .lfgb__card--r { left: 65%; top: 20%; transform: rotate(10deg); }
.lfgb--3:hover .lfgb__card--c { transform: translateY(-12px); }
.lfgb--3:hover .lfgb__card--l { transform: rotate(-14deg) translate(-18px, 4px); }
.lfgb--3:hover .lfgb__card--r { transform: rotate(14deg) translate(18px, 4px); }

/* ---------- tablets ---------- */
@media (max-width: 1199px) {
    .lfgb { aspect-ratio: auto; min-height: 400px; }
    .lfgb--1 { padding-left: 56px; }
    .lfgb--2 { padding: 40px 48px; gap: 28px; }
    .lfgb__title { font-size: 40px; }
    .lfgb--3 { min-height: 480px; }
    .lfgb--3 .lfgb__title { font-size: 32px; }
}

/* ---------- phones: the text, the cards under it ---------- */
@media (max-width: 767px) {
    .lfgb { grid-template-columns: 1fr; min-height: 0; }
    .lfgb__title { margin-top: 10px; font-size: 30px; }
    .lfgb__lead { margin-top: 12px; font-size: 14px; }
    .lfgb__btn { height: 46px; margin-top: 22px; padding: 0 28px; }

    .lfgb--1 { padding: 40px 28px 0; }
    .lfgb--1::before { inset: 12px; }
    .lfgb--1 .lfgb__cards { height: 0; padding-bottom: 72%; margin: 6px -28px 0; }
    .lfgb--1 .lfgb__card { width: 66%; }
    .lfgb--1 .lfgb__card--back { left: 28%; top: 10%; }
    .lfgb--1 .lfgb__card--front { left: 8%; top: 24%; }

    .lfgb--2 { padding: 40px 20px 32px; gap: 34px; }
    .lfgb--2 .lfgb__cards { order: -1; padding: 0 12px; }
    .lfgb__values { gap: 6px; margin-top: 18px; }
    .lfgb__values a { height: 34px; padding: 0 13px; font-size: 13px; }
    .lfgb--2 .lfgb__btn { width: 100%; }

    .lfgb--3 { padding: 34px 20px 0; }
    .lfgb--3 .lfgb__title { font-size: 26px; }
    .lfgb--3 .lfgb__cards { height: 0; padding-bottom: 62%; margin: 8px -20px 0; width: calc(100% + 40px); }
    .lfgb--3 .lfgb__card { width: 40%; }
    .lfgb--3 .lfgb__card--c { left: 30%; top: 18%; }
    .lfgb--3 .lfgb__card--l { left: 1%; top: 26%; }
    .lfgb--3 .lfgb__card--r { left: 59%; top: 26%; z-index: 3; }   /* over the centre card: its face value is on the left */
}
