/* /akcii (pages/akcii.htm), design «Лента»: each promotion as a row, the banner on one side and its terms on the other.
   The banners carry their own text and a drawn «Подробнее» button: they are always shown whole, never cropped */

.lfp {
    --ink: #111; --muted: #6f6f6f; --line: #e9e6e1; --soft: #f7f5f2; --gold: #b08d57;
    max-width: 1100px; margin: 0 auto; padding: 168px 16px 72px; color: var(--ink);   /* the title ~32px under the fixed header */
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
}
.lfp * { font-size: inherit; box-sizing: border-box; }   /* the theme sets «* { font-size: 20px }» */
.lfp a { color: inherit; text-decoration: none; }
.lfp a:hover { color: inherit; text-decoration: none; }
.lfp a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lfp ul { margin: 0; padding: 0; list-style: none; }
.lfp img { display: block; width: 100%; height: auto; }

.lfp-head { display: grid; justify-items: center; gap: 10px; margin: 0 auto 44px; text-align: center; }
.lfp-title { margin: 0; font-size: 34px; font-weight: normal; letter-spacing: .02em; line-height: 1.15; }
.lfp-line { width: 40px; height: 1px; margin-top: 6px; background: var(--gold); }   /* as the catalog title (category-head.css) */
.lfp-text { margin: 0; font-size: 14px; line-height: 1.65; color: #555; }
.lfp-empty { padding: 48px 0; text-align: center; font-size: 15px; color: var(--muted); }
.lfp-btn {
    display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 46px; padding: 0 28px;
    border: 1px solid var(--ink); border-radius: 23px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    transition: background .2s, color .2s;
}
.lfp .lfp-btn:hover { background: var(--ink); color: #fff; }

/* the promotions */
.lfp-rows { display: grid; gap: 64px; }
.lfp-rows > .lfp-row { display: grid;   /* stronger than the theme's «li:nth-child(n+1) { display: block }» (desktop.css) */ grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.lfp-row:nth-child(even) .lfp-row__img { order: 2; }
.lfp-row__img { display: block; overflow: hidden; border-radius: 6px; background: var(--soft); }
.lfp-row__img img { transition: transform .6s ease; }
.lfp-row__img:hover img { transform: scale(1.02); }
.lfp-row__body { display: grid; gap: 16px; }
.lfp-num { font-size: 13px; letter-spacing: .14em; color: #86663a; }
.lfp-row__title { margin: 0; font-size: 26px; font-weight: normal; line-height: 1.25; }
.lfp-row__title a:hover { color: var(--gold); }

/* a band to the sale items */
.lfp-sale {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; margin-top: 56px; padding: 28px 32px;
    border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s;
}
.lfp-sale span { font-size: 20px; }
.lfp-sale small { grid-row: 2; font-size: 14px; color: var(--muted); }
.lfp-sale i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 22px; color: var(--gold); transition: transform .25s; }
.lfp .lfp-sale:hover { border-color: var(--ink); }
.lfp-sale:hover i { transform: translateX(6px); }

/* phones: the banner above its terms */
@media (max-width: 767px) {
    .lfp { padding: 88px 16px 56px; }   /* the header is 57px tall on phones */
    .lfp-head { margin-bottom: 28px; }
    .lfp-title { font-size: 28px; }
    .lfp-rows { gap: 44px; }
    .lfp-rows > .lfp-row { grid-template-columns: 1fr; gap: 20px; }
    .lfp-row:nth-child(even) .lfp-row__img { order: 0; }
    .lfp-row__title { font-size: 22px; }
    .lfp-sale { margin-top: 40px; padding: 22px 20px; }
    .lfp-sale span { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .lfp * { transition: none !important; }
}

/* The list on a white card, as a promotion's page (promo-page.css) and the product page, 2026-12-02: the site's
   background is grey #f9f9f9. A layer behind the content, from the title to the sale band, a little wider than it */
.lfp { position: relative; z-index: 0; padding-top: 188px; }   /* 20px more: a gap between the header and the card */
.lfp::before {
    content: ''; position: absolute; z-index: -1; top: 160px; right: -24px; bottom: 44px; left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
@media (max-width: 1151px) { .lfp::before { right: 0; left: 0; } }   /* no room beside it: within the page's 16px */
@media (max-width: 767px) {
    .lfp { padding: 100px 20px 56px; }   /* the header is 57px: the card 19px under it */
    .lfp::before { top: 76px; right: 8px; bottom: 32px; left: 8px; }
}
