/* ==========================================================================
   All FWLR — Law Report design system
   Navy ink, oxblood and parchment; Cormorant Garamond for display,
   Source Serif 4 for reading, Inter for interface.
   ========================================================================== */

:root {
    --ink: #0f1b2d;
    --ink-2: #1a2a42;
    --ink-3: #2b3c57;
    --oxblood: #7a1f2b;
    --oxblood-2: #94283a;
    --gold: #b08d57;
    --gold-soft: #e9dcc3;
    --parchment: #f6f2e9;
    --parchment-2: #efe8d8;
    --paper: #ffffff;
    --rule: #e4dccb;
    --rule-2: #d6cbb3;
    --text: #1b2333;
    --muted: #5b6577;
    --muted-2: #8590a2;
    --success: #1f7a4d;
    --danger: #b3261e;
    --sc: #7a1f2b;
    --ca: #1f4e79;
    --fhc: #4d5b1f;

    --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --f-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
    --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, .35);
    --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-ui);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--oxblood); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--oxblood-2); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.005em;
}

p { margin: 0 0 1em; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.lr-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lr-container--narrow { max-width: 880px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography helpers ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--oxblood);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.section-head p { color: var(--muted); max-width: 560px; margin: 8px 0 0; }

.lead { font-family: var(--f-serif); font-size: 19px; line-height: 1.65; color: var(--muted); }

.rule-ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 0 0 18px; }
.rule-ornament::before, .rule-ornament::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }

/* ---------- Buttons ---------- */

.btn-lr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--f-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn-lr:active { transform: translateY(1px); }
.btn-lr[disabled], .btn-lr.is-loading { opacity: .6; pointer-events: none; }

.btn-primary-lr { background: var(--oxblood); color: #fff; }
.btn-primary-lr:hover { background: var(--oxblood-2); color: #fff; box-shadow: 0 8px 20px -8px rgba(122, 31, 43, .6); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }

.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c39f68; color: var(--ink); }

.btn-sm-lr { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}
.btn-icon:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Top bar & header ---------- */

.lr-topbar { background: var(--ink); color: #c9d1de; font-size: 12.5px; }
.lr-topbar .lr-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.lr-topbar a { color: #e6ebf3; }
.lr-topbar a:hover { color: var(--gold); }
.lr-topbar__left { display: flex; align-items: center; gap: 18px; }
.lr-topbar__right { display: flex; align-items: center; gap: 18px; }
.lr-topbar i { color: var(--gold); margin-right: 6px; }
.lr-sub-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 11.5px; }
.lr-sub-pill--on { background: rgba(46, 160, 103, .18); color: #9fe3bf; }
.lr-sub-pill--off { background: rgba(176, 141, 87, .18); color: var(--gold-soft); }
.lr-sub-pill--off:hover { color: #fff; }

.lr-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow .2s ease;
}
.lr-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(15, 27, 45, .35); }
.lr-header .lr-container { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.lr-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.lr-brand img { width: 132px; height: auto; }
.lr-brand__text { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--rule); }
.lr-brand__text strong { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.lr-brand__text span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.lr-nav { flex: 1; }
.lr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.lr-nav a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--ink-3); font-weight: 500; font-size: 14.5px; position: relative; white-space: nowrap;
}
.lr-nav a:hover { color: var(--ink); background: var(--parchment); }
.lr-nav a.is-active { color: var(--oxblood); }
.lr-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: var(--oxblood); border-radius: 2px; }

.lr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lr-search-trigger {
    display: inline-flex; align-items: center; gap: 10px;
    min-width: 220px; height: 40px; padding: 0 12px;
    border: 1px solid var(--rule); border-radius: var(--radius-sm);
    background: var(--parchment); color: var(--muted-2); font-size: 13.5px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.lr-search-trigger:hover { border-color: var(--rule-2); background: #fff; }
.lr-search-trigger kbd { margin-left: auto; font-family: var(--f-ui); font-size: 11px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; color: var(--muted); }

.lr-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--oxblood); color: #fff;
    font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.lr-badge[data-count="0"] { display: none; }

.lr-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ink); color: var(--gold-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 700; font-size: 18px;
    border: 2px solid var(--gold-soft);
}

.lr-menu-toggle { display: none; }
.lr-auth-btns { display: inline-flex; gap: 8px; }
.lr-hero .lr-container > *, .lr-layout > *, .lr-checkout > *, .lr-profile > *, .lr-split > * { min-width: 0; }

