/* LinearFiles homepage - standalone styles (does not depend on bootstrap/dashboard.css) */
:root {
    --gold: #ffc20e;
    --gold-dark: #f0a900;
    --gold-text: #f5b300;
    --ink: #0b1020;
    --text: #3a4356;
    --muted: #667085;
    --line: #ebedf2;
    --lav: #6c5ce7;
    --red: #ef4444;
    --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.lf {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fffdf8;
    -webkit-font-smoothing: antialiased;
}

.lf a { color: inherit; text-decoration: none; }
.lf button, .lf input, .lf textarea { font-family: inherit; }
.lf [hidden] { display: none !important; }

.lf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-fill { fill: currentColor; stroke: none; }

.lf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.lf-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
    padding: 0 clamp(16px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.lf-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); justify-self: start; white-space: nowrap; }
.lf-logo img { display: block; height: 46px; width: auto; max-width: 100%; }
.lf-logo b { color: var(--gold-text); font-weight: 800; }
.lf-nav { display: flex; gap: 44px; font-size: 14px; font-weight: 500; color: #2a3244; }
.lf-nav a { padding: 8px 2px; transition: color 0.15s; }
.lf-nav a:hover { color: var(--gold-dark); }

/* ---------- Hero ---------- */
.lf-hero {
    position: relative;
    flex: 1 0 auto;
    overflow: hidden;
    padding: 34px 16px 54px;
    text-align: center;
    background:
        radial-gradient(circle 190px at 100% 6%, #ece6fb 0, #ece6fb 99%, transparent 100%),
        radial-gradient(circle 320px at -2% 78%, #fff0c0 0, #fff3cc 70%, transparent 100%),
        radial-gradient(circle 300px at 103% 88%, #fff1c4 0, #fff6da 70%, transparent 100%),
        linear-gradient(180deg, #fffdf9 0%, #fffcf3 100%);
}
.lf-hero > * { position: relative; z-index: 2; }
.lf-hero > .lf-deco { position: absolute; z-index: 1; pointer-events: none; }

.lf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fdecc2;
    color: #4a3a12;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    box-shadow: 0 6px 18px -10px rgba(240, 169, 0, 0.8);
}
.lf-badge .ico { color: var(--gold-dark); font-size: 15px; }

.lf-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(2.1rem, 6.3vw, 3.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.lf-hero h1 span { color: var(--gold-text); }
.lf-sub { margin: 0 auto; max-width: 640px; font-size: clamp(1rem, 2.3vw, 1.16rem); line-height: 1.45; color: var(--text); font-weight: 500; }

/* Decorative background */
.lf-swirl-l { left: -140px; top: 150px; width: 520px; height: 330px; }
.lf-swirl-r { right: -150px; top: 110px; width: 520px; height: 400px; }
.lf-dots { width: 70px; height: 44px; background-image: radial-gradient(circle, #e8c75c 1.4px, transparent 1.6px); background-size: 11px 11px; opacity: 0.8; }
.lf-dots.d1 { left: calc(50% - 590px); top: 258px; }
.lf-dots.d2 { left: calc(50% + 506px); top: 62px; }
.lf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.lf-dot.p1 { left: calc(50% - 545px); top: 78px; }
.lf-dot.p2 { left: calc(50% + 344px); top: 142px; width: 8px; height: 8px; background: #ffc20e; }
.lf-dot.p3 { left: calc(50% + 513px); top: 242px; width: 8px; height: 8px; }
.lf-dash { width: 14px; height: 3px; border-radius: 3px; background: #a99bf0; }
.lf-dash.s1 { left: calc(50% - 350px); top: 152px; transform: rotate(-40deg); width: 10px; }
.lf-dash.s2 { left: calc(50% + 390px); top: 222px; transform: rotate(45deg); }

/* Floating file cards */
.lf-file {
    position: absolute;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 22px 40px -18px rgba(20, 20, 60, 0.28), 0 2px 8px rgba(20, 20, 60, 0.05);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
}
.lf-file .big { width: 52px; height: 52px; }
.lf-file.pdf { left: calc(50% - 492px); top: 78px; width: 108px; height: 112px; transform: rotate(-9deg); }
.lf-file.zip { left: calc(50% + 380px); top: 90px; width: 112px; height: 114px; transform: rotate(14deg); }
.lf-file.jpg { left: calc(50% - 540px); top: 246px; width: 92px; height: 94px; transform: rotate(-9deg); font-size: 13px; }
.lf-file.jpg .big { width: 42px; height: 42px; }
.lf-file.doc { left: calc(50% + 498px); top: 262px; width: 72px; height: 76px; transform: rotate(8deg); background: rgba(255, 255, 255, 0.7); box-shadow: 0 14px 28px -16px rgba(20, 20, 60, 0.2); }
.lf-file.doc .big { width: 34px; height: 34px; }
@media (min-width: 1000px) { .lf-file.pdf, .lf-file.zip { display: flex; } }
@media (min-width: 1180px) { .lf-file.jpg, .lf-file.doc { display: flex; } }

/* ---------- Main grid ---------- */
.lf-main {
    display: grid;
    grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
    gap: 14px;
    max-width: 860px;
    margin: 30px auto 0;
    text-align: left;
    align-items: center;
}
.lf-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -26px rgba(170, 130, 20, 0.35), 0 2px 10px rgba(20, 20, 40, 0.04);
}
.lf-upload { padding: 16px; }
.lf-dz {
    position: relative;
    border: 2px dashed var(--gold);
    border-radius: 18px;
    padding: 28px 22px 18px;
    text-align: center;
    background: linear-gradient(180deg, #fffdf6, #fff);
    transition: background 0.2s, border-color 0.2s;
}
.lf-dz.drag-active { background: #fff6d6; border-color: var(--gold-dark); }

.lf-cloud { position: relative; width: 130px; height: 84px; margin: 0 auto 10px; display: grid; place-items: center; }
.lf-cloud::before { content: ""; position: absolute; inset: 8px -4px -8px; background: radial-gradient(closest-side, rgba(255, 194, 14, 0.4), transparent); filter: blur(8px); }
.lf-cloud svg { position: relative; width: 98px; height: 74px; }

.lf-dz h2 { margin: 6px 0 4px; font-size: clamp(1.15rem, 3.4vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lf-dz .sub { margin: 0 0 18px; font-size: 15px; color: var(--text); }
.lf-dz .sub b { color: var(--gold-text); font-weight: 700; cursor: pointer; }

.lf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 30px;
    border: 0;
    border-radius: 14px;
    background: var(--gold);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(240, 169, 0, 0.85);
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.lf-btn:hover:not(:disabled) { background: #ffcb2e; transform: translateY(-1px); }
.lf-btn:active:not(:disabled) { transform: translateY(0); }
.lf-btn:focus-visible, .lf-input:focus-visible, .lf-icon-btn:focus-visible, .lf-linkbtn:focus-visible { outline: 3px solid rgba(240, 169, 0, 0.45); outline-offset: 2px; }
.lf-btn:disabled { background: #ffe38a; box-shadow: none; cursor: not-allowed; color: rgba(11, 16, 32, 0.55); }
.lf-btn .ico { font-size: 19px; }
.lf-btn.block { width: 100%; height: 48px; border-radius: 12px; font-weight: 800; }

.lf-perks { display: flex; justify-content: center; margin: 22px 0 14px; padding-top: 4px; font-size: 11.5px; color: var(--text); }
.lf-perks > div { display: flex; align-items: center; gap: 8px; padding: 0 clamp(8px, 2vw, 18px); border-left: 1px solid #dfe2ea; white-space: nowrap; }
.lf-perks > div:first-child { border-left: 0; }
.lf-perks .ico { font-size: 18px; color: #2a3244; stroke-width: 1.6; }
.lf-perks b { font-weight: 800; color: var(--ink); }

.lf-dz hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 12px; }

.lf-files { list-style: none; margin: 0 0 12px; padding: 0; max-height: 218px; overflow-y: auto; display: grid; gap: 8px; text-align: left; }
.lf-files li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: #f6f6f8; }
.lf-ft {
    position: relative;
    flex: none;
    display: grid;
    place-items: end center;
    width: 34px;
    height: 42px;
    padding-bottom: 6px;
    border-radius: 6px 12px 6px 6px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: #8b93a7;
}
.lf-ft::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: rgba(255, 255, 255, 0.4); border-radius: 0 12px 0 8px; }
.lf-ft.pdf { background: linear-gradient(160deg, #ff6a5f, #e83a3a); }
.lf-ft.zip { background: linear-gradient(160deg, #ffd23f, #f5a700); color: #5a3d00; }
.lf-ft.img { background: linear-gradient(160deg, #8f7cf5, #6c5ce7); }
.lf-ft.doc { background: linear-gradient(160deg, #5aa2ff, #2f6fe8); }
.lf-ft.xls { background: linear-gradient(160deg, #3ecf8e, #16a06a); }
.lf-ft.vid { background: linear-gradient(160deg, #ff7eb3, #e0457b); }
.lf-fi { flex: 1; min-width: 0; }
.lf-fi strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-fi span { font-size: 13px; color: var(--muted); }
.lf-icon-btn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #7b8294; font-size: 18px; cursor: pointer; }
.lf-icon-btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }

.lf-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff0f0; color: #b42318; font-size: 14px; font-weight: 600; text-align: left; }

/* Side card */
.lf-side { padding: 30px 28px 30px; }
.lf-side h2 { margin: 0 0 26px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.lf-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.lf-side li { display: flex; gap: 16px; align-items: flex-start; }
.lf-side .ib { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff3cf; color: var(--gold-dark); font-size: 24px; }
.lf-side .ib.v { background: #ece8fb; color: #4b3fb8; }
.lf-side h3 { margin: 2px 0 4px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.lf-side p { margin: 0; font-size: 12.8px; line-height: 1.45; color: var(--muted); }

/* ---------- Result panel ---------- */
.lf-result { text-align: center; padding: 26px 22px 20px; }
.lf-tick { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(160deg, #ffd23f, #f5a700); color: #fff; font-size: 30px; box-shadow: 0 12px 24px -12px rgba(240, 169, 0, 0.9); }
.lf-tick .ico { stroke-width: 3; }
.lf-result h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.lf-result .sub { margin: 0 0 18px; font-size: 14.5px; color: var(--text); }

.lf-links { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; text-align: left; }
.lf-links li { padding: 12px 14px; border-radius: 12px; background: #f6f6f8; }
.lf-links .nm { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.lf-links .nm span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-links .nm span:last-child { flex: none; font-weight: 500; color: var(--muted); font-size: 13px; }
.lf-copy { display: flex; gap: 8px; }
.lf-copy .lf-input { flex: 1; min-width: 0; height: 40px; font-size: 13.5px; background: #fff; }
.lf-copy .lf-btn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; box-shadow: none; }

.lf-email { text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.lf-email h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.lf-email h3 .ico { font-size: 20px; color: var(--gold-dark); }
.lf-field { display: block; margin-bottom: 10px; }
.lf-field > span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.lf-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e5ec;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
}
textarea.lf-input { height: 84px; padding: 11px 14px; resize: vertical; line-height: 1.4; }
.lf-input:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(255, 194, 14, 0.25); }
.lf-input::placeholder { color: #a0a7b5; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lf-status { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.lf-status.ok { color: #15803d; }
.lf-status.err { color: #b42318; }
.lf-linkbtn { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lf-linkbtn:hover { color: var(--ink); }

/* ---------- Upload overlay ---------- */
.lf-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(255, 253, 246, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lf-overlay-box { text-align: center; }
.lf-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; }
.lf-ring svg { transform: rotate(-90deg); }
.lf-ring .track { stroke: #f2e7c4; }
.lf-ring .bar { stroke: var(--gold); transition: stroke-dashoffset 0.2s linear; }
.lf-ring-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.lf-overlay p { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.lf-overlay .warn { color: #b45309; font-size: 14px; font-weight: 600; }

/* ---------- Info sections ---------- */
.lf-section { padding: 70px 16px 10px; background: #fff; }
.lf-section.alt { background: #fffaf0; padding-bottom: 70px; padding-top: 60px; }
.lf-wrap { max-width: 960px; margin: 0 auto; }
.lf-section h2 { margin: 0 0 10px; text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.lf-section .lead { margin: 0 auto 36px; max-width: 560px; text-align: center; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.lf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 60px; }
.lf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lf-tile { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.alt .lf-tile { border-color: #f3e6bf; }
.lf-tile .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: #fff3cf; color: var(--gold-dark); font-weight: 800; }
.lf-tile .ib { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: #fff3cf; color: var(--gold-dark); font-size: 22px; }
.lf-tile h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; }
.lf-tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lf-tile a { color: var(--gold-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.lf-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 14px clamp(16px, 4vw, 44px); background: #fff; border-top: 1px solid var(--line); font-size: 13.5px; color: #2a3244; }
.lf-footer .brand { display: flex; align-items: center; gap: 12px; }
.lf-footer .brand img { height: 32px; width: auto; }
.lf-footer .brand a { color: var(--gold-text); font-weight: 800; }
.lf-footer nav { display: flex; align-items: center; gap: 28px; }
.lf-footer nav a:hover { color: var(--gold-dark); }
.lf-social { display: flex; align-items: center; gap: 18px; padding-left: 22px; border-left: 1px solid #d9dce4; }
.lf-social a { display: grid; place-items: center; color: #1c2434; }
.lf-social a:hover { color: var(--gold-dark); }
.lf-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lf-main { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
    .lf-side ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .lf-side li { flex-direction: column; gap: 10px; }
    .lf-grid3 { grid-template-columns: 1fr; padding-bottom: 50px; }
    .lf-grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .lf-header { grid-template-columns: 1fr; justify-items: center; height: auto; padding: 10px 16px 6px; gap: 0; }
    .lf-logo { justify-self: center; }
    .lf-logo img { height: 46px; }
    .lf-nav { gap: 26px; font-size: 13.5px; }
    .lf-hero { padding: 26px 14px 40px; }
    .lf-main { margin-top: 28px; }
    .lf-dz { padding: 22px 14px 14px; }
    .lf-perks { flex-direction: column; align-items: flex-start; gap: 10px; width: fit-content; margin: 18px auto 14px; }
    .lf-perks > div { border-left: 0; padding: 0; }
    .lf-side { padding: 22px 20px; }
    .lf-side ul { grid-template-columns: 1fr; gap: 18px; }
    .lf-side li { flex-direction: row; gap: 14px; }
    .lf-row { grid-template-columns: 1fr; }
    .lf-footer { flex-direction: column; text-align: center; gap: 14px; }
    .lf-footer .brand { flex-direction: column; gap: 6px; }
    .lf-footer nav { flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
    .lf-social { padding-left: 16px; }
    .lf-swirl-l, .lf-swirl-r { opacity: 0.6; }
}

@media (max-width: 380px) {
    .lf-btn { padding: 0 22px; }
    .lf-copy { flex-direction: column; }
    .lf-copy .lf-btn { width: 100%; }
    .lf-nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
