/* /gift-cards (pages/gift-cards.htm): the card and its face values, «Как это работает», «Условия», «Проверить карту».
   Cards, fields and buttons are login.css's (.lfl-*) */

.lfgc { width: 100%; max-width: 1100px; margin: 0 auto; padding: 9rem 16px 56px; }  /* below the fixed header, as /cart */
.lfgc .lfl-intro { margin: 8px 0 28px; }

/* the card and the form */
.lfgc-buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.lfgc-buy__visual { perspective: 1200px; }
.lfgc-buy__card {
    display: block; width: 100%; height: auto; border-radius: 18px;
    box-shadow: 0 24px 50px -18px rgba(17, 17, 17, .45), 0 2px 6px rgba(17, 17, 17, .12);
    transition: transform .5s ease;
}
.lfgc-buy__visual:hover .lfgc-buy__card { transform: rotateY(-4deg) rotateX(2deg); }
.lfgc-buy__form .lfl-card__body { gap: 14px; padding: 24px; }

.lfgc-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lfgc-values label { position: relative; margin: 0; cursor: pointer; }
.lfgc .lfgc-values input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lfgc-values span {
    display: flex; align-items: center; justify-content: center; height: 46px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 15px; white-space: nowrap; color: var(--ink);
    transition: border-color .2s, background .2s, color .2s;
}
.lfgc-values label:hover span { border-color: #d8d2c8; }
.lfgc-values input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.lfgc-values input:focus-visible + span { outline: 2px solid #b08d57; outline-offset: 2px; }   /* the keyboard sees it (2026-12-01; was a 12% shadow) */

.lfgc-buy__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.lfgc-buy__total span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lfgc-buy__total strong { font-size: 26px; font-weight: normal; }
.lfgc-buy__btn { width: 100%; }

.lfgc-facts { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.lfgc-facts li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.lfgc-facts li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* how it works */
.lfgc-steps { margin-top: 48px; }
.lfgc-h2 { margin: 0 0 18px; font-size: 20px; font-weight: normal; text-align: center; }
.lfgc-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: gc; }
.lfgc-steps li { counter-increment: gc; display: grid; gap: 6px; padding: 22px; border-radius: 10px; background: var(--soft); }
.lfgc-steps li::before {
    content: counter(gc); display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 6px; border: 1px solid var(--gold); border-radius: 50%; font-size: 14px; color: var(--gold);
}
.lfgc-steps b { font-weight: normal; font-size: 16px; }
.lfgc-steps span { font-size: 14px; line-height: 1.5; color: #555; }

/* conditions, check a card */
.lfgc-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.lfgc-bottom .lfl-card + .lfl-card { margin-top: 0; }
.lfgc-rules ul { display: grid; gap: 10px; margin: 0; padding: 0 0 0 18px; }
.lfgc-rules li { font-size: 14px; line-height: 1.5; }
.lfgc-check__form { display: grid; gap: 12px; }
.lfgc .lfgc-check__form input { text-transform: uppercase; }
.lfgc .lfgc-check__form input::placeholder { text-transform: none; }
.lfgc-check__form .lfl-btn { justify-self: start; }
.gc-check__result { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.gc-check__result strong { font-weight: normal; font-size: 16px; }
.gc-check__result span { color: var(--muted); }
.gc-check__result.is-ok { background: #f2f7f2; color: #1d6b35; }
.gc-check__result.is-off { background: #fdf6f6; color: var(--red); }
#gc-check-result:empty { display: none; }

@media (max-width: 991px) {
    .lfgc-buy { grid-template-columns: 1fr; gap: 20px; }
    .lfgc-buy__visual { max-width: 560px; width: 100%; margin: 0 auto; }
    .lfgc-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .lfgc { padding-top: calc(var(--lf-header-h, 70px) + 1.25rem); }
    .lfgc .lfl-intro { margin-bottom: 20px; }
    .lfgc-buy__card { border-radius: 12px; }
    .lfgc-buy__form .lfl-card__body { padding: 18px 16px; }
    .lfgc-values span { height: 44px; font-size: 14px; }
    .lfgc-steps { margin-top: 36px; }
    .lfgc-steps ol { grid-template-columns: 1fr; gap: 10px; }
    .lfgc-steps li { padding: 16px 18px; }
    .lfgc-check__form .lfl-btn { justify-self: stretch; }
}

/* The title as on /brands, /akcii and the catalogue (2026-12-01): 34px, centred, a thin gold line under it */
.lfgc .lfl-intro { display: grid; justify-items: center; gap: 10px; }
.lfgc .lfl-intro__title { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: .02em; color: #111; }
.lfgc .lfl-intro__title::after { content: ''; display: block; width: 40px; height: 1px; margin: 16px auto 0; background: #b08d57; }
@media (max-width: 767px) {
    .lfgc .lfl-intro__title { font-size: 26px; }
}