/* Mobile drawer */
.lr-drawer {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 1100;
    background: var(--paper); transform: translateX(100%); transition: transform .3s ease;
    display: flex; flex-direction: column; box-shadow: none; visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
}
.lr-drawer.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .3s ease; }
.lr-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.lr-drawer nav { padding: 12px; overflow-y: auto; }
.lr-drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.lr-drawer nav a i { width: 18px; color: var(--gold); }
.lr-drawer nav a:hover, .lr-drawer nav a.is-active { background: var(--parchment); color: var(--oxblood); }
.lr-drawer__foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }

.lr-overlay {
    position: fixed; inset: 0; z-index: 1050; background: rgba(8, 14, 26, .55);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.lr-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Flash / alerts ---------- */

.lr-flash-wrap { position: fixed; top: 16px; right: 16px; z-index: 1300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.lr-flash {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ink);
    border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow);
    font-size: 14px; animation: lr-slide-in .3s ease;
}
.lr-flash--success { border-left-color: var(--success); }
.lr-flash--error { border-left-color: var(--danger); }
.lr-flash--info { border-left-color: var(--gold); }
.lr-flash button { margin-left: auto; background: none; border: 0; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
@keyframes lr-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.lr-alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; margin-bottom: 18px; }
.lr-alert--error { background: #fbeceb; border-color: #f0c7c4; color: #7d1b15; }
.lr-alert--success { background: #e9f5ef; border-color: #bfe2cf; color: #14532d; }
.lr-alert--info { background: #f8f2e5; border-color: var(--gold-soft); color: #5c4520; }

/* ---------- Hero ---------- */

.lr-hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--ink) var(--hero-img, none) center / cover no-repeat;
    isolation: isolate;
}
.lr-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(10, 18, 32, .96) 0%, rgba(10, 18, 32, .88) 42%, rgba(10, 18, 32, .55) 100%),
        radial-gradient(1200px 400px at 0% 100%, rgba(122, 31, 43, .35), transparent 70%);
}
.lr-hero .lr-container { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.lr-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 66px); font-weight: 600; line-height: 1.04; margin-bottom: 20px; }
.lr-hero h1 em { font-style: italic; color: var(--gold-soft); }
.lr-hero .lead { color: #c4ccd9; max-width: 560px; margin-bottom: 30px; }

.lr-hero-search {
    display: flex; align-items: stretch; background: #fff; border-radius: var(--radius); padding: 6px;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); max-width: 620px;
}
.lr-hero-search i { align-self: center; color: var(--muted-2); margin: 0 6px 0 12px; }
.lr-hero-search input {
    flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; padding: 12px 8px; color: var(--text); background: transparent;
    font-family: var(--f-ui);
}
.lr-hero-search .btn-lr { min-height: 48px; padding: 0 22px; }

.lr-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.lr-hero__chips span { font-size: 12.5px; color: #93a0b4; margin-right: 4px; }
.lr-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); color: #e5eaf2; font-size: 12.5px; background: rgba(255, 255, 255, .04);
}
.lr-chip:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* "Current Part" index card in the hero */
.lr-issue {
    background: var(--parchment); color: var(--text); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
    border: 1px solid rgba(255, 255, 255, .2);
}
.lr-issue__head { background: var(--oxblood); color: #fff; padding: 18px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lr-issue__head small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f1d4d8; margin-bottom: 4px; }
.lr-issue__head strong { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1; }
.lr-issue__head time { font-size: 12.5px; color: #f1d4d8; white-space: nowrap; }
.lr-issue ol { list-style: none; margin: 0; padding: 8px 0; counter-reset: issue; }
.lr-issue li { counter-increment: issue; border-bottom: 1px dashed var(--rule); }
.lr-issue li:last-child { border-bottom: 0; }
.lr-issue li a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 22px; color: var(--ink); }
.lr-issue li a::before { content: counter(issue, upper-roman) "."; font-family: var(--f-display); color: var(--gold); font-weight: 700; font-size: 15px; }
.lr-issue li a:hover { background: #fff; }
.lr-issue li strong { font-family: var(--f-serif); font-weight: 600; font-size: 15px; display: block; line-height: 1.35; }
.lr-issue li small { color: var(--muted); font-size: 12px; }
.lr-issue__foot { padding: 14px 22px; background: var(--parchment-2); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ---------- Stats strip ---------- */

.lr-stats { background: var(--paper); border-bottom: 1px solid var(--rule); }
.lr-stats .lr-container { display: grid; grid-template-columns: repeat(4, 1fr); }
.lr-stat { padding: 28px 24px; border-right: 1px solid var(--rule); text-align: center; }
.lr-stat:last-child { border-right: 0; }
.lr-stat strong { display: block; font-family: var(--f-display); font-size: 40px; font-weight: 600; color: var(--ink); line-height: 1; }
.lr-stat span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */

.lr-section { padding: 88px 0; }
.lr-section--paper { background: var(--paper); }
.lr-section--tight { padding: 56px 0; }
.lr-section--ink { background: var(--ink); color: #c9d1de; }
.lr-section--ink h2, .lr-section--ink h3 { color: #fff; }

/* ---------- Page head (inner pages) ---------- */

.lr-page-head { background: var(--ink) var(--hero-img, none) center / cover; color: #fff; position: relative; isolation: isolate; }
.lr-page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 32, .96), rgba(10, 18, 32, .78)); }
.lr-page-head .lr-container { padding-top: 52px; padding-bottom: 52px; }
.lr-page-head h1 { color: #fff; font-size: clamp(34px, 4.6vw, 52px); margin: 0; }
.lr-page-head p { color: #b8c2d2; margin: 12px 0 0; max-width: 640px; font-family: var(--f-serif); font-size: 17px; }
.lr-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; font-size: 12.5px; color: #93a0b4; }
.lr-crumbs li + li::before { content: "/"; margin-right: 8px; color: #5d6b82; }
.lr-crumbs a { color: #d2d9e4; }
.lr-crumbs a:hover { color: var(--gold); }

/* ---------- Court badges ---------- */

.court-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 4px; background: #eef1f6; color: var(--ink-3);
}
.court-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.court-badge--sc { background: #f7e9eb; color: var(--sc); }
.court-badge--ca { background: #e8eff7; color: var(--ca); }
.court-badge--fhc { background: #eef1e3; color: var(--fhc); }

/* ---------- Case card ---------- */

.lr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.lr-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 24px 24px 20px; height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lr-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; opacity: 0; transition: opacity .2s ease; }
.lr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-2); }
.lr-card:hover::before { opacity: 1; }
.lr-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lr-card__part { font-size: 12px; color: var(--muted); font-weight: 600; }
.lr-card__part:hover { color: var(--oxblood); }
.lr-card__title { font-family: var(--f-serif); font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
.lr-card__title a { color: var(--ink); }
.lr-card__title a:hover { color: var(--oxblood); }
.lr-card__cite { font-family: var(--f-serif); font-style: italic; color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.lr-card__suit { font-size: 12.5px; color: var(--muted-2); margin: 0; }
.lr-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--rule); margin-top: 18px; }
.lr-card__price { font-weight: 700; color: var(--ink); margin-right: auto; font-size: 15px; }
.lr-card__price small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted-2); }
.lr-card__owned { font-size: 12px; font-weight: 600; color: var(--success); margin-right: auto; display: inline-flex; gap: 6px; align-items: center; }

.cart-toggle.is-in { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Case list (index view) ---------- */

.lr-list { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.lr-row {
    display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--rule); transition: background .15s ease;
}
.lr-row:last-child { border-bottom: 0; }
.lr-row:hover { background: #fdfbf6; }
.lr-row__title { font-family: var(--f-serif); font-size: 18px; font-weight: 600; margin: 6px 0 4px; line-height: 1.35; }
.lr-row__title a { color: var(--ink); }
.lr-row__title a:hover { color: var(--oxblood); }
.lr-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lr-row__meta .cite { font-family: var(--f-serif); font-style: italic; }
.lr-row__snippet { margin: 10px 0 0; font-family: var(--f-serif); font-size: 15px; color: var(--muted); line-height: 1.6; }
.lr-row__snippet mark { background: #f6e7b8; color: var(--ink); padding: 0 2px; border-radius: 2px; }
.lr-row__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Toolbar / filters ---------- */

.lr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lr-tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 4px; gap: 2px; }
.lr-tabs a { padding: 7px 14px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.lr-tabs a:hover { color: var(--ink); }
.lr-tabs a.is-active { background: var(--ink); color: #fff; }
.lr-count { font-size: 13.5px; color: var(--muted); }
.lr-count strong { color: var(--ink); }

.lr-inline-form { display: flex; gap: 8px; }
.lr-inline-form input {
    height: 40px; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 0 12px; font-size: 14px; background: var(--paper); min-width: 0; width: 160px;
}
.lr-inline-form input:focus { outline: none; border-color: var(--ink); }

.lr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.lr-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.lr-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.lr-panel h3 { font-size: 22px; margin-bottom: 14px; }
.lr-panel--ink { background: var(--ink); border-color: var(--ink); color: #c9d1de; }
.lr-panel--ink h3 { color: #fff; }

.lr-parts { list-style: none; margin: 0; padding: 0; }
.lr-parts li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--rule); color: var(--ink); font-size: 14px; }
.lr-parts li:last-child a { border-bottom: 0; }
.lr-parts li a:hover { color: var(--oxblood); }
.lr-parts small { color: var(--muted-2); font-size: 12px; }

/* ---------- Pagination ---------- */

.lr-pager { margin-top: 32px; }
.lr-pager ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.lr-pager a, .lr-pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500;
}
.lr-pager a:hover { border-color: var(--ink); }
.lr-pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lr-pager .gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* ---------- Empty state ---------- */

.lr-empty { text-align: center; padding: 56px 24px; background: var(--paper); border: 1px dashed var(--rule-2); border-radius: var(--radius); }
.lr-empty i { font-size: 32px; color: var(--gold); margin-bottom: 14px; display: block; }
.lr-empty h3 { font-size: 26px; }
.lr-empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }

/* ---------- Features ---------- */

.lr-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.lr-feature { padding: 36px 32px; border-right: 1px solid var(--rule); }
.lr-feature:last-child { border-right: 0; }
.lr-feature__icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--parchment); color: var(--oxblood); font-size: 20px; margin-bottom: 18px; border: 1px solid var(--rule); }
.lr-feature h3 { font-size: 26px; margin-bottom: 10px; }
.lr-feature p { color: var(--muted); margin-bottom: 16px; }
.lr-link-arrow { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.lr-link-arrow i { transition: transform .15s ease; }
.lr-link-arrow:hover i { transform: translateX(3px); }

/* ---------- Editorial split ---------- */

.lr-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.lr-figure { position: relative; }
.lr-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.lr-figure__card {
    position: absolute; right: -24px; bottom: 32px; background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); max-width: 240px;
}
.lr-figure__card strong { font-family: var(--f-display); font-size: 36px; color: var(--oxblood); display: block; line-height: 1; }
.lr-figure__card span { font-size: 13px; color: var(--muted); }
.lr-quote { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); font-style: italic; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 22px; margin: 26px 0; }
.lr-sig { display: flex; align-items: center; gap: 14px; }
.lr-sig strong { display: block; color: var(--ink); }
.lr-sig span { font-size: 13px; color: var(--muted); }

/* ---------- Pricing ---------- */

.lr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.lr-plan {
    position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 34px 30px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.lr-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lr-plan--featured { background: var(--ink); border-color: var(--ink); color: #c9d1de; box-shadow: var(--shadow-lg); }
.lr-plan--featured h3, .lr-plan--featured .lr-plan__price strong { color: #fff; }
.lr-plan__tag { position: absolute; top: -12px; left: 30px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.lr-plan h3 { font-size: 28px; margin-bottom: 4px; }
.lr-plan__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.lr-plan--featured .lr-plan__sub { color: #93a0b4; }
.lr-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.lr-plan--featured .lr-plan__price { border-color: rgba(255, 255, 255, .12); }
.lr-plan__price strong { font-family: var(--f-display); font-size: 52px; font-weight: 600; color: var(--ink); line-height: 1; }
.lr-plan__price span { color: var(--muted); font-size: 14px; }
.lr-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.lr-plan li { display: flex; gap: 10px; font-size: 14.5px; }
.lr-plan li i { color: var(--gold); margin-top: 4px; }
.lr-plan form { margin-top: auto; }

/* ---------- Case detail ---------- */

.lr-case-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.lr-case-head .lr-container { padding-top: 36px; padding-bottom: 36px; }
.lr-case-head .lr-crumbs { color: var(--muted-2); }
.lr-case-head .lr-crumbs a { color: var(--muted); }
.lr-case-head .lr-crumbs li + li::before { color: var(--rule-2); }
.lr-case-head h1 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; margin: 14px 0 12px; max-width: 900px; }
.lr-case-head__cite { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.lr-case-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.lr-case-facts div span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.lr-case-facts div strong { color: var(--ink); font-weight: 600; }

.lr-judgment {
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 44px 52px; font-family: var(--f-serif); font-size: 17px; line-height: 1.8; color: #262d3b;
    position: relative;
}
.lr-judgment__label { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.lr-judgment__label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lr-judgment p { margin-bottom: 1em; }
.lr-judgment strong { color: var(--ink); }
.lr-judgment .ql-align-center { text-align: center; }
.lr-judgment .ql-align-right { text-align: right; }
.lr-judgment .ql-align-justify { text-align: justify; }
.lr-judgment--locked { max-height: 760px; overflow: hidden; }
.lr-judgment--locked::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 80%); border-radius: 0 0 var(--radius) var(--radius); }

.lr-paywall { margin-top: -40px; position: relative; z-index: 2; background: var(--ink); color: #c9d1de; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow-lg); }
.lr-paywall h3 { color: #fff; font-size: 30px; }
.lr-paywall p { max-width: 520px; margin: 0 auto 22px; }
.lr-paywall__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.lr-viewer { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.lr-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--parchment); font-size: 13.5px; }
.lr-viewer iframe { display: block; width: 100%; height: 82vh; min-height: 560px; border: 0; background: #e9e5dc; }

.lr-access { text-align: left; }
.lr-access__price { font-family: var(--f-display); font-size: 40px; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.lr-access__note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.lr-access .btn-lr + .btn-lr, .lr-access form + form, .lr-access form + .btn-lr { margin-top: 10px; }
.lr-access__or { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 12px; margin: 16px 0; text-transform: uppercase; letter-spacing: .1em; }
.lr-access__or::before, .lr-access__or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lr-access .cart-toggle { width: 100%; min-height: 44px; margin-top: 10px; }
.lr-owned { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: #e9f5ef; color: #14532d; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.lr-cite-box { font-family: var(--f-serif); background: var(--parchment); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-bottom: 10px; }

/* ---------- Forms / auth ---------- */

.lr-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); background: var(--paper); }
.lr-auth__art { position: relative; background: var(--ink) var(--hero-img, none) center / cover; color: #fff; display: flex; align-items: flex-end; padding: 56px; isolation: isolate; }
.lr-auth__art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 32, .3), rgba(10, 18, 32, .92)); }
.lr-auth__art blockquote { font-family: var(--f-display); font-size: 30px; font-style: italic; line-height: 1.3; margin: 0 0 14px; max-width: 480px; }
.lr-auth__art cite { font-style: normal; color: var(--gold-soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lr-auth__form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.lr-auth__box { width: 100%; max-width: 420px; }
.lr-auth__box h1 { font-size: 42px; margin-bottom: 6px; }
.lr-auth__box > p { color: var(--muted); margin-bottom: 28px; }

.lr-field { margin-bottom: 18px; }
.lr-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.lr-field input, .lr-field select, .lr-field textarea {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--f-ui); color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.lr-field textarea { height: auto; padding: 12px 14px; min-height: 120px; }
.lr-field input:focus, .lr-field select:focus, .lr-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); }
.lr-field.has-error input { border-color: var(--danger); }
.lr-field__error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.lr-field__hint { color: var(--muted-2); font-size: 12.5px; margin-top: 6px; }
.lr-password { position: relative; }
.lr-password button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; }
.lr-auth__alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.lr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Checkout (cart & subscription) ---------- */

.lr-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.lr-line { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.lr-line:last-child { border-bottom: 0; }
.lr-line__icon { width: 52px; height: 64px; border-radius: 4px; background: linear-gradient(160deg, var(--oxblood), #4d1019); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 13px; text-align: center; line-height: 1.1; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .25); }
.lr-line__title { font-family: var(--f-serif); font-weight: 600; font-size: 16.5px; color: var(--ink); line-height: 1.35; }
.lr-line__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lr-line__price { font-weight: 700; color: var(--ink); }
.lr-line__remove { background: none; border: 0; color: var(--muted-2); padding: 8px; border-radius: 4px; cursor: pointer; }
.lr-line__remove:hover { color: var(--danger); background: #fbeceb; }

.lr-summary h3 { font-size: 24px; }
.lr-summary dl { margin: 0 0 18px; }
.lr-summary dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px; }
.lr-summary dt { font-weight: 400; color: var(--muted); }
.lr-summary dd { margin: 0; font-weight: 600; color: var(--ink); }
.lr-summary .total { border-bottom: 0; padding-top: 16px; }
.lr-summary .total dt { color: var(--ink); font-weight: 600; }
.lr-summary .total dd { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.lr-secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.lr-secure i { color: var(--success); }

/* Receipt */
.lr-receipt { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 620px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow); }
.lr-receipt__head { background: var(--ink); color: #fff; padding: 32px; text-align: center; }
.lr-receipt__head i { width: 56px; height: 56px; border-radius: 50%; background: rgba(46, 160, 103, .2); color: #9fe3bf; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.lr-receipt__head h1 { color: #fff; font-size: 34px; margin-bottom: 4px; }
.lr-receipt__head p { color: #b8c2d2; margin: 0; }
.lr-receipt dl { margin: 0; padding: 18px 32px; }
.lr-receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px; }
.lr-receipt dl div:last-child { border-bottom: 0; }
.lr-receipt dt { color: var(--muted); font-weight: 400; }
.lr-receipt dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.lr-receipt__foot { padding: 22px 32px 32px; text-align: center; border-top: 1px solid var(--rule); background: var(--parchment); }

/* ---------- Profile ---------- */

.lr-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.lr-profile__card { text-align: center; }
.lr-profile__card .lr-avatar { width: 84px; height: 84px; font-size: 36px; margin: 0 auto 14px; }
.lr-profile__card h2 { font-size: 28px; margin-bottom: 4px; }
.lr-profile__meta { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--rule); text-align: left; display: grid; gap: 10px; font-size: 14px; }
.lr-profile__meta i { color: var(--gold); width: 18px; }
.lr-profile__meta li { word-break: break-word; }
.lr-subcard { border-radius: var(--radius); padding: 22px; color: #fff; background: linear-gradient(135deg, var(--ink), var(--ink-3)); position: relative; overflow: hidden; }
.lr-subcard::after { content: "§"; position: absolute; right: 18px; bottom: -28px; font-family: var(--f-display); font-size: 140px; color: rgba(255, 255, 255, .06); line-height: 1; }
.lr-subcard small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.lr-subcard strong { font-family: var(--f-display); font-size: 28px; font-weight: 600; display: block; }
.lr-subcard p { color: #b8c2d2; margin: 4px 0 16px; font-size: 13.5px; }

/* ---------- Contact ---------- */

.lr-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lr-contact .lr-panel { text-align: left; }
.lr-contact .lr-panel i { font-size: 22px; color: var(--oxblood); margin-bottom: 14px; display: inline-block; }
.lr-contact .lr-panel h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- CTA band ---------- */

.lr-cta { position: relative; isolation: isolate; color: #fff; background: var(--ink) var(--hero-img, none) center / cover; }
.lr-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(122, 31, 43, .94), rgba(15, 27, 45, .9)); }
.lr-cta .lr-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.lr-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 8px; }
.lr-cta p { color: #ead7da; margin: 0; max-width: 560px; }
.lr-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.lr-footer { background: #0a1322; color: #93a0b4; font-size: 14px; }
.lr-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.lr-footer h4 { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.lr-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lr-footer a { color: #c4ccd9; }
.lr-footer a:hover { color: var(--gold); }
.lr-footer__brand img { width: 140px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.lr-footer__brand p { line-height: 1.7; max-width: 320px; }
.lr-footer__contact li { display: flex; gap: 12px; }
.lr-footer__contact i { color: var(--gold); width: 16px; margin-top: 4px; }
.lr-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.lr-footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #24324a; display: inline-flex; align-items: center; justify-content: center; color: #c4ccd9; }
.lr-footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.lr-footer__bottom { border-top: 1px solid #1a263a; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Slide-in panels (search & headnote) ---------- */

.lr-sheet {
    position: fixed; top: 0; right: 0; z-index: 1200; height: 100%; width: min(640px, 100vw);
    background: var(--parchment); box-shadow: none; transform: translateX(102%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    display: flex; flex-direction: column;
}
.lr-sheet.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .3s ease; }
.lr-sheet__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.lr-sheet__head h2 { font-size: 24px; margin: 0; flex: 1; }
.lr-sheet__body { padding: 22px; overflow-y: auto; flex: 1; }
.lr-sheet__search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); padding: 0 14px; height: 52px; margin-bottom: 18px; }
.lr-sheet__search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); }
.lr-sheet__search input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; min-width: 0; }
.lr-sheet__search i { color: var(--muted-2); }
.lr-recent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.lr-recent__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-right: 4px; }
.lr-recent button { border: 1px solid var(--rule-2); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--ink); }
.lr-recent button:hover { border-color: var(--ink); }
.lr-recent .clear { border: 0; background: none; color: var(--oxblood); font-size: 12px; padding: 0 4px; }
.lr-search-result { display: block; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; color: var(--text); }
.lr-search-result:hover { border-color: var(--ink); color: var(--text); }
.lr-search-result strong { display: block; font-family: var(--f-serif); font-size: 16.5px; color: var(--ink); margin: 6px 0 4px; line-height: 1.35; }
.lr-search-result .cite { font-family: var(--f-serif); font-style: italic; font-size: 13px; color: var(--muted); }
.lr-search-result p { font-family: var(--f-serif); font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.lr-search-result mark { background: #f6e7b8; padding: 0 2px; }
.lr-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 10px 2px; }
.lr-spinner { width: 18px; height: 18px; border: 2px solid var(--rule-2); border-top-color: var(--oxblood); border-radius: 50%; animation: lr-spin .8s linear infinite; }
@keyframes lr-spin { to { transform: rotate(360deg); } }

.lr-headnote .lr-sheet__body { font-family: var(--f-serif); font-size: 16px; line-height: 1.75; background: #fff; }
.lr-headnote .ql-align-center { text-align: center; }
.lr-headnote .lr-sheet__foot { padding: 16px 22px; border-top: 1px solid var(--rule); background: var(--paper); display: flex; gap: 10px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .lr-search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
    .lr-search-trigger span, .lr-search-trigger kbd { display: none; }
    .lr-brand__text { display: none; }
    .lr-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .lr-nav { display: none; }
    .lr-menu-toggle { display: inline-flex; }
    .lr-actions { margin-left: auto; }
    .lr-actions .lr-auth-btns { display: none; }
    .lr-hero .lr-container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 40px; }
    .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lr-features { grid-template-columns: 1fr; }
    .lr-feature { border-right: 0; border-bottom: 1px solid var(--rule); }
    .lr-feature:last-child { border-bottom: 0; }
    .lr-split { grid-template-columns: 1fr; gap: 40px; }
    .lr-figure__card { right: 16px; }
    .lr-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .lr-layout, .lr-checkout, .lr-profile { grid-template-columns: 1fr; }
    .lr-aside { position: static; }
    .lr-auth { grid-template-columns: 1fr; }
    .lr-auth__art { display: none; }
    .lr-contact { grid-template-columns: 1fr; }
    .lr-stats .lr-container { grid-template-columns: repeat(2, 1fr); }
    .lr-stat:nth-child(2) { border-right: 0; }
    .lr-stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
    .lr-judgment { padding: 32px 28px; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    body { font-size: 14.5px; }
    .lr-container { padding: 0 16px; }
    .lr-topbar__left .hide-sm { display: none; }
    .lr-topbar .lr-container { justify-content: center; }
    .lr-topbar__left { display: none; }
    .lr-brand img { width: 112px; }
    .lr-section { padding: 60px 0; }
    .lr-grid, .lr-grid--2 { grid-template-columns: 1fr; }
    .lr-hero-search { flex-wrap: wrap; }
    .lr-hero-search input { flex-basis: calc(100% - 40px); }
    .lr-hero-search .btn-lr { width: 100%; }
    .lr-row { grid-template-columns: 1fr; padding: 18px; }
    .lr-row__actions { justify-content: flex-start; }
    .lr-line { grid-template-columns: 44px 1fr auto; padding: 16px; }
    .lr-line__icon { width: 44px; height: 56px; }
    .lr-line__price { grid-column: 2; }
    .lr-judgment { padding: 24px 18px; font-size: 16px; }
    .lr-footer__top { grid-template-columns: 1fr; padding-top: 52px; }
    .lr-stat strong { font-size: 32px; }
    .lr-cta .lr-container { padding-top: 48px; padding-bottom: 48px; }
    .lr-receipt dl, .lr-receipt__foot { padding-left: 20px; padding-right: 20px; }
    .lr-auth__form { padding: 36px 16px; }
}
