/* «Для неё» on the home page (partials/home/for-her): «Сплит» on a computer, «Обложка» with pills on a phone */

.lffh {
    --ink: #111; --muted: #8c8c8c; --line: #e9e6e1; --gold: #b08d57;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start;
    max-width: 1100px; margin: 72px auto; padding: 0 16px; color: var(--ink);
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
}
.lffh * { font-size: inherit; box-sizing: border-box; }   /* the theme sets «* { font-size: 20px }» */
.lffh a { color: inherit; text-decoration: none; }
.lffh a:hover { color: inherit; text-decoration: none; }
.lffh a:focus-visible, .lffh button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lffh .cat-icon { display: block; width: 100%; height: 100%; }

/* the photo (stays on screen on a computer) */
.lffh-photo { position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; }
.lffh-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.lffh-photo__title { display: none; }   /* the phone's title over the photo */

/* the title «Центр» on the left edge, the tabs, the list */
.lffh-body { padding-top: 12px; }
.lffh-title { margin: 0; font-size: 34px; font-weight: normal; letter-spacing: .02em; line-height: 1.15; }
.lffh-line { display: block; width: 40px; height: 1px; margin-top: 16px; background: var(--gold); }
.lffh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.lffh-tab {
    min-height: 42px; padding: 0 22px; border: 1px solid var(--line); border-radius: 21px; background: #fff;
    font-family: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.lffh-tab:hover { border-color: var(--ink); }
.lffh-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lffh-panel[hidden] { display: none; }

.lffh-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid var(--ink); }
.lffh-links a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lffh-links__title { flex: 1; }
.lffh-links__icon { display: none; }   /* the icons are the phone's pills */
.lffh-links a i { font-style: normal; color: var(--muted); transition: transform .25s, color .2s; }
.lffh-links a:hover i { color: var(--gold); transform: translateX(4px); }
.lffh-all { display: inline-block; margin-top: 24px; font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid var(--gold); }
.lffh-all i { font-style: normal; color: var(--gold); }

/* tablets: the photo above */
@media (max-width: 991px) {
    .lffh { grid-template-columns: 1fr; gap: 24px; }
    .lffh-photo { position: relative; top: auto; aspect-ratio: 16 / 9; }   /* relative: the phone title sits over it */
}

/* phones: «Обложка» — «Для неё» over the photo, the tabs and the sections as centred pills */
@media (max-width: 767px) {
    .lffh { gap: 0; margin: 48px auto; }
    .lffh-photo { aspect-ratio: 4 / 3; }
    .lffh-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
    .lffh-photo__title { display: block; position: absolute; left: 20px; bottom: 18px; z-index: 1; font-size: 30px; letter-spacing: .03em; color: #fff; }
    .lffh-body { padding-top: 0; text-align: center; }
    .lffh-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* read out, shown over the photo */
    .lffh-line { display: none; }
    .lffh-tabs { justify-content: center; margin: 22px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }   /* a line between the tabs and the sections, black as the computer's line above the sections (2026-12-02) */
    .lffh-tab { padding: 0 16px; font-size: 12px; }
    .lffh-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border-top: 0; }
    .lffh-links a {
        gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
        font-size: 13px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
    }
    .lffh-links__icon { display: block; flex: none; width: 22px; height: 22px; margin-left: -4px; color: var(--gold); }
    .lffh-links a i { display: none; }
    .lffh .lffh-links a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
    .lffh-links a:hover .lffh-links__icon { color: #fff; }
}

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

/* «Для неё» / «Для него» on white cards, as the articles, the promotions, the brands and the product (2026-12-02: the
   site's background is grey #f9f9f9). A layer behind the block, a little wider than it; 68px between the cards and the
   blocks around them (home-magazine.css does the same for «Журнал») */
.lffh { position: relative; z-index: 0; margin-top: 100px; margin-bottom: 100px; }
.lffh::before {
    content: ''; position: absolute; z-index: -1; top: -32px; right: -24px; bottom: -32px; left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
.lffh--him { margin-top: 132px; }
@media (max-width: 1147px) { .lffh { padding: 0 28px; } .lffh::before { right: 8px; left: 8px; } }   /* no room beside it: 8px off the screen's edges */
@media (max-width: 767px) {
    .lffh { margin-top: 56px; margin-bottom: 56px; padding: 0 16px; }
    .lffh--him { margin-top: 88px; }
    .lffh::before { top: -12px; right: 8px; bottom: -20px; left: 8px; }
    .lffh-photo { margin: 0 4px; }
}
